

/* =========================================================
   STEP2ENGLISH - SMART PLAN | MOBILE TIGHT FIX
========================================================= */

#s2e-plan-root{
  width:min(100%,860px);
  margin:2px auto 12px !important;
  direction:rtl;
  box-sizing:border-box;
  font-family:Tahoma,Arial,sans-serif;
}
#s2e-plan-root *,#s2e-plan-root *::before,#s2e-plan-root *::after{box-sizing:border-box}

body#page-mod-page-view .activity-header,
body#page-mod-page-view .page-header-headings,
body#page-mod-page-view .secondary-navigation,
body#page-mod-page-view .singlebutton:has(a[href*="course/view.php"]),
body#page-mod-page-view .singlebutton:has(input[value*="Back to course"]),
body#page-mod-page-view .singlebutton:has(input[value*="العودة للدورة"]){
  margin:0 !important;
  padding:0 !important;
}

#s2e-plan-root,
.s2e-dialog-text,.s2e-plan-sub,.s2e-progress-note,.s2e-warning-note,.s2e-payment-note,.s2e-prev-sub,.s2e-day-state,.s2e-popup-sub,.s2e-plan-desc-text,.s2e-progress-submeta,.s2e-day-progress-mini{direction:rtl !important;unicode-bidi:plaintext !important}

.s2e-plan-topbox{background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);border:2px solid #dbe7fb;border-radius:22px;padding:12px 12px;text-align:center;box-shadow:0 8px 16px rgba(0,0,0,.05);margin-bottom:8px}
.s2e-setup-only{padding-bottom:14px}
.s2e-plan-title{font-size:28px;font-weight:900;color:#153f88;line-height:1.12;margin:0 0 4px}
.s2e-plan-sub{font-size:15px;font-weight:900;color:#607ca7;margin:0 0 10px;line-height:1.5;text-align:center}

.s2e-plan-tabs{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:nowrap;margin-bottom:10px}
.s2e-plan-tab{border:none;cursor:pointer;min-height:48px;padding:10px 18px;border-radius:17px;background:linear-gradient(180deg,#ffffff 0%,#f3f8ff 100%);border:2px solid #d7e7fb;color:#114d9c;font-size:20px;font-weight:900;line-height:1.1;white-space:nowrap;box-shadow:0 4px 10px rgba(0,0,0,.03);transition:.18s ease}
.s2e-plan-tab.active{background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);color:#fff;border-color:transparent;box-shadow:0 10px 22px rgba(13,56,145,.22)}
.s2e-plan-tab-main{display:block}

.s2e-plan-tab-pulse-1,.s2e-plan-tab-pulse-2,.s2e-plan-tab-pulse-3{animation:s2ePlanPulse 1.8s infinite}
.s2e-plan-tab-pulse-2{animation-delay:.35s}.s2e-plan-tab-pulse-3{animation-delay:.7s}
.s2e-plan-tab.active{animation:none !important}
@keyframes s2ePlanPulse{0%,100%{transform:scale(1);box-shadow:0 4px 10px rgba(0,0,0,.03)}50%{transform:scale(1.055);box-shadow:0 10px 18px rgba(13,56,145,.16)}}

.s2e-plan-desc-card{width:min(100%,700px);margin:2px auto 12px;background:#fff;border:2px solid #dbe7fb;border-radius:20px;padding:12px 12px;box-shadow:0 6px 14px rgba(0,0,0,.04)}
.s2e-plan-desc-card.muted{background:#f9fbff}
.s2e-plan-desc-title{font-size:20px;font-weight:900;color:#153f88;line-height:1.2;margin-bottom:2px}
.s2e-plan-desc-text{font-size:15px;font-weight:800;color:#607ca7;line-height:1.6}
.s2e-start-bottom-wrap{margin-top:6px;padding-top:0}
.s2e-plan-start-btn{border:none;cursor:pointer;min-height:52px;padding:12px 18px;border-radius:18px;font-size:22px;font-weight:900;line-height:1.1;white-space:nowrap;background:linear-gradient(180deg,#1a7f45 0%,#26a65b 55%,#4cd17d 100%);color:#fff;box-shadow:0 12px 22px rgba(38,166,91,.20);animation:s2eStartPulse 1.35s infinite}
.s2e-plan-start-big{width:min(100%,560px)}
.s2e-plan-start-btn.disabled{opacity:.55;filter:grayscale(.15)}
@keyframes s2eStartPulse{0%{transform:scale(1);box-shadow:0 12px 22px rgba(38,166,91,.20)}50%{transform:scale(1.03);box-shadow:0 18px 28px rgba(38,166,91,.28)}100%{transform:scale(1);box-shadow:0 12px 22px rgba(38,166,91,.20)}}

.s2e-progress-stack{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.s2e-progress-line{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap}
.s2e-progress-meta,#s2e-days-done-text{display:block !important;text-align:center !important;margin:0 !important;color:#234a86;font-size:18px;font-weight:900;line-height:1.4;font-family:Verdana,Arial,sans-serif}
.s2e-progress-pill{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:82px;min-height:44px;padding:6px 12px;border-radius:16px;background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);color:#fff;font-size:18px;font-weight:900;box-shadow:0 10px 18px rgba(13,56,145,.16)}
.s2e-progress-submeta{display:block;width:100%;text-align:center;margin:0 auto;color:#607ca7;font-size:16px;font-weight:900;line-height:1.5}
.s2e-progress-bar{width:100% !important;height:14px;border-radius:999px;background:#eaf2ff;overflow:hidden;margin:0}
.s2e-progress-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);border-radius:999px;transition:width .25s ease}
.s2e-progress-note{width:100% !important;font-size:15px;font-weight:900;color:#315c94;line-height:1.5;background:#ffffff;border:2px solid #dce8fa;border-radius:16px;padding:8px 10px;text-align:center}

.s2e-top-actions{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:nowrap}.s2e-top-actions-row1{margin-bottom:4px}.s2e-top-actions-row2{margin-top:0}
.s2e-top-secondary-btn{border:none;cursor:pointer;min-height:48px;padding:10px 14px;border-radius:16px;font-size:17px;font-weight:900;line-height:1.1;white-space:nowrap;min-width:0}
.s2e-view-plan-btn{background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);color:#fff;border:2px solid transparent;box-shadow:0 10px 22px rgba(13,56,145,.18)}
.s2e-prevdays-btn{background:linear-gradient(180deg,#eef6ff 0%,#dcecff 100%);color:#0f63b3;border:2px solid #bad8ff}
.s2e-reset-plan-btn{background:linear-gradient(180deg,#fff1f1 0%,#ffe7e7 100%);color:#ca2d2d;border:2px solid #f1b6b6;padding:8px 14px;min-height:42px;font-size:15px}
.s2e-subscribe-blue-pulse{animation:s2eSubscribePulse 1.35s infinite !important}
@keyframes s2eSubscribePulse{0%{transform:scale(1);box-shadow:0 10px 22px rgba(13,56,145,.22)}50%{transform:scale(1.03);box-shadow:0 16px 28px rgba(13,56,145,.30)}100%{transform:scale(1);box-shadow:0 10px 22px rgba(13,56,145,.22)}}

.s2e-days-wrap{display:flex;flex-direction:column;gap:8px}
.s2e-day-card{border:2px solid #d9e8fb;border-radius:22px;background:#fff;box-shadow:0 6px 12px rgba(0,0,0,.04);overflow:hidden;transition:.18s ease}
.s2e-day-card.current{border-color:#ef8f8f;background:linear-gradient(180deg,#fffafb 0%,#fff4f4 100%);box-shadow:0 0 0 4px rgba(239,143,143,.09),0 10px 18px rgba(0,0,0,.05)}
.s2e-day-card.done{border-color:#8cc69d;background:#f7fdf9}.s2e-day-card.prev-missing{border-color:#ef8f8f;background:#fff9f9}.s2e-day-card.future,.s2e-day-card.locked{background:#fcfdff}.s2e-day-card.friday .s2e-day-head{background:linear-gradient(180deg,#faf8ff 0%,#f2ecff 100%)}
.s2e-day-head{padding:10px 10px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%);border-bottom:1px solid #e7eef8}
.s2e-day-weekday{font-size:28px;font-weight:900;color:#1d4fb7;line-height:1.1;font-family:Verdana,Arial,sans-serif}.s2e-day-date{font-size:17px;font-weight:900;color:#667fa7;line-height:1.3}
.s2e-day-label{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 12px;border-radius:999px;background:#eaf3ff;color:#0f63b3;font-size:15px;font-weight:900;white-space:nowrap}
.s2e-day-badge-free,.s2e-day-special{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:4px 10px;border-radius:999px;font-size:14px;font-weight:900;white-space:nowrap}
.s2e-day-badge-free{background:#fff3cf;color:#a46b00;border:2px solid #f4d98d}.s2e-day-special{background:#f2ecff;color:#6c46c7}
.s2e-day-state{font-size:14px;font-weight:900;color:#5d7b68;line-height:1.5;text-align:center}.s2e-day-progress-mini{font-size:13px;font-weight:900;color:#6b7f98;line-height:1.4;text-align:center}
.s2e-day-actions{padding:10px;display:flex;flex-direction:row;gap:10px;align-items:stretch}
.s2e-done-btn{flex:0 0 86px;width:86px;min-width:86px;max-width:86px;border:none;cursor:pointer;min-height:52px;border-radius:16px;font-size:17px;font-weight:900;padding:8px 4px;background:linear-gradient(180deg,#eef6ff 0%,#dcecff 100%);color:#0f63b3;border:2px solid #bad8ff;white-space:nowrap;line-height:1.1}
.s2e-done-btn.done{background:linear-gradient(180deg,#eaf9ef 0%,#dff4e6 100%);color:#198754;border-color:#bfe7c8}.s2e-done-btn.locked{background:linear-gradient(180deg,#f4f6f9 0%,#e9eef4 100%);color:#62758f;border:2px solid #d6dfe8}
.s2e-open-btn{flex:1 1 auto;min-width:0;border:none;cursor:pointer;min-height:52px;border-radius:17px;font-size:20px;font-weight:900;padding:10px 12px;background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);color:#fff;white-space:nowrap;line-height:1.1}

body.s2e-no-scroll{overflow:hidden}.s2e-overlay{position:fixed;inset:0;z-index:999999;background:rgba(11,22,45,.52);display:flex;align-items:center;justify-content:center;padding:10px}
.s2e-popup-box,.s2e-prevdays-box{width:min(760px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;border:2px solid #d9e8fb;box-shadow:0 20px 48px rgba(0,0,0,.20);padding-top:12px}
.s2e-dialog-box{width:min(640px,100%);background:#fff;border-radius:28px;border:2px solid #d9e8fb;box-shadow:0 20px 48px rgba(0,0,0,.20);padding:16px 16px 16px;text-align:center;position:relative}
.s2e-package-modal{width:min(760px,100%);background:#fff;border-radius:28px;border:2px solid #d9e8fb;box-shadow:0 20px 48px rgba(0,0,0,.20);padding:14px 18px 18px;position:relative}
.s2e-close-mini,.s2e-close-btn{border:none;cursor:pointer;border-radius:14px;background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);color:#fff;font-weight:900;white-space:nowrap}
.s2e-close-mini{min-height:40px;padding:8px 12px;font-size:15px;margin:0 0 10px auto;display:flex}.s2e-close-btn{position:sticky;top:0;z-index:99999;margin:0 0 12px auto;display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;font-size:16px}.s2e-close-fixed{position:sticky;top:0}
.s2e-dialog-title{font-size:28px;font-weight:900;color:#153f88;margin-bottom:8px;line-height:1.2}.s2e-dialog-text{font-size:18px;font-weight:800;color:#5a769c;line-height:1.7;margin-bottom:16px;text-align:center}
.s2e-dialog-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.s2e-primary-small,.s2e-danger-small{border:none;cursor:pointer;min-height:48px;padding:10px 18px;border-radius:16px;font-size:20px;font-weight:900;white-space:nowrap}.s2e-primary-small{background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);color:#fff}.s2e-danger-small{background:linear-gradient(180deg,#cf2e2e 0%,#b71c1c 100%);color:#fff}
.s2e-package-header{width:100%;background:#eef3fa;border:1px solid #d9e5f3;border-radius:22px;padding:16px 18px;font-size:28px;font-weight:900;color:#1c4d94;margin-bottom:14px;line-height:1.35;text-align:center}.s2e-package-mini-features{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.s2e-package-mini-card{min-height:66px;display:flex;align-items:center;justify-content:center;text-align:center;background:#eef3fa;border:1px solid #d9e5f3;border-radius:18px;padding:10px 12px;font-size:20px;font-weight:900;color:#334155;line-height:1.6}
.s2e-price-box{width:100%;background:linear-gradient(to bottom,#fff8f1,#fffdf9);border:1px solid #f5d8bb;border-radius:24px;padding:16px 14px;text-align:center;margin-bottom:14px}.s2e-offer{display:inline-flex;align-items:center;justify-content:center;gap:8px;direction:rtl;padding:9px 16px;border-radius:999px;border:3px solid #f1b37c;color:#e23a5d;background:#fff7f4;font-size:18px;font-weight:900;margin-bottom:12px}.s2e-old-price{color:#94a3b8;text-decoration:line-through;font-size:20px;font-weight:700;margin:0 auto 8px}.s2e-new-price{display:inline-flex;align-items:center;justify-content:center;gap:8px;direction:rtl;color:#b85a00;font-size:42px;font-weight:900;margin:0 auto 8px;line-height:1.15}.s2e-new-price img{width:24px;height:26px;display:inline-block;vertical-align:middle}.s2e-price-note{display:inline-flex;align-items:center;justify-content:center;gap:8px;direction:rtl;color:#b07a48;font-size:16px;font-weight:900;line-height:1.8}.s2e-subscribe-now-btn{display:flex;width:100%;align-items:center;justify-content:center;gap:8px;direction:rtl;text-align:center;text-decoration:none;padding:16px 12px;border:none;cursor:pointer;border-radius:20px;font-size:28px;font-weight:900;background:linear-gradient(135deg,#f6a000,#cf6e00);color:#fff;box-shadow:0 10px 22px rgba(217,119,6,.22);white-space:nowrap}
.s2e-popup-head{padding:14px 14px 10px;background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%);border-bottom:1px solid #e6eefb;text-align:center}.s2e-popup-title{font-size:30px;font-weight:900;color:#1d4fb7;line-height:1.15}.s2e-popup-sub{font-size:17px;font-weight:900;color:#667fa7;margin-top:4px;line-height:1.6;text-align:center}.s2e-popup-chip{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 12px;border-radius:999px;background:#eaf3ff;color:#0f63b3;font-size:16px;font-weight:900;margin-top:8px;white-space:nowrap}.s2e-popup-chip.alt{background:#f2ecff;color:#6c46c7;margin-inline-start:6px}
.s2e-popup-body,.s2e-prevdays-body{padding:12px;display:flex;flex-direction:column;gap:8px}
.s2e-item-row{display:flex;flex-direction:row;align-items:stretch;gap:10px;flex-wrap:nowrap}.s2e-item-done{flex:0 0 82px;width:82px;min-width:82px;max-width:82px;border:none;cursor:pointer;min-height:48px;border-radius:15px;font-size:16px;font-weight:900;padding:8px 4px;background:linear-gradient(180deg,#eef6ff 0%,#dcecff 100%);color:#0f63b3;border:2px solid #bad8ff;white-space:nowrap}.s2e-item-done.done{background:linear-gradient(180deg,#eaf9ef 0%,#dff4e6 100%);color:#198754;border-color:#bfe7c8}
.s2e-item-link{flex:1 1 auto;min-width:0;text-decoration:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:17px;background:linear-gradient(180deg,#f9fbff 0%,#f0f6ff 100%);border:2px solid #dce8f8;color:inherit}.s2e-item-text{min-width:0;flex:1 1 auto;text-align:right}.s2e-item-ar{display:block;font-size:21px;font-weight:900;line-height:1.35;color:#173f97;text-align:right;overflow-wrap:anywhere;word-break:normal}.s2e-item-en:empty{display:none!important}.s2e-item-en{display:block;margin-top:4px;font-family:Verdana,Arial,sans-serif;font-size:13px;font-weight:700;line-height:1.35;color:#6e86a3;direction:ltr;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.s2e-item-go{flex:0 0 auto;min-width:70px;min-height:42px;padding:8px 6px;border-radius:14px;background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%);color:#fff;font-size:16px;font-weight:900;display:flex;align-items:center;justify-content:center;white-space:nowrap}
.s2e-empty{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px;border-radius:14px;background:#f4f7fb;color:#69809d;border:2px dashed #d5dfeb;font-size:17px;font-weight:800;text-align:center}
.s2e-prevday-row{width:100%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-radius:16px;background:linear-gradient(180deg,#f9fbff 0%,#f0f6ff 100%);border:2px solid #dce8f8;text-align:right}.s2e-prevday-row.done{border-color:#bfe7c8;background:#f4fbf6}.s2e-prevday-row.notdone{border-color:#ef8f8f;background:#fff9f9}.s2e-prevday-right{display:flex;flex-direction:column;gap:4px}.s2e-prevday-day{font-size:18px;font-weight:900;color:#234a86;line-height:1.5}.s2e-prevday-label{font-size:15px;font-weight:900;color:#6a7f9b;line-height:1.4}.s2e-prevday-status{white-space:nowrap;font-size:15px;font-weight:900;color:#556b86}

@media (max-width:768px){
  #s2e-plan-root{width:min(94vw,430px);margin:0 auto 8px !important}
  .s2e-plan-topbox{padding:10px 10px 10px;border-radius:20px}
  .s2e-plan-title{font-size:26px}.s2e-plan-sub{font-size:14px}
  .s2e-plan-tabs{gap:6px}.s2e-plan-tab{font-size:18px;min-height:46px;padding:10px 14px;flex:1 1 0}
  .s2e-plan-desc-title{font-size:18px}.s2e-plan-desc-text{font-size:14px}.s2e-plan-start-btn{font-size:21px;min-height:50px}
  .s2e-progress-meta,#s2e-days-done-text{font-size:16px}.s2e-progress-pill{min-width:74px;min-height:40px;font-size:17px}.s2e-progress-submeta{font-size:14px}.s2e-progress-note{font-size:14px;padding:8px 8px}
  .s2e-top-secondary-btn{font-size:16px;min-height:44px;padding:9px 10px;flex:1 1 0}.s2e-reset-plan-btn{font-size:14px;min-height:40px;flex:0 1 auto;padding:8px 12px}
  .s2e-day-weekday{font-size:24px}.s2e-day-date{font-size:16px}.s2e-day-label{font-size:14px}.s2e-day-badge-free,.s2e-day-special{font-size:13px}.s2e-day-state{font-size:13px}.s2e-day-progress-mini{font-size:12px}
  .s2e-done-btn{width:74px;min-width:74px;max-width:74px;min-height:46px;font-size:14px}.s2e-open-btn{font-size:17px;min-height:46px;padding:8px 8px}
  .s2e-dialog-title{font-size:22px}.s2e-dialog-text{font-size:15px}.s2e-close-mini{font-size:14px}.s2e-package-modal{width:min(94vw,100%);padding:12px 12px 16px}.s2e-package-header{font-size:22px}.s2e-package-mini-features{grid-template-columns:1fr}.s2e-package-mini-card{font-size:16px;min-height:56px}.s2e-offer{font-size:14px}.s2e-old-price{font-size:17px}.s2e-new-price{font-size:32px}.s2e-price-note{font-size:13px}.s2e-subscribe-now-btn{font-size:22px}
  .s2e-popup-title{font-size:24px}.s2e-popup-sub{font-size:14px}.s2e-popup-chip{font-size:13px}.s2e-item-done{width:66px;min-width:66px;max-width:66px;min-height:42px;font-size:13px}.s2e-item-ar{font-size:16px}.s2e-item-en{font-size:11px}.s2e-item-go{min-width:58px;min-height:40px;font-size:13px}.s2e-prevday-day{font-size:14px}.s2e-prevday-label,.s2e-prevday-status{font-size:12px}
}




/* =========================================================
   STEP2ENGLISH - FINAL SMALL MOBILE SAFE FIX
   ضعيه آخر الكود الحالي
========================================================= */

body#page-mod-page-view,
body#page-mod-page-view #page,
body#page-mod-page-view #region-main,
body#page-mod-page-view #region-main-box{
  overflow-x:hidden !important;
}

#s2e-plan-root{
  width:100% !important;
  max-width:860px !important;
  margin:0 auto 10px !important;
  padding-inline:8px !important;
}

#s2e-plan-root,
#s2e-plan-root *{
  max-width:100%;
}

@media (max-width:768px){
  #s2e-plan-root{
    width:100% !important;
    max-width:100% !important;
    margin:0 auto 8px !important;
    padding-inline:6px !important;
  }

  .s2e-plan-topbox,
  .s2e-plan-desc-card,
  .s2e-day-card,
  .s2e-popup-box,
  .s2e-prevdays-box,
  .s2e-dialog-box,
  .s2e-package-modal{
    width:100% !important;
    max-width:100% !important;
    margin-inline:0 !important;
  }

  .s2e-progress-line{
    flex-wrap:wrap !important;
    gap:8px !important;
  }
}

@media (max-width:430px){
  #s2e-plan-root{
    padding-inline:4px !important;
  }

  /* تبويب الخطة */
  .s2e-plan-tabs{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:6px !important;
  }

  .s2e-plan-tab{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:10px 6px !important;
    font-size:17px !important;
    white-space:normal !important;
    text-align:center !important;
  }

  /* أزرار الأيام السابقة / القادمة */
  .s2e-top-actions{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px !important;
  }

  .s2e-top-secondary-btn{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:10px 6px !important;
    font-size:15px !important;
    white-space:normal !important;
    text-align:center !important;
  }

  /* سطر التقدم */
  .s2e-progress-line{
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:6px !important;
  }

  .s2e-progress-pill{
    min-width:68px !important;
    min-height:38px !important;
    font-size:16px !important;
  }

  .s2e-progress-meta,
  #s2e-days-done-text,
  .s2e-progress-submeta,
  .s2e-progress-note{
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }

  .s2e-progress-meta,
  #s2e-days-done-text{
    font-size:15px !important;
  }

  /* أزرار كارت اليوم */
  .s2e-day-actions,
  .s2e-item-row{
    display:grid !important;
    grid-template-columns:62px minmax(0,1fr) !important;
    gap:8px !important;
    width:100% !important;
  }

  .s2e-done-btn,
  .s2e-item-done{
    width:62px !important;
    min-width:62px !important;
    max-width:62px !important;
    font-size:12px !important;
  }

  .s2e-open-btn,
  .s2e-item-link,
  .s2e-plan-start-btn,
  .s2e-subscribe-now-btn{
    min-width:0 !important;
    max-width:100% !important;
    white-space:normal !important;
    line-height:1.2 !important;
  }

  .s2e-open-btn{
    font-size:18px !important;
    padding:8px 8px !important;
  }

  .s2e-plan-start-btn,
  .s2e-subscribe-now-btn{
    font-size:18px !important;
  }

  /* أحجام النص داخل الكروت */
  .s2e-day-weekday{font-size:22px !important;}
  .s2e-day-date{font-size:15px !important;}
  .s2e-day-label,
  .s2e-day-badge-free,
  .s2e-day-special{font-size:12px !important;}
  .s2e-day-state,
  .s2e-day-progress-mini{font-size:12px !important;}

  .s2e-day-card,
  .s2e-plan-topbox,
  .s2e-plan-desc-card{
    border-radius:18px !important;
  }
  
  /* ===== FIX: زر فتح اليوم المجاني لو كان وحده ===== */
@media (max-width:430px){

  .s2e-day-actions > .s2e-open-btn:only-child,
  .s2e-item-row > .s2e-item-link:only-child{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    justify-self:stretch !important;
  }

  .s2e-day-actions > .s2e-open-btn:only-child{
    min-height:54px !important;
    padding:10px 12px !important;
    border-radius:18px !important;
    font-size:18px !important;
    line-height:1.15 !important;
    white-space:normal !important;
    text-align:center !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

}
}

/* ===== FIX: توسيط زر اشترك لو كان وحده ===== */
@media (max-width:430px){

  .s2e-top-actions > .s2e-top-secondary-btn:only-child,
  .s2e-top-actions-row2 > .s2e-top-secondary-btn:only-child{
    grid-column:1 / -1 !important;
    justify-self:center !important;
    width:min(260px, 100%) !important;
    max-width:100% !important;
    min-width:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    margin-inline:auto !important;
  }

}




/* =========================================================
   STEP2ENGLISH - CLEARER PROGRESS BAR ONLY
   ضعه آخر الـ CSS الحالي
========================================================= */

.s2e-progress-stack{
  gap:10px !important;
}

.s2e-progress-bar{
  width:100% !important;
  height:22px !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,#edf2f8 0%, #dfe7f1 100%) !important;
  border:2px solid #cfd9e6 !important;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.08),
    0 4px 10px rgba(13,56,145,.08) !important;
  overflow:hidden !important;
  margin:2px 0 0 !important;
}

.s2e-progress-bar span,
#s2e-progress-fill{
  display:block !important;
  height:100% !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#0d1f5c 0%, #003cb3 55%, #2ca0ff 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 0 10px rgba(30,144,255,.22) !important;
  position:relative !important;
  transition:width .3s ease !important;
}

.s2e-progress-bar span::after,
#s2e-progress-fill::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  width:34px;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 100%);
  border-radius:999px;
}

.s2e-progress-pill{
  box-shadow:0 8px 18px rgba(13,56,145,.22) !important;
}

.s2e-progress-meta,
#s2e-days-done-text{
  color:#173f86 !important;
}

@media (max-width:430px){
  .s2e-progress-bar{
    height:20px !important;
  }

  .s2e-progress-bar span::after,
  #s2e-progress-fill::after{
    width:26px !important;
  }
}





/* =========================================================
   STEP2ENGLISH - CLEAN PROGRESS BAR VISUAL ONLY (SAFE)
   استخدمه بدل الملف السابق
   هذا الملف CSS فقط بدون أي JavaScript
========================================================= */

.s2e-progress-stack{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  margin-bottom:8px !important;
}

.s2e-progress-stack::before{
  content:"تقدمك في الخطة";
  display:block;
  text-align:center;
  color:#153f88;
  font-size:17px;
  font-weight:900;
  line-height:1.4;
  margin-bottom:2px;
  font-family:Tahoma,Arial,sans-serif;
}

.s2e-progress-line{
  display:contents !important;
}

.s2e-progress-pill{
  display:none !important;
}

.s2e-progress-bar{
  order:1;
  width:100% !important;
  height:22px !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,#edf2f8 0%,#dfe7f1 100%) !important;
  border:2px solid #cfd9e6 !important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.08), 0 4px 10px rgba(13,56,145,.08) !important;
  overflow:hidden !important;
  margin:0 !important;
}

.s2e-progress-bar span,
#s2e-progress-fill{
  display:block !important;
  height:100% !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#0d1f5c 0%,#003cb3 55%,#2ca0ff 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 0 10px rgba(30,144,255,.22) !important;
  position:relative !important;
  transition:width .3s ease !important;
}

.s2e-progress-bar span::after,
#s2e-progress-fill::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  width:34px;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 100%);
  border-radius:999px;
}

.s2e-progress-meta,
#s2e-days-done-text{
  order:2;
  display:block !important;
  text-align:center !important;
  color:#173f86 !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.5 !important;
  margin:0 !important;
  font-family:Tahoma,Arial,sans-serif !important;
}

.s2e-progress-submeta,
#s2e-day-units-text{
  order:3;
  display:block !important;
  text-align:center !important;
  color:#607ca7 !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.5 !important;
  margin:0 !important;
  font-family:Tahoma,Arial,sans-serif !important;
}

.s2e-progress-note{
  order:4;
  margin-top:2px !important;
}

@media (max-width:430px){
  .s2e-progress-stack::before{
    font-size:15px !important;
  }

  .s2e-progress-bar{
    height:20px !important;
  }

  .s2e-progress-bar span::after,
  #s2e-progress-fill::after{
    width:26px !important;
  }

  .s2e-progress-meta,
  #s2e-days-done-text{
    font-size:16px !important;
  }

  .s2e-progress-submeta,
  #s2e-day-units-text{
    font-size:14px !important;
  }
}



/* =========================================================
   STEP2ENGLISH - PROGRESS BAR + PERCENT SAFE PATCH
   آمن: CSS فقط
   الهدف: إظهار النسبة المئوية بوضوح + شريط أوضح
   ضعه بعد CSS الخطة الذكية الحالية
========================================================= */

.s2e-progress-stack{
  gap:10px !important;
}

.s2e-progress-line{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  flex-wrap:nowrap !important;
}

.s2e-progress-meta,
#s2e-days-done-text{
  display:block !important;
  text-align:center !important;
  margin:0 !important;
  color:#173f86 !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.45 !important;
}

.s2e-progress-pill{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:88px !important;
  min-height:46px !important;
  padding:6px 14px !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  color:#fff !important;
  font-size:19px !important;
  font-weight:900 !important;
  box-shadow:0 10px 20px rgba(13,56,145,.22) !important;
}

.s2e-progress-bar{
  width:100% !important;
  height:22px !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,#edf2f8 0%, #dfe7f1 100%) !important;
  border:2px solid #cfd9e6 !important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.08), 0 4px 10px rgba(13,56,145,.08) !important;
  overflow:hidden !important;
  margin:2px 0 0 !important;
}

.s2e-progress-bar span,
#s2e-progress-fill{
  display:block !important;
  height:100% !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#0d1f5c 0%, #003cb3 55%, #2ca0ff 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 0 10px rgba(30,144,255,.22) !important;
  position:relative !important;
  transition:width .3s ease !important;
}

.s2e-progress-bar span::after,
#s2e-progress-fill::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  width:34px;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 100%);
  border-radius:999px;
}

.s2e-progress-submeta{
  color:#5e79a4 !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.5 !important;
}

.s2e-progress-note{
  width:100% !important;
  font-size:15px !important;
  font-weight:900 !important;
  color:#315c94 !important;
  line-height:1.5 !important;
  background:#ffffff !important;
  border:2px solid #dce8fa !important;
  border-radius:16px !important;
  padding:8px 10px !important;
  text-align:center !important;
}

@media (max-width:768px){
  .s2e-progress-meta,
  #s2e-days-done-text{
    font-size:16px !important;
  }

  .s2e-progress-pill{
    min-width:78px !important;
    min-height:42px !important;
    font-size:17px !important;
  }

  .s2e-progress-bar{
    height:20px !important;
  }
}

@media (max-width:430px){
  .s2e-progress-line{
    flex-wrap:wrap !important;
    gap:6px !important;
  }

  .s2e-progress-meta,
  #s2e-days-done-text{
    font-size:15px !important;
  }

  .s2e-progress-pill{
    min-width:72px !important;
    min-height:38px !important;
    font-size:16px !important;
    border-radius:14px !important;
  }

  .s2e-progress-bar span::after,
  #s2e-progress-fill::after{
    width:26px !important;
  }

  .s2e-progress-submeta,
  .s2e-progress-note{
    font-size:14px !important;
  }
}









/* STEP2ENGLISH - STEP TIMETABLE FINAL PATCH */
.s2e-plan-loading-box{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.s2e-close-mini{margin:0 auto 10px 0 !important;}
.s2e-close-btn{margin:0 auto 12px 0 !important;}


/* ===== S2E FINAL ONE-PAGE PLAN ===== */

.s2e-setup-box-final{padding:16px 14px 18px !important;border-radius:26px !important;background:linear-gradient(180deg,#ffffff 0%,#f4f8ff 100%) !important;}
.s2e-setup-only .s2e-plan-title{font-size:30px !important;margin-bottom:6px !important;}
.s2e-setup-only .s2e-plan-sub{font-size:16px !important;margin-bottom:14px !important;}
.s2e-plan-tabs-setup{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
.s2e-plan-tabs-setup .s2e-plan-tab:last-child{grid-column:1 / -1 !important;}
.s2e-plan-tab{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:4px !important;}
.s2e-plan-tab-icon{display:block !important;font-size:24px !important;line-height:1 !important;}
.s2e-plan-tab-main{display:block !important;font-size:19px !important;line-height:1.15 !important;}
.s2e-plan-tabs-setup .s2e-plan-tab,.s2e-plan-tabs .s2e-plan-tab{min-height:74px !important;border-radius:20px !important;box-shadow:0 10px 18px rgba(0,0,0,.06) !important;}
.s2e-plan-color-w2{background:linear-gradient(180deg,#fff7ed 0%,#ffedd5 100%) !important;border-color:#fdba74 !important;color:#c2410c !important;}
.s2e-plan-color-m1{background:linear-gradient(180deg,#eff6ff 0%,#dbeafe 100%) !important;border-color:#93c5fd !important;color:#1d4ed8 !important;}
.s2e-plan-color-m2{background:linear-gradient(180deg,#f5f3ff 0%,#ede9fe 100%) !important;border-color:#c4b5fd !important;color:#6d28d9 !important;}
.s2e-plan-color-m3{background:linear-gradient(180deg,#ecfdf5 0%,#dcfce7 100%) !important;border-color:#86efac !important;color:#15803d !important;}
.s2e-plan-color-flex{background:linear-gradient(180deg,#ecfeff 0%,#cffafe 100%) !important;border-color:#67e8f9 !important;color:#0f766e !important;}
.s2e-plan-tab.active{background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;color:#fff !important;border-color:transparent !important;}
.s2e-plan-desc-card-final,.s2e-plan-desc-card{min-height:96px !important;display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;padding:14px 12px !important;}
.s2e-flex-wrap{margin-top:12px !important;background:#f8fbff !important;border:2px solid #d9ebff !important;border-radius:20px !important;padding:14px 12px !important;}
.s2e-flex-title{font-size:24px !important;font-weight:900 !important;text-align:center !important;color:#0f4ea2 !important;}
.s2e-flex-sub{font-size:15px !important;font-weight:700 !important;text-align:center !important;color:#6b7ea1 !important;margin-top:4px !important;}
.s2e-flex-inputs{margin-top:10px !important;display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px !important;}
.s2e-flex-input{min-height:48px !important;border-radius:14px !important;border:2px solid #d9ebff !important;padding:10px 12px !important;font-size:16px !important;font-weight:800 !important;text-align:center !important;}
.s2e-plan-start-btn-strong{width:min(100%,420px) !important;min-height:60px !important;border-radius:20px !important;font-size:24px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:8px !important;}
.s2e-start-btn-icon{font-size:24px !important;line-height:1 !important;}
.s2e-plan-tabs-attention{animation:s2eNeedPick 1.2s ease 1;}
@keyframes s2eNeedPick{0%,100%{transform:scale(1)}35%{transform:scale(1.02)}70%{transform:scale(.99)}}
.s2e-day-card{cursor:pointer !important;}
.s2e-day-card:focus{outline:3px solid rgba(30,144,255,.25) !important;outline-offset:2px !important;}
@media (max-width:768px){
  .s2e-setup-only .s2e-plan-title{font-size:28px !important;}
  .s2e-setup-only .s2e-plan-sub{font-size:15px !important;}
  .s2e-plan-tab-icon{font-size:22px !important;}
  .s2e-plan-tab-main{font-size:18px !important;}
  .s2e-flex-inputs{grid-template-columns:1fr !important;}
}

/* =========================================================
   STEP2ENGLISH - FINAL v40 CALM UI PATCH
   بدون نبض زائد + ألوان خطط ثابتة + موبايل آمن
========================================================= */

#s2e-plan-root .s2e-plan-tab,
#s2e-plan-root .s2e-plan-start-btn,
#s2e-plan-root .s2e-subscribe-blue-pulse{
  animation:none !important;
}

#s2e-plan-root .s2e-plan-tab:hover,
#s2e-plan-root .s2e-plan-start-btn:hover{
  transform:translateY(-1px) !important;
}

#s2e-plan-root .s2e-day-card{
  cursor:pointer !important;
}

#s2e-plan-root .s2e-day-card.done{
  border-color:#22a35a !important;
  box-shadow:0 0 0 4px rgba(34,163,90,.10),0 8px 16px rgba(0,0,0,.05) !important;
}

#s2e-plan-root .s2e-day-card.current:not(.done),
#s2e-plan-root .s2e-day-card.prev-missing{
  border-color:#e44b4b !important;
  box-shadow:0 0 0 4px rgba(228,75,75,.10),0 8px 16px rgba(0,0,0,.05) !important;
}

#s2e-plan-root .s2e-flex-input[type="date"]{
  cursor:pointer !important;
}

@media (max-width:430px){
  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
    grid-column:1 / -1 !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:68px !important;
  }
}

/* =========================================================
   STEP2ENGLISH - v41 PROFESSIONAL SETUP SCREEN
   خطوة 1: شاشة اختيار الخطة فقط — هادئة، بدون ألوان شعبية، بدون نبض
========================================================= */
#s2e-plan-root{
  --s2e-navy:#0b3d91;
  --s2e-navy-2:#123f84;
  --s2e-muted:#667894;
  --s2e-line:#dbe7f7;
  --s2e-soft:#f7faff;
  --s2e-green:#1f9d55;
}

#s2e-plan-root .s2e-setup-box-final,
#s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
  width:min(100%,900px) !important;
  margin:0 auto 12px !important;
  padding:28px 24px 24px !important;
  border-radius:28px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  border:1px solid var(--s2e-line) !important;
  box-shadow:0 16px 38px rgba(11,61,145,.08) !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-plan-kicker{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:30px !important;
  padding:6px 14px !important;
  margin:0 0 10px !important;
  border-radius:999px !important;
  background:#f2f6ff !important;
  border:1px solid #e1ebfb !important;
  color:#42628f !important;
  font-family:Verdana,Arial,sans-serif !important;
  font-size:12px !important;
  font-weight:800 !important;
  letter-spacing:.4px !important;
}

#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  margin:0 0 6px !important;
  font-size:34px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  color:var(--s2e-navy) !important;
  letter-spacing:0 !important;
}

#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  margin:0 0 22px !important;
  font-size:17px !important;
  font-weight:800 !important;
  line-height:1.6 !important;
  color:var(--s2e-muted) !important;
}

#s2e-plan-root .s2e-plan-tabs-setup{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
  margin:0 auto 16px !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
  grid-column:auto !important;
}

#s2e-plan-root .s2e-plan-tab,
#s2e-plan-root .s2e-plan-color-w2,
#s2e-plan-root .s2e-plan-color-m1,
#s2e-plan-root .s2e-plan-color-m2,
#s2e-plan-root .s2e-plan-color-m3,
#s2e-plan-root .s2e-plan-color-flex{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-height:86px !important;
  padding:14px 12px !important;
  border-radius:20px !important;
  background:#ffffff !important;
  color:var(--s2e-navy-2) !important;
  border:1px solid var(--s2e-line) !important;
  box-shadow:0 8px 20px rgba(11,61,145,.055) !important;
  transform:none !important;
  animation:none !important;
}

#s2e-plan-root .s2e-plan-tab:hover{
  transform:translateY(-2px) !important;
  border-color:#b9cff0 !important;
  box-shadow:0 12px 24px rgba(11,61,145,.09) !important;
}

#s2e-plan-root .s2e-plan-tab.active{
  background:linear-gradient(180deg,#0f4ea2 0%,#0b3d91 100%) !important;
  color:#fff !important;
  border-color:#0b3d91 !important;
  box-shadow:0 14px 28px rgba(11,61,145,.18) !important;
}

#s2e-plan-root .s2e-plan-tab-icon{
  display:none !important;
}

#s2e-plan-root .s2e-plan-tab-main{
  display:block !important;
  font-size:20px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  color:inherit !important;
}

#s2e-plan-root .s2e-plan-tab-meta{
  display:block !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  color:#7a8fab !important;
}

#s2e-plan-root .s2e-plan-tab.active .s2e-plan-tab-meta{
  color:rgba(255,255,255,.78) !important;
}

#s2e-plan-root .s2e-flex-wrap{
  margin:8px auto 16px !important;
  width:min(100%,720px) !important;
  padding:18px !important;
  border-radius:22px !important;
  background:#fff !important;
  border:1px solid var(--s2e-line) !important;
  box-shadow:0 10px 24px rgba(11,61,145,.055) !important;
}

#s2e-plan-root .s2e-flex-title{
  margin:0 !important;
  font-size:24px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  color:var(--s2e-navy) !important;
}

#s2e-plan-root .s2e-flex-sub{
  margin:6px 0 0 !important;
  font-size:15px !important;
  font-weight:800 !important;
  color:var(--s2e-muted) !important;
  line-height:1.5 !important;
}

#s2e-plan-root .s2e-flex-inputs{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  margin-top:14px !important;
}

#s2e-plan-root .s2e-flex-field{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  min-width:0 !important;
  margin:0 !important;
}

#s2e-plan-root .s2e-flex-label{
  display:block !important;
  text-align:right !important;
  color:#344f76 !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
}

#s2e-plan-root .s2e-flex-input,
#s2e-plan-root select.s2e-flex-input{
  width:100% !important;
  min-height:54px !important;
  padding:0 14px !important;
  border-radius:16px !important;
  border:1px solid #cfdff4 !important;
  background:#fbfdff !important;
  color:#0d2c63 !important;
  font-size:17px !important;
  font-weight:900 !important;
  text-align:center !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85) !important;
  outline:none !important;
}

#s2e-plan-root .s2e-flex-input:focus,
#s2e-plan-root select.s2e-flex-input:focus{
  border-color:#0f63c9 !important;
  box-shadow:0 0 0 4px rgba(15,99,201,.10) !important;
}

#s2e-plan-root .s2e-plan-desc-card-final,
#s2e-plan-root .s2e-plan-desc-card{
  width:min(100%,680px) !important;
  min-height:88px !important;
  margin:8px auto 18px !important;
  padding:16px 18px !important;
  border-radius:22px !important;
  background:#fff !important;
  border:1px solid var(--s2e-line) !important;
  box-shadow:0 10px 24px rgba(11,61,145,.055) !important;
}

#s2e-plan-root .s2e-plan-desc-title{
  margin:0 0 5px !important;
  font-size:21px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
  color:var(--s2e-navy) !important;
}

#s2e-plan-root .s2e-plan-desc-text{
  margin:0 !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.6 !important;
  color:var(--s2e-muted) !important;
}

#s2e-plan-root .s2e-plan-start-btn-strong,
#s2e-plan-root .s2e-plan-start-btn{
  width:min(100%,360px) !important;
  min-height:56px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#21a65b 0%,#178547 100%) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 14px 26px rgba(31,157,85,.20) !important;
  font-size:22px !important;
  font-weight:900 !important;
  animation:none !important;
}

#s2e-plan-root .s2e-start-btn-icon{
  display:none !important;
}

@media (max-width:900px){
  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
    grid-column:1 / -1 !important;
  }
}

@media (max-width:520px){
  #s2e-plan-root{
    width:min(96vw,430px) !important;
  }
  #s2e-plan-root .s2e-setup-box-final,
  #s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
    padding:22px 14px 18px !important;
    border-radius:22px !important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-title{
    font-size:29px !important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-sub{
    font-size:15px !important;
    margin-bottom:16px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup{
    gap:9px !important;
  }
  #s2e-plan-root .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:74px !important;
    border-radius:17px !important;
    padding:12px 8px !important;
  }
  #s2e-plan-root .s2e-plan-tab-main{
    font-size:18px !important;
  }
  #s2e-plan-root .s2e-plan-tab-meta{
    font-size:12px !important;
  }
  #s2e-plan-root .s2e-flex-inputs{
    grid-template-columns:1fr !important;
  }
  #s2e-plan-root .s2e-flex-wrap{
    padding:15px 12px !important;
  }
}


/* =========================================================
   STEP2ENGLISH - v45 UI + FLEX PLAN CLEANUP
   - فصل الخطة المرنة
   - إخفاء mm/dd/yyyy بزر واضح
   - منع خروج العناصر على الموبايل
   - حذف النصوص الزائدة
========================================================= */

#s2e-plan-root{
  width:min(100%,920px) !important;
  max-width:100% !important;
  padding-inline:clamp(8px,2vw,16px) !important;
  overflow-x:hidden !important;
}

#s2e-plan-root .s2e-plan-kicker{
  display:none !important;
}

#s2e-plan-root .s2e-setup-box-final,
#s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
  width:100% !important;
  max-width:920px !important;
  padding:24px 20px 22px !important;
  border-radius:24px !important;
  box-shadow:0 12px 28px rgba(11,61,145,.065) !important;
}

#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  font-size:32px !important;
  margin-bottom:6px !important;
}

#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  font-size:16px !important;
  margin-bottom:18px !important;
}

/* خطط البداية: 4 في الصف، والخطة المرنة أسفلهم في المنتصف */
#s2e-plan-root .s2e-plan-tabs-setup{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
  max-width:860px !important;
  margin:0 auto 16px !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
  min-width:0 !important;
  min-height:78px !important;
  padding:12px 10px !important;
  border-radius:18px !important;
  box-shadow:0 6px 16px rgba(11,61,145,.045) !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
  grid-column:2 / span 2 !important;
}

#s2e-plan-root .s2e-plan-tab-main{
  font-size:19px !important;
}

#s2e-plan-root .s2e-plan-tab-meta{
  font-size:12px !important;
}

#s2e-plan-root .s2e-plan-tab.active{
  background:#0b3d91 !important;
  box-shadow:0 10px 22px rgba(11,61,145,.16) !important;
}

/* الخطة المرنة الجديدة */
#s2e-plan-root .s2e-flex-wrap{
  width:min(100%,720px) !important;
  margin:10px auto 16px !important;
  padding:18px !important;
  border-radius:22px !important;
  background:#ffffff !important;
  border:1px solid #dbe7f7 !important;
  box-shadow:0 8px 20px rgba(11,61,145,.045) !important;
}

#s2e-plan-root .s2e-flex-title{
  font-size:24px !important;
  color:#0b3d91 !important;
}

#s2e-plan-root .s2e-flex-sub{
  font-size:15px !important;
  color:#667894 !important;
}

#s2e-plan-root .s2e-flex-methods{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin-top:14px !important;
}

#s2e-plan-root .s2e-flex-method{
  min-width:0 !important;
  min-height:50px !important;
  border-radius:16px !important;
  border:1px solid #cfdff4 !important;
  background:#fbfdff !important;
  color:#0b3d91 !important;
  font-size:16px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  white-space:normal !important;
  line-height:1.25 !important;
}

#s2e-plan-root .s2e-flex-method.active{
  background:#0b3d91 !important;
  border-color:#0b3d91 !important;
  color:#fff !important;
}

#s2e-plan-root .s2e-flex-panel{
  margin-top:14px !important;
  width:100% !important;
}

#s2e-plan-root .s2e-flex-label-center{
  text-align:center !important;
  margin-bottom:8px !important;
}

#s2e-plan-root .s2e-flex-input,
#s2e-plan-root select.s2e-flex-input{
  width:100% !important;
  min-height:54px !important;
  border-radius:16px !important;
  font-size:17px !important;
  max-width:100% !important;
}

/* زر التاريخ بدل mm/dd/yyyy */
#s2e-plan-root .s2e-date-button{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:56px !important;
  border-radius:16px !important;
  border:1px solid #cfdff4 !important;
  background:#fbfdff !important;
  color:#0b2f6f !important;
  font-size:18px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  overflow:hidden !important;
}

#s2e-plan-root .s2e-date-button span{
  pointer-events:none !important;
  line-height:1.25 !important;
}

#s2e-plan-root .s2e-flex-date-native{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:0 !important;
  cursor:pointer !important;
}

/* كروت الوصف */
#s2e-plan-root .s2e-plan-desc-card-final,
#s2e-plan-root .s2e-plan-desc-card{
  width:min(100%,660px) !important;
  min-height:auto !important;
  padding:14px 16px !important;
  border-radius:20px !important;
}

/* بعد بداية الخطة: لا خروج يمين/يسار */
#s2e-plan-root .s2e-plan-running-box{
  width:100% !important;
  max-width:920px !important;
  overflow:hidden !important;
}

#s2e-plan-root .s2e-plan-tabs-running{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:8px !important;
  width:100% !important;
  margin:10px auto 12px !important;
}

#s2e-plan-root .s2e-plan-tabs-running .s2e-plan-tab{
  min-width:0 !important;
  min-height:56px !important;
  padding:8px 6px !important;
  border-radius:16px !important;
  white-space:normal !important;
}

#s2e-plan-root .s2e-plan-tabs-running .s2e-plan-tab-main{
  font-size:16px !important;
}

/* زر إعادة الضبط */
#s2e-plan-root .s2e-reset-plan-btn{
  font-size:15px !important;
}

/* اهتزاز خفيف عند نقص اختيار المرن */
#s2e-plan-root .s2e-flex-attention{
  animation:s2eFlexNeedPick .9s ease 1 !important;
}
@keyframes s2eFlexNeedPick{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(5px)}
  50%{transform:translateX(-5px)}
  75%{transform:translateX(3px)}
}

@media (max-width:900px){
  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    max-width:620px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
    grid-column:1 / -1 !important;
  }
  #s2e-plan-root .s2e-plan-tabs-running{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:520px){
  html, body{
    overflow-x:hidden !important;
  }

  #s2e-plan-root{
    width:100% !important;
    max-width:100vw !important;
    padding-inline:8px !important;
    margin-inline:auto !important;
  }

  #s2e-plan-root .s2e-setup-box-final,
  #s2e-plan-root .s2e-plan-topbox.s2e-setup-only,
  #s2e-plan-root .s2e-plan-running-box{
    width:100% !important;
    max-width:100% !important;
    padding:18px 12px 16px !important;
    border-radius:20px !important;
  }

  #s2e-plan-root .s2e-setup-only .s2e-plan-title{
    font-size:28px !important;
  }

  #s2e-plan-root .s2e-setup-only .s2e-plan-sub{
    font-size:14px !important;
    margin-bottom:14px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:66px !important;
    padding:10px 6px !important;
    border-radius:16px !important;
  }

  #s2e-plan-root .s2e-plan-tab-main{
    font-size:17px !important;
  }

  #s2e-plan-root .s2e-plan-tab-meta{
    font-size:11px !important;
  }

  #s2e-plan-root .s2e-flex-wrap{
    width:100% !important;
    padding:14px 10px !important;
    border-radius:18px !important;
  }

  #s2e-plan-root .s2e-flex-title{
    font-size:22px !important;
  }

  #s2e-plan-root .s2e-flex-sub{
    font-size:14px !important;
  }

  #s2e-plan-root .s2e-flex-methods{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-flex-method{
    min-height:48px !important;
    font-size:15px !important;
  }

  #s2e-plan-root .s2e-date-button,
  #s2e-plan-root .s2e-flex-input,
  #s2e-plan-root select.s2e-flex-input{
    min-height:52px !important;
    font-size:16px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-running{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-running .s2e-plan-tab{
    min-height:52px !important;
    padding:8px 5px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-running .s2e-plan-tab-main{
    font-size:15px !important;
  }

  #s2e-plan-root .s2e-top-actions{
    flex-wrap:wrap !important;
  }

  #s2e-plan-root .s2e-top-secondary-btn{
    flex:1 1 100% !important;
    width:100% !important;
    white-space:normal !important;
  }

  #s2e-plan-root .s2e-plan-start-btn{
    width:100% !important;
    max-width:360px !important;
  }
}

/* =========================================================
   STEP2ENGLISH - SMART TIMETABLE v46 UI ORDER + CLEAN SETUP
   Current day first / clean selected plan / clearer prev-next list
========================================================= */
#s2e-plan-root,
#s2e-plan-root *{
  box-sizing:border-box !important;
}

#s2e-plan-root{
  width:min(100%, 980px) !important;
  margin-inline:auto !important;
  overflow-x:hidden !important;
}

#s2e-plan-root .s2e-plan-kicker{
  display:none !important;
}

/* ---------- setup screen ---------- */
#s2e-plan-root .s2e-setup-box-final{
  padding:22px 18px 24px !important;
  border-radius:26px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
  border:2px solid #dbeafe !important;
  box-shadow:0 16px 32px rgba(13,56,145,.08) !important;
}

#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  font-size:34px !important;
  line-height:1.15 !important;
  margin:0 0 6px !important;
}

#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  font-size:17px !important;
  margin:0 0 18px !important;
  color:#6a7f9b !important;
}

#s2e-plan-root .s2e-selected-plan-card{
  width:min(620px,100%) !important;
  margin:0 auto 12px !important;
  padding:16px 16px !important;
  border-radius:22px !important;
  border:2px solid #b9d7ff !important;
  background:linear-gradient(180deg,#f4f9ff 0%,#ffffff 100%) !important;
  text-align:center !important;
  box-shadow:0 12px 24px rgba(13,56,145,.08) !important;
}

#s2e-plan-root .s2e-selected-plan-kicker{
  font-size:14px !important;
  font-weight:900 !important;
  color:#6b86a8 !important;
  margin-bottom:4px !important;
}

#s2e-plan-root .s2e-selected-plan-title{
  font-size:26px !important;
  font-weight:900 !important;
  color:#003b8f !important;
  line-height:1.2 !important;
}

#s2e-plan-root .s2e-selected-plan-sub{
  margin-top:5px !important;
  font-size:15px !important;
  font-weight:800 !important;
  color:#6b7f9d !important;
}

#s2e-plan-root .s2e-change-plan-hint{
  margin:2px auto 10px !important;
  text-align:center !important;
  color:#6c7f98 !important;
  font-size:14px !important;
  font-weight:900 !important;
}

#s2e-plan-root .s2e-plan-tabs-setup{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
  margin:0 auto 14px !important;
}

#s2e-plan-root .s2e-plan-tabs-setup.has-selected{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  max-width:760px !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
  grid-column:auto !important;
  min-height:62px !important;
  width:100% !important;
  padding:10px 12px !important;
  border-radius:18px !important;
  background:#ffffff !important;
  color:#083b84 !important;
  border:2px solid #d7e7fb !important;
  box-shadow:0 8px 16px rgba(13,56,145,.06) !important;
}

#s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) .s2e-plan-tab:last-child{
  grid-column:2 / span 2 !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  font-size:18px !important;
  line-height:1.15 !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-meta{
  display:none !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active{
  background:#0f4ba0 !important;
  color:#ffffff !important;
  border-color:#0f4ba0 !important;
  box-shadow:0 12px 22px rgba(15,75,160,.18) !important;
}

#s2e-plan-root .s2e-flex-wrap{
  width:min(650px,100%) !important;
  margin:10px auto 14px !important;
  padding:16px !important;
  border-radius:22px !important;
  border:2px solid #dbeafe !important;
  background:#ffffff !important;
  box-shadow:0 12px 22px rgba(13,56,145,.06) !important;
}

#s2e-plan-root .s2e-flex-title{
  font-size:22px !important;
  margin-bottom:10px !important;
}

#s2e-plan-root .s2e-flex-sub{
  display:none !important;
}

#s2e-plan-root .s2e-flex-methods{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}

#s2e-plan-root .s2e-flex-method{
  min-height:52px !important;
  border-radius:16px !important;
  font-size:16px !important;
  font-weight:900 !important;
}

#s2e-plan-root .s2e-date-button,
#s2e-plan-root .s2e-flex-input{
  width:100% !important;
  min-height:56px !important;
  border-radius:16px !important;
  font-size:18px !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-plan-desc-card-final{
  width:min(620px,100%) !important;
  margin:12px auto !important;
  padding:14px 16px !important;
}

#s2e-plan-root .s2e-plan-desc-card-final .s2e-plan-desc-text{
  font-size:15px !important;
}

/* ---------- after start: current day first ---------- */
#s2e-plan-root .s2e-days-wrap{
  width:min(760px,100%) !important;
  margin:0 auto 12px !important;
}

#s2e-plan-root .s2e-days-wrap .s2e-day-card{
  margin-top:0 !important;
}

#s2e-plan-root .s2e-day-card{
  border-radius:24px !important;
  overflow:hidden !important;
}

#s2e-plan-root .s2e-day-card.current:not(.done),
#s2e-plan-root .s2e-day-card.prev-missing{
  border-color:#ef8f8f !important;
  background:linear-gradient(180deg,#fffdfd 0%,#fff7f7 100%) !important;
}

#s2e-plan-root .s2e-day-card.done{
  border-color:#65b97a !important;
  background:linear-gradient(180deg,#f8fff9 0%,#f1fbf3 100%) !important;
}

#s2e-plan-root .s2e-after-day-panel{
  width:min(760px,100%) !important;
  margin:0 auto 14px !important;
  padding:14px !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f6fbff 100%) !important;
  border:2px solid #dbeafe !important;
  box-shadow:0 12px 22px rgba(13,56,145,.07) !important;
}

#s2e-plan-root .s2e-day-nav-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin:0 0 14px !important;
}

#s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn{
  min-width:0 !important;
  width:100% !important;
  min-height:54px !important;
  border-radius:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  font-size:17px !important;
}

#s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn strong{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:34px !important;
  height:30px !important;
  padding:0 9px !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#0f4ba0 !important;
  border:2px solid rgba(15,75,160,.16) !important;
  font-size:15px !important;
  font-weight:900 !important;
}

#s2e-plan-root .s2e-progress-below-day{
  margin:0 0 14px !important;
  padding:14px !important;
  border-radius:20px !important;
  background:#ffffff !important;
  border:2px solid #e0ebfa !important;
}

#s2e-plan-root .s2e-progress-title{
  text-align:center !important;
  font-size:21px !important;
  font-weight:900 !important;
  color:#003b8f !important;
  margin-bottom:8px !important;
}

#s2e-plan-root .s2e-progress-note{
  background:#f8fbff !important;
}

#s2e-plan-root .s2e-plan-settings-bottom{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  padding:12px !important;
  border-radius:20px !important;
  background:#ffffff !important;
  border:2px solid #e3eefb !important;
}

#s2e-plan-root .s2e-current-plan-label{
  width:100% !important;
  text-align:center !important;
  color:#6b7f9d !important;
  font-size:13px !important;
  font-weight:900 !important;
}

#s2e-plan-root .s2e-current-plan-name{
  color:#003b8f !important;
  font-size:19px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  margin-inline:8px !important;
}

#s2e-plan-root .s2e-plan-settings-bottom .s2e-reset-plan-btn{
  min-height:42px !important;
  padding:8px 16px !important;
  border-radius:999px !important;
  font-size:15px !important;
}

/* ---------- previous / next days popup ---------- */
#s2e-plan-root .s2e-prevdays-box{
  width:min(820px,calc(100vw - 24px)) !important;
  max-width:calc(100vw - 24px) !important;
  overflow-x:hidden !important;
}

#s2e-plan-root .s2e-prevdays-body{
  padding:14px !important;
  gap:10px !important;
}

#s2e-plan-root .s2e-prevday-row{
  width:100% !important;
  display:grid !important;
  grid-template-columns:1.3fr 1fr auto !important;
  align-items:center !important;
  gap:12px !important;
  padding:14px 16px !important;
  border-radius:18px !important;
  text-align:right !important;
}

#s2e-plan-root .s2e-prevday-main{
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
  min-width:0 !important;
}

#s2e-plan-root .s2e-prevday-label{
  font-size:18px !important;
  color:#003b8f !important;
  font-weight:900 !important;
  line-height:1.25 !important;
}

#s2e-plan-root .s2e-prevday-weekday{
  font-size:14px !important;
  color:#667f9f !important;
  font-weight:900 !important;
}

#s2e-plan-root .s2e-prevday-date{
  font-size:17px !important;
  color:#234a86 !important;
  font-weight:900 !important;
  text-align:center !important;
  white-space:nowrap !important;
}

#s2e-plan-root .s2e-prevday-status{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:88px !important;
  min-height:34px !important;
  padding:6px 12px !important;
  border-radius:999px !important;
  font-size:14px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  background:#fff !important;
}

#s2e-plan-root .s2e-prevday-row.done .s2e-prevday-status{
  color:#198754 !important;
  border:2px solid #bfe7c8 !important;
}

#s2e-plan-root .s2e-prevday-row.notdone .s2e-prevday-status{
  color:#c43d3d !important;
  border:2px solid #f2b7b7 !important;
}

@media (max-width:768px){
  #s2e-plan-root{
    width:100% !important;
    max-width:100% !important;
    padding-inline:8px !important;
  }

  #s2e-plan-root .s2e-setup-box-final,
  #s2e-plan-root .s2e-after-day-panel,
  #s2e-plan-root .s2e-days-wrap,
  #s2e-plan-root .s2e-day-card{
    width:100% !important;
    max-width:100% !important;
  }

  #s2e-plan-root .s2e-setup-box-final{
    padding:16px 12px 18px !important;
    border-radius:22px !important;
  }

  #s2e-plan-root .s2e-setup-only .s2e-plan-title{
    font-size:30px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-setup.has-selected{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) .s2e-plan-tab:last-child{
    grid-column:1 / -1 !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:58px !important;
    border-radius:16px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
    font-size:17px !important;
  }

  #s2e-plan-root .s2e-flex-wrap{
    padding:12px !important;
    border-radius:18px !important;
  }

  #s2e-plan-root .s2e-flex-methods{
    grid-template-columns:1fr !important;
  }

  #s2e-plan-root .s2e-day-nav-actions{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn{
    min-height:50px !important;
    font-size:15px !important;
    padding:8px 10px !important;
  }

  #s2e-plan-root .s2e-progress-line{
    flex-direction:column !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-progress-meta,
  #s2e-plan-root #s2e-days-done-text{
    font-size:15px !important;
  }

  #s2e-plan-root .s2e-plan-settings-bottom{
    flex-direction:column !important;
  }

  #s2e-plan-root .s2e-current-plan-name{
    margin:0 !important;
    font-size:18px !important;
  }

  #s2e-plan-root .s2e-prevday-row{
    grid-template-columns:1fr !important;
    gap:7px !important;
    text-align:center !important;
    padding:13px !important;
  }

  #s2e-plan-root .s2e-prevday-main{
    align-items:center !important;
  }

  #s2e-plan-root .s2e-prevday-date{
    font-size:15px !important;
  }

  #s2e-plan-root .s2e-prevday-status{
    margin-inline:auto !important;
  }
}

/* =========================================================
   STEP2ENGLISH - v47 layout polish
   - hide duplicate progress heading
   - selected plan as blue card
   - no horizontal scroll
   - clearer previous/next days rows
========================================================= */

html,
body,
body#page-mod-page-view,
body#page-mod-page-view #page,
body#page-mod-page-view #page-content,
body#page-mod-page-view #region-main,
body#page-mod-page-view #region-main-box{
  overflow-x:hidden !important;
}

#s2e-plan-root,
#s2e-plan-root *{
  box-sizing:border-box !important;
}

/* لا تكرار لعنوان التقدم */
#s2e-plan-root .s2e-progress-stack::before{
  content:none !important;
  display:none !important;
}

#s2e-plan-root .s2e-progress-below-day{
  margin-top:2px !important;
}

#s2e-plan-root .s2e-progress-title{
  display:block !important;
  margin:0 0 10px !important;
  font-size:22px !important;
  font-weight:900 !important;
  color:#003b8f !important;
  text-align:center !important;
}

/* الخطة المختارة واضحة بالأزرق */
#s2e-plan-root .s2e-selected-plan-card{
  background:linear-gradient(180deg,#0d1f5c 0%,#003b8f 58%,#0f63d9 100%) !important;
  border-color:#0f4ba0 !important;
  color:#fff !important;
  box-shadow:0 16px 32px rgba(15,75,160,.22) !important;
}

#s2e-plan-root .s2e-selected-plan-kicker,
#s2e-plan-root .s2e-selected-plan-sub{
  color:rgba(255,255,255,.78) !important;
}

#s2e-plan-root .s2e-selected-plan-title{
  color:#fff !important;
}

#s2e-plan-root .s2e-change-plan-link{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  padding:8px 16px !important;
  margin:2px auto 12px !important;
  border-radius:999px !important;
  border:2px solid #d2e5ff !important;
  background:#fff !important;
  color:#0f4ba0 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 8px 16px rgba(13,56,145,.06) !important;
}

#s2e-plan-root .s2e-change-plan-link:hover{
  background:#f3f8ff !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tab.active{
  background:linear-gradient(180deg,#0d1f5c 0%,#003b8f 58%,#0f63d9 100%) !important;
  color:#fff !important;
  border-color:#0f4ba0 !important;
  box-shadow:0 14px 26px rgba(15,75,160,.22) !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active .s2e-plan-tab-main{
  color:#fff !important;
}

/* تنظيم أزرار الأيام السابقة/القادمة */
#s2e-plan-root .s2e-day-nav-actions{
  max-width:100% !important;
}

#s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn{
  overflow:hidden !important;
  white-space:nowrap !important;
}

/* مودال الأيام القادمة/السابقة: يمين = اليوم، الوسط = التاريخ، يسار = الحالة */
#s2e-plan-root .s2e-overlay,
#s2e-plan-root .s2e-prevdays-box{
  overflow-x:hidden !important;
}

#s2e-plan-root .s2e-prevday-row{
  direction:ltr !important;
  display:grid !important;
  grid-template-columns:minmax(96px,.8fr) minmax(150px,1fr) minmax(150px,1.15fr) !important;
  gap:12px !important;
  align-items:center !important;
  width:100% !important;
  max-width:100% !important;
  padding:14px 16px !important;
}

#s2e-plan-root .s2e-prevday-main{
  grid-column:3 !important;
  direction:rtl !important;
  text-align:right !important;
  min-width:0 !important;
}

#s2e-plan-root .s2e-prevday-date{
  grid-column:2 !important;
  direction:ltr !important;
  text-align:center !important;
  font-size:18px !important;
  color:#0c2f6f !important;
}

#s2e-plan-root .s2e-prevday-status{
  grid-column:1 !important;
  direction:rtl !important;
  justify-self:start !important;
}

#s2e-plan-root .s2e-prevday-label{
  display:block !important;
  font-size:18px !important;
  color:#003b8f !important;
}

#s2e-plan-root .s2e-prevday-weekday{
  display:block !important;
  margin-top:3px !important;
  font-size:15px !important;
  color:#5f7799 !important;
}

/* كارت اليوم الحالي أكثر هدوءًا */
#s2e-plan-root .s2e-day-card.current:not(.done),
#s2e-plan-root .s2e-day-card.prev-missing{
  background:linear-gradient(180deg,#fffdfd 0%,#fff7f7 100%) !important;
  border-color:#ef8f8f !important;
}

#s2e-plan-root .s2e-after-day-panel,
#s2e-plan-root .s2e-days-wrap,
#s2e-plan-root .s2e-day-card,
#s2e-plan-root .s2e-plan-topbox{
  max-width:100% !important;
}

@media (max-width:768px){
  #s2e-plan-root{
    padding-inline:6px !important;
  }

  #s2e-plan-root .s2e-selected-plan-card{
    padding:14px 12px !important;
    border-radius:20px !important;
  }

  #s2e-plan-root .s2e-selected-plan-title{
    font-size:25px !important;
  }

  #s2e-plan-root .s2e-change-plan-link{
    width:auto !important;
    max-width:100% !important;
    font-size:14px !important;
  }

  #s2e-plan-root .s2e-day-nav-actions{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn{
    min-height:50px !important;
    padding:9px 8px !important;
    font-size:15px !important;
    gap:7px !important;
  }

  #s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn strong{
    min-width:30px !important;
    height:28px !important;
    padding:0 8px !important;
    font-size:14px !important;
  }

  #s2e-plan-root .s2e-prevdays-box{
    width:calc(100vw - 12px) !important;
    max-width:calc(100vw - 12px) !important;
    margin-inline:auto !important;
  }

  #s2e-plan-root .s2e-prevdays-body{
    padding:10px !important;
  }

  #s2e-plan-root .s2e-prevday-row{
    grid-template-columns:1fr !important;
    gap:6px !important;
    direction:rtl !important;
    padding:13px 12px !important;
  }

  #s2e-plan-root .s2e-prevday-main,
  #s2e-plan-root .s2e-prevday-date,
  #s2e-plan-root .s2e-prevday-status{
    grid-column:1 !important;
    justify-self:stretch !important;
    text-align:center !important;
  }

  #s2e-plan-root .s2e-prevday-status{
    width:max-content !important;
    min-width:92px !important;
    margin:4px auto 0 !important;
  }

  #s2e-plan-root .s2e-prevday-label{
    font-size:17px !important;
  }

  #s2e-plan-root .s2e-prevday-date{
    font-size:16px !important;
  }

  #s2e-plan-root .s2e-progress-below-day{
    padding:12px 10px !important;
  }

  #s2e-plan-root .s2e-progress-title{
    font-size:20px !important;
  }
}

@media (max-width:430px){
  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) .s2e-plan-tab:last-child,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
    grid-column:1 / -1 !important;
  }

  #s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn span{
    font-size:14px !important;
  }
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v48
   Clear flex modes + better days modal + compact current plan
========================================================= */
#s2e-plan-root,
#s2e-plan-root *{
  box-sizing:border-box !important;
}

#s2e-plan-root{
  overflow-x:hidden !important;
}

#s2e-plan-root .s2e-setup-warning,
#s2e-plan-root .s2e-flex-error{
  width:100% !important;
  max-width:620px !important;
  margin:10px auto 12px !important;
  padding:11px 14px !important;
  border-radius:16px !important;
  border:2px solid #ffd4a8 !important;
  background:#fff8ef !important;
  color:#a34f00 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:16px !important;
  font-weight:900 !important;
  text-align:center !important;
  line-height:1.5 !important;
}

#s2e-plan-root .s2e-flex-wrap{
  width:100% !important;
  max-width:620px !important;
  margin:14px auto !important;
  padding:16px !important;
  border-radius:22px !important;
  border:2px solid #d7e8ff !important;
  background:#fff !important;
  box-shadow:0 12px 24px rgba(13,56,145,.06) !important;
  overflow:hidden !important;
}

#s2e-plan-root .s2e-flex-title{
  font-size:24px !important;
  font-weight:900 !important;
  color:#003b8f !important;
  text-align:center !important;
  margin:0 0 12px !important;
  line-height:1.35 !important;
}

#s2e-plan-root .s2e-flex-methods{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}

#s2e-plan-root .s2e-flex-method,
#s2e-plan-root .s2e-flex-input,
#s2e-plan-root .s2e-date-button{
  width:100% !important;
  min-width:0 !important;
}

#s2e-plan-root .s2e-flex-method{
  min-height:58px !important;
  border-radius:18px !important;
  border:2px solid #d7e8ff !important;
  background:#fff !important;
  color:#003b8f !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:19px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

#s2e-plan-root .s2e-flex-method.active,
#s2e-plan-root .s2e-flex-method:hover{
  background:linear-gradient(180deg,#0d1f5c 0%,#003b8f 58%,#0f63d9 100%) !important;
  color:#fff !important;
  border-color:#0f4ba0 !important;
}

#s2e-plan-root .s2e-flex-mode-summary{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin:0 0 14px !important;
  padding:14px !important;
  border-radius:20px !important;
  background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%) !important;
  border:2px solid #d7e8ff !important;
}

#s2e-plan-root .s2e-flex-mode-kicker{
  font-size:14px !important;
  font-weight:900 !important;
  color:#6b83a7 !important;
  line-height:1.3 !important;
}

#s2e-plan-root .s2e-flex-mode-title{
  font-size:24px !important;
  font-weight:900 !important;
  color:#003b8f !important;
  line-height:1.25 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-flex-change-method{
  min-height:38px !important;
  padding:7px 14px !important;
  border-radius:999px !important;
  border:2px solid #cfe2ff !important;
  background:#fff !important;
  color:#0f4ba0 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

#s2e-plan-root .s2e-flex-panel{
  width:100% !important;
  margin:0 !important;
}

#s2e-plan-root .s2e-flex-field{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  width:100% !important;
  margin:0 !important;
}

#s2e-plan-root .s2e-flex-label{
  display:block !important;
  width:100% !important;
  color:#003b8f !important;
  font-size:19px !important;
  font-weight:900 !important;
  text-align:center !important;
  line-height:1.35 !important;
}

#s2e-plan-root .s2e-flex-select,
#s2e-plan-root .s2e-date-button{
  min-height:60px !important;
  border-radius:18px !important;
  border:2px solid #d1e4ff !important;
  background:#fff !important;
  color:#001f55 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:20px !important;
  font-weight:900 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-date-button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  cursor:pointer !important;
  padding:0 14px !important;
}

#s2e-plan-root .s2e-date-button span{
  width:100% !important;
  text-align:center !important;
}

/* Modal day cards v48 */
#s2e-plan-root .s2e-prevdays-box{
  overflow-x:hidden !important;
}

#s2e-plan-root .s2e-prevday-row{
  direction:ltr !important;
  display:grid !important;
  grid-template-columns:minmax(120px,.85fr) minmax(180px,1.2fr) minmax(120px,.85fr) !important;
  grid-template-areas:"date center status" !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
  min-height:78px !important;
  padding:12px 14px !important;
  border-radius:18px !important;
}

#s2e-plan-root .s2e-prevday-datebox{
  grid-area:date !important;
  direction:ltr !important;
  justify-self:center !important;
  width:100% !important;
}

#s2e-plan-root .s2e-prevday-date{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  width:100% !important;
  padding:6px 10px !important;
  border-radius:14px !important;
  background:#fff !important;
  border:2px solid #dbe8f9 !important;
  color:#0c2f6f !important;
  font-family:Verdana,Arial,sans-serif !important;
  font-size:17px !important;
  font-weight:900 !important;
  text-align:center !important;
  white-space:nowrap !important;
}

#s2e-plan-root .s2e-prevday-center{
  grid-area:center !important;
  direction:rtl !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-width:0 !important;
}

#s2e-plan-root .s2e-prevday-weekday{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  padding:5px 18px !important;
  border-radius:999px !important;
  background:#eaf3ff !important;
  color:#003b8f !important;
  border:2px solid #cfe2ff !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-prevday-label{
  display:block !important;
  color:#5d7496 !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-prevday-status{
  grid-area:status !important;
  direction:rtl !important;
  justify-self:center !important;
  width:100% !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-prevday-status-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  min-width:100px !important;
  padding:6px 12px !important;
  border-radius:999px !important;
  background:#fff !important;
  border:2px solid #ef8f8f !important;
  color:#a22626 !important;
  font-size:14px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

#s2e-plan-root .s2e-prevday-row.done .s2e-prevday-status-badge{
  border-color:#98d3aa !important;
  color:#1b7f3e !important;
  background:#f5fff8 !important;
}

/* Compact current plan */
#s2e-plan-root .s2e-plan-settings-compact{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  padding:12px !important;
  border-radius:20px !important;
}

#s2e-plan-root .s2e-current-plan-inline{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  min-height:42px !important;
  padding:8px 12px !important;
  border-radius:999px !important;
  background:#f6faff !important;
  border:2px solid #d9e8fb !important;
  color:#607ca7 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
}

#s2e-plan-root .s2e-current-plan-inline strong{
  color:#003b8f !important;
  font-size:16px !important;
}

#s2e-plan-root .s2e-plan-settings-compact .s2e-reset-plan-btn{
  min-height:42px !important;
  padding:8px 14px !important;
  border-radius:999px !important;
  font-size:14px !important;
}

@media (max-width:768px){
  #s2e-plan-root .s2e-flex-wrap{
    width:100% !important;
    max-width:100% !important;
    padding:12px !important;
    border-radius:20px !important;
  }

  #s2e-plan-root .s2e-flex-methods{
    grid-template-columns:1fr !important;
  }

  #s2e-plan-root .s2e-flex-title,
  #s2e-plan-root .s2e-flex-mode-title{
    font-size:22px !important;
  }

  #s2e-plan-root .s2e-flex-method,
  #s2e-plan-root .s2e-flex-select,
  #s2e-plan-root .s2e-date-button{
    min-height:56px !important;
    font-size:18px !important;
  }

  #s2e-plan-root .s2e-prevday-row{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "center"
      "date"
      "status" !important;
    gap:9px !important;
    padding:13px 12px !important;
  }

  #s2e-plan-root .s2e-prevday-datebox,
  #s2e-plan-root .s2e-prevday-center,
  #s2e-plan-root .s2e-prevday-status{
    width:100% !important;
    justify-self:stretch !important;
  }

  #s2e-plan-root .s2e-prevday-date{
    width:auto !important;
    min-width:160px !important;
    max-width:100% !important;
    font-size:16px !important;
  }

  #s2e-plan-root .s2e-prevday-weekday{
    font-size:18px !important;
    min-width:120px !important;
  }

  #s2e-plan-root .s2e-prevday-status-badge{
    min-width:104px !important;
  }

  #s2e-plan-root .s2e-plan-settings-compact{
    flex-direction:column !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-current-plan-inline{
    width:100% !important;
    max-width:100% !important;
  }
}


/* =========================================================
   STEP2ENGLISH SMART PLAN v49
   Flex days scroll + clear date selection
========================================================= */
#s2e-plan-root .s2e-flex-choice-title{
  width:100% !important;
  margin:0 0 10px !important;
  text-align:center !important;
  color:#003b8f !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:24px !important;
  font-weight:900 !important;
  line-height:1.35 !important;
}

#s2e-plan-root .s2e-flex-days-scroll{
  width:100% !important;
  max-height:230px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:8px !important;
  padding:10px !important;
  border-radius:20px !important;
  border:2px solid #d7e8ff !important;
  background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%) !important;
  scroll-behavior:smooth !important;
}

#s2e-plan-root .s2e-flex-days-scroll::-webkit-scrollbar{
  width:8px !important;
}
#s2e-plan-root .s2e-flex-days-scroll::-webkit-scrollbar-thumb{
  background:#9fc6ff !important;
  border-radius:999px !important;
}
#s2e-plan-root .s2e-flex-days-scroll::-webkit-scrollbar-track{
  background:#eaf3ff !important;
  border-radius:999px !important;
}

#s2e-plan-root .s2e-flex-day-option{
  min-width:0 !important;
  min-height:48px !important;
  border-radius:15px !important;
  border:2px solid #cfe2ff !important;
  background:#fff !important;
  color:#003b8f !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:18px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 5px 12px rgba(13,56,145,.05) !important;
}

#s2e-plan-root .s2e-flex-day-option span{
  font-size:13px !important;
  font-weight:900 !important;
  color:inherit !important;
}

#s2e-plan-root .s2e-flex-day-option.active,
#s2e-plan-root .s2e-flex-day-option:hover{
  background:linear-gradient(180deg,#0d1f5c 0%,#003b8f 58%,#0f63d9 100%) !important;
  color:#fff !important;
  border-color:#0f4ba0 !important;
  box-shadow:0 10px 20px rgba(0,59,143,.18) !important;
  transform:translateY(-1px) !important;
}

#s2e-plan-root .s2e-flex-choice-hint{
  margin-top:8px !important;
  color:#6b83a7 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.45 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-date-button-strong{
  min-height:74px !important;
  border-width:3px !important;
  border-color:#98c5ff !important;
  background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%) !important;
  color:#003b8f !important;
  box-shadow:0 10px 22px rgba(13,56,145,.10) !important;
}

#s2e-plan-root .s2e-date-button-strong span{
  font-size:24px !important;
  font-weight:900 !important;
}

#s2e-plan-root .s2e-date-button-strong.ready{
  border-color:#24b36b !important;
  background:linear-gradient(180deg,#f4fff8 0%,#e6fbef 100%) !important;
  color:#087a43 !important;
}

@media (max-width:768px){
  #s2e-plan-root .s2e-flex-choice-title{
    font-size:21px !important;
  }
  #s2e-plan-root .s2e-flex-days-scroll{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    max-height:220px !important;
    gap:7px !important;
    padding:8px !important;
  }
  #s2e-plan-root .s2e-flex-day-option{
    min-height:46px !important;
    font-size:16px !important;
  }
  #s2e-plan-root .s2e-date-button-strong{
    min-height:66px !important;
  }
  #s2e-plan-root .s2e-date-button-strong span{
    font-size:20px !important;
  }
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v50
   Clean flex day scroll + compact progress + modal day badges
========================================================= */

/* اسم الخطة فوق كارت اليوم فقط */
#s2e-plan-root .s2e-running-plan-name{
  width:min(620px,100%) !important;
  margin:0 auto 10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  padding:8px 14px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#eef6ff 0%,#ffffff 100%) !important;
  border:2px solid #d8e9ff !important;
  color:#003b8f !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:24px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
  text-align:center !important;
  box-shadow:0 8px 18px rgba(13,56,145,.06) !important;
}

/* حذف أي تلميحات زائدة تحت اختيار الأيام/التاريخ */
#s2e-plan-root .s2e-flex-choice-hint{
  display:none !important;
}

/* سكرول أيام حقيقي: قائمة رأسية وليس شبكة أزرار */
#s2e-plan-root .s2e-flex-days-scroll{
  display:block !important;
  width:100% !important;
  max-height:260px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:10px !important;
  border-radius:20px !important;
  border:2px solid #cfe2ff !important;
  background:linear-gradient(180deg,#f9fcff 0%,#eef6ff 100%) !important;
  scroll-behavior:smooth !important;
}

#s2e-plan-root .s2e-flex-day-option{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:52px !important;
  margin:0 0 8px !important;
  border-radius:16px !important;
  border:2px solid #cfe2ff !important;
  background:#fff !important;
  color:#003b8f !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:20px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 5px 12px rgba(13,56,145,.05) !important;
}

#s2e-plan-root .s2e-flex-day-option:last-child{
  margin-bottom:0 !important;
}

#s2e-plan-root .s2e-flex-day-option.active,
#s2e-plan-root .s2e-flex-day-option:hover{
  background:linear-gradient(180deg,#0d1f5c 0%,#003b8f 58%,#0f63d9 100%) !important;
  color:#fff !important;
  border-color:#0d4aa4 !important;
  box-shadow:0 10px 20px rgba(0,59,143,.18) !important;
}

#s2e-plan-root .s2e-flex-day-option span{
  margin-inline-start:4px !important;
  font-size:16px !important;
}

/* لا نعرض جمل مكررة موجودة أصلًا داخل كارت اليوم */
#s2e-plan-root .s2e-progress-submeta,
#s2e-plan-root .s2e-progress-note,
#s2e-day-units-text,
#s2e-progress-note{
  display:none !important;
}

/* تقليل مساحة قسم إعادة الضبط */
#s2e-plan-root .s2e-reset-only-row{
  padding:8px 0 4px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

#s2e-plan-root .s2e-reset-only-row .s2e-reset-plan-btn{
  min-height:42px !important;
  padding:8px 16px !important;
  border-radius:999px !important;
}

/* كروت الأيام القادمة/السابقة: اليوم والتاريخ والحالة داخل إطارات واضحة */
#s2e-plan-root .s2e-prevday-row{
  direction:rtl !important;
  display:grid !important;
  grid-template-columns:1fr 1fr 1fr !important;
  grid-template-areas:"center date status" !important;
  align-items:center !important;
  gap:12px !important;
  min-height:86px !important;
  padding:12px !important;
  overflow:hidden !important;
}

#s2e-plan-root .s2e-prevday-center,
#s2e-plan-root .s2e-prevday-datebox,
#s2e-plan-root .s2e-prevday-status{
  width:100% !important;
  min-width:0 !important;
}

#s2e-plan-root .s2e-prevday-center{
  grid-area:center !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:58px !important;
  padding:8px 10px !important;
  border-radius:16px !important;
  background:#fff !important;
  border:2px solid #cfe2ff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8) !important;
}

#s2e-plan-root .s2e-prevday-weekday{
  display:block !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#003b8f !important;
  font-size:20px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-prevday-label{
  display:block !important;
  margin-top:4px !important;
  color:#5d7496 !important;
  font-size:13px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-prevday-datebox{
  grid-area:date !important;
}

#s2e-plan-root .s2e-prevday-date{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:58px !important;
  padding:8px 10px !important;
  border-radius:16px !important;
  background:#fff !important;
  border:2px solid #dbe8f9 !important;
  color:#0c2f6f !important;
  font-family:Verdana,Arial,sans-serif !important;
  font-size:17px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
  white-space:nowrap !important;
}

#s2e-plan-root .s2e-prevday-status{
  grid-area:status !important;
}

#s2e-plan-root .s2e-prevday-status-badge{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:58px !important;
  padding:8px 10px !important;
  border-radius:16px !important;
  background:#fff !important;
  border:2px solid #ef8f8f !important;
  color:#a22626 !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
  white-space:nowrap !important;
}

#s2e-plan-root .s2e-prevday-row.done .s2e-prevday-status-badge{
  border-color:#98d3aa !important;
  color:#1b7f3e !important;
  background:#f5fff8 !important;
}

@media (max-width:768px){
  #s2e-plan-root .s2e-running-plan-name{
    min-height:42px !important;
    font-size:20px !important;
    margin-bottom:8px !important;
  }

  #s2e-plan-root .s2e-flex-days-scroll{
    max-height:230px !important;
    padding:8px !important;
  }

  #s2e-plan-root .s2e-flex-day-option{
    min-height:50px !important;
    font-size:18px !important;
    margin-bottom:7px !important;
  }

  #s2e-plan-root .s2e-prevday-row{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "center"
      "date"
      "status" !important;
    gap:8px !important;
    padding:12px !important;
  }

  #s2e-plan-root .s2e-prevday-center,
  #s2e-plan-root .s2e-prevday-date,
  #s2e-plan-root .s2e-prevday-status-badge{
    min-height:50px !important;
  }

  #s2e-plan-root .s2e-prevday-weekday{
    font-size:18px !important;
  }

  #s2e-plan-root .s2e-prevday-date{
    width:100% !important;
    min-width:0 !important;
    font-size:16px !important;
  }
}


/* =========================================================
   STEP2ENGLISH - v51 UX cleanup
   - no "flex plan" wording
   - 3 fixed choices + custom duration + exam date
   - clear vertical days scroller
   - framed day/date/status in previous/upcoming days
========================================================= */

#s2e-plan-root .s2e-plan-tabs-v51,
#s2e-plan-root .s2e-plan-tabs-setup{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  align-items:stretch !important;
}

#s2e-plan-root .s2e-plan-tabs-v51 .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
  min-height:70px !important;
  border-radius:20px !important;
  padding:12px 10px !important;
  background:#fff !important;
  border:2px solid #d7e7fb !important;
  color:#073f91 !important;
  box-shadow:0 8px 16px rgba(11,61,145,.06) !important;
}

#s2e-plan-root .s2e-plan-tabs-v51 .s2e-plan-tab:nth-last-child(-n+2){
  grid-column:auto !important;
}

#s2e-plan-root .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tabs-v51 .s2e-plan-tab.active{
  background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  border-color:#0d4fb9 !important;
  color:#fff !important;
  box-shadow:0 12px 24px rgba(13,56,145,.22) !important;
}

#s2e-plan-root .s2e-selected-plan-card{
  background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  color:#fff !important;
  border-color:#0d4fb9 !important;
  box-shadow:0 16px 28px rgba(13,56,145,.20) !important;
}

#s2e-plan-root .s2e-selected-plan-card *{
  color:#fff !important;
}

#s2e-plan-root .s2e-change-plan-link{
  margin:12px auto 14px !important;
}

#s2e-plan-root .s2e-flex-wrap-v51{
  margin-top:12px !important;
  padding:12px !important;
  border-radius:22px !important;
  background:#fff !important;
  border:2px solid #d7e7fb !important;
}

#s2e-plan-root .s2e-flex-choice-title{
  margin-bottom:10px !important;
  font-size:24px !important;
  font-weight:900 !important;
  color:#073f91 !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-flex-days-scroll-v51{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  max-height:280px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:8px !important;
  border-radius:20px !important;
  background:#f8fbff !important;
  border:2px solid #d7e7fb !important;
  scrollbar-width:thin !important;
}

#s2e-plan-root .s2e-flex-day-option{
  width:100% !important;
  min-height:56px !important;
  border-radius:16px !important;
  border:2px solid #d7e7fb !important;
  background:#fff !important;
  color:#073f91 !important;
  font-size:22px !important;
  font-weight:900 !important;
  text-align:center !important;
  cursor:pointer !important;
}

#s2e-plan-root .s2e-flex-day-option.active{
  background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  color:#fff !important;
  border-color:#0d4fb9 !important;
  box-shadow:0 10px 20px rgba(13,56,145,.18) !important;
}

#s2e-plan-root .s2e-date-button-strong{
  min-height:74px !important;
  border:3px solid #8cbfff !important;
  border-radius:20px !important;
  background:#fff !important;
  color:#073f91 !important;
  font-size:25px !important;
  font-weight:900 !important;
  box-shadow:0 10px 20px rgba(13,56,145,.08) !important;
}

#s2e-plan-root .s2e-date-button-strong.ready{
  border-color:#29a85a !important;
  background:linear-gradient(180deg,#f5fff8 0%,#eaf9ef 100%) !important;
  color:#12723c !important;
}

/* running plan name above day card */
#s2e-plan-root .s2e-running-plan-name{
  display:block !important;
  width:fit-content !important;
  max-width:100% !important;
  margin:0 auto 10px !important;
  padding:8px 18px !important;
  border-radius:999px !important;
  background:#eef6ff !important;
  border:2px solid #d7e7fb !important;
  color:#073f91 !important;
  font-size:20px !important;
  font-weight:900 !important;
  text-align:center !important;
}

/* previous / upcoming day cards */
#s2e-plan-root .s2e-prevday-row,
.s2e-prevday-row{
  display:grid !important;
  grid-template-columns:1fr 1.1fr 1fr !important;
  align-items:center !important;
  gap:10px !important;
  padding:12px !important;
  border-radius:18px !important;
  text-align:center !important;
}

.s2e-prevday-datebox{
  grid-column:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  padding:8px 10px !important;
  border-radius:14px !important;
  background:#fff !important;
  border:2px solid #d7e7fb !important;
}

.s2e-prevday-date{
  font-size:19px !important;
  font-weight:900 !important;
  color:#073f91 !important;
  white-space:nowrap !important;
}

.s2e-prevday-center{
  grid-column:2 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  min-height:58px !important;
  padding:8px 10px !important;
  border-radius:16px !important;
  background:#f2f7ff !important;
  border:2px solid #d7e7fb !important;
}

.s2e-prevday-weekday{
  display:block !important;
  font-size:22px !important;
  font-weight:900 !important;
  color:#073f91 !important;
  line-height:1.15 !important;
}

.s2e-prevday-label{
  display:block !important;
  font-size:14px !important;
  font-weight:900 !important;
  color:#5f7596 !important;
  line-height:1.2 !important;
}

.s2e-prevday-status{
  grid-column:3 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.s2e-prevday-status-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  border:2px solid #ef8f8f !important;
  background:#fff7f7 !important;
  color:#ca2d2d !important;
  font-size:15px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

.s2e-prevday-row.done .s2e-prevday-status-badge{
  border-color:#bfe7c8 !important;
  background:#f4fbf6 !important;
  color:#198754 !important;
}

@media (max-width:768px){
  #s2e-plan-root .s2e-plan-tabs-v51,
  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-v51 .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:60px !important;
    font-size:18px !important;
    padding:10px 8px !important;
  }

  #s2e-plan-root .s2e-flex-days-scroll-v51{
    max-height:250px !important;
  }

  #s2e-plan-root .s2e-flex-day-option{
    min-height:54px !important;
    font-size:20px !important;
  }

  #s2e-plan-root .s2e-date-button-strong{
    min-height:66px !important;
    font-size:21px !important;
  }

  #s2e-plan-root .s2e-prevday-row,
  .s2e-prevday-row{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  .s2e-prevday-center,
  .s2e-prevday-datebox,
  .s2e-prevday-status{
    grid-column:1 !important;
    width:100% !important;
  }

  .s2e-prevday-weekday{
    font-size:20px !important;
  }

  .s2e-prevday-date{
    font-size:17px !important;
  }
}

@media (max-width:430px){
  #s2e-plan-root .s2e-plan-tabs-v51,
  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:1fr !important;
  }

  #s2e-plan-root .s2e-plan-tabs-v51 .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:56px !important;
  }
}

/* =========================================================
   STEP2ENGLISH - SMART PLAN v52
   Dynamic content action popup
========================================================= */
.s2e-item-open-actions{
  border:0 !important;
  cursor:pointer !important;
  width:100% !important;
  text-align:inherit !important;
}
#s2e-item-actions-popup{
  z-index:2147483650 !important;
}
.s2e-item-action-modal-box{
  width:min(760px, calc(100% - 22px)) !important;
  max-height:calc(100vh - 26px) !important;
  overflow-y:auto !important;
  background:#fff !important;
  border:1px solid #dbe8f8 !important;
  border-radius:28px !important;
  padding:18px !important;
  box-shadow:0 22px 48px rgba(8,38,116,.22) !important;
  direction:rtl !important;
}
.s2e-item-action-title{
  text-align:center !important;
  padding:16px 12px !important;
  border-radius:22px !important;
  background:linear-gradient(135deg,#082674,#1350be,#2b95ff) !important;
  color:#fff !important;
  margin-bottom:14px !important;
}
.s2e-item-action-title .ar{
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:28px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
}
.s2e-item-action-title .en{
  margin-top:5px !important;
  font-family:Verdana,Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:800 !important;
  opacity:.92 !important;
}
.s2e-item-action-section{
  border:1px solid #dbe8f8 !important;
  border-radius:22px !important;
  padding:14px !important;
  background:#fbfdff !important;
  margin-top:12px !important;
}
.s2e-item-action-section-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  color:#0b3d91 !important;
  margin-bottom:10px !important;
}
.s2e-item-action-section-head .ar{
  font-size:20px !important;
  font-weight:900 !important;
}
.s2e-item-action-section-head .en{
  font-size:12px !important;
  font-weight:800 !important;
  color:#6b86a4 !important;
  font-family:Verdana,Arial,sans-serif !important;
}
.s2e-item-action-links{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}
.s2e-item-action-link{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-height:74px !important;
  padding:12px 14px !important;
  border-radius:18px !important;
  text-decoration:none !important;
  background:#fff !important;
  border:2px solid #d8e9ff !important;
  color:#0b3d91 !important;
  box-shadow:0 10px 20px rgba(10,77,160,.07) !important;
}
.s2e-item-action-link .icon{
  width:42px !important;
  height:42px !important;
  flex:0 0 42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:14px !important;
  background:#eaf4ff !important;
  font-size:22px !important;
}
.s2e-item-action-link .txt{
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
}
.s2e-item-action-link .txt .ar{
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:16px !important;
  font-weight:900 !important;
  line-height:1.15 !important;
}
.s2e-item-action-link .txt .en{
  font-family:Verdana,Arial,sans-serif !important;
  font-size:11px !important;
  font-weight:700 !important;
  color:#6b86a4 !important;
  line-height:1.15 !important;
}
.s2e-item-action-link:hover{
  border-color:#0f63d8 !important;
  transform:translateY(-1px) !important;
}
@media(max-width:768px){
  .s2e-item-action-modal-box{padding:14px !important;border-radius:22px !important;}
  .s2e-item-action-title .ar{font-size:23px !important;}
  .s2e-item-action-links{grid-template-columns:1fr !important;}
  .s2e-item-action-link{min-height:66px !important;padding:10px 12px !important;}
  .s2e-item-action-section-head{display:block !important;text-align:center !important;}
  .s2e-item-action-section-head .en{display:block !important;margin-top:4px !important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v53
   3 واضحين: خطة شهر / اختر عدد الأيام / حسب موعد الاختبار
========================================================= */
#s2e-plan-root .s2e-plan-tabs-v53{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:16px !important;
  margin-top:22px !important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab{
  min-height:122px !important;
  border-radius:26px !important;
  padding:20px 14px !important;
  font-size:26px !important;
  font-weight:900 !important;
  background:#fff !important;
  border:2px solid #d4e6ff !important;
  color:#073a82 !important;
  box-shadow:0 14px 28px rgba(11,74,162,.08) !important;
  white-space:normal !important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab::after{
  content:"";
  display:block;
  margin-top:8px;
  font-size:14px;
  font-weight:800;
  color:#6d82a3;
  line-height:1.4;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab[data-plan-key="m1"]::after{content:"خطة جاهزة ومنظمة";}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab[data-plan-key="flex-days"]::after{content:"حدد الأيام المتاحة لك";}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab[data-plan-key="flex-date"]::after{content:"تنتهي قبل الاختبار بيوم";}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab:hover{
  background:linear-gradient(180deg,#0b3b8d 0%,#0e57c8 100%) !important;
  color:#fff !important;
  border-color:#0b4db2 !important;
  transform:translateY(-2px) !important;
  box-shadow:0 18px 34px rgba(11,74,162,.20) !important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab:hover::after{
  color:rgba(255,255,255,.88) !important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active .s2e-plan-tab-main::before{
  content:"✓ ";
  font-weight:900;
}
@media (max-width:768px){
  #s2e-plan-root .s2e-plan-tabs-v53{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab{
    min-height:94px !important;
    font-size:24px !important;
    border-radius:22px !important;
  }
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v56
   Fix fake selection caused by hover/focus after changing plan
   - Blue only for real .active selected plan
   - Mobile hover/focus disabled for non-selected cards
========================================================= */
#s2e-plan-root .s2e-plan-tab:not(.active):hover,
#s2e-plan-root .s2e-plan-tab:not(.active):focus,
#s2e-plan-root .s2e-plan-tab:not(.active):focus-visible,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:not(.active):hover,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:not(.active):focus,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:not(.active):focus-visible{
  background:#ffffff !important;
  color:#073f91 !important;
  border-color:#d7e7fb !important;
  box-shadow:0 8px 16px rgba(11,61,145,.06) !important;
  transform:none !important;
  outline:none !important;
}

#s2e-plan-root .s2e-plan-tab:not(.active):hover .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab:not(.active):focus .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab:not(.active):focus-visible .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab:not(.active):hover .s2e-plan-tab-meta,
#s2e-plan-root .s2e-plan-tab:not(.active):focus .s2e-plan-tab-meta,
#s2e-plan-root .s2e-plan-tab:not(.active):focus-visible .s2e-plan-tab-meta{
  color:#073f91 !important;
}

#s2e-plan-root .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tab.active:hover,
#s2e-plan-root .s2e-plan-tab.active:focus,
#s2e-plan-root .s2e-plan-tab.active:focus-visible,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active:hover,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active:focus,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active:focus-visible{
  background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  color:#ffffff !important;
  border-color:#0d4fb9 !important;
  box-shadow:0 12px 24px rgba(13,56,145,.22) !important;
  transform:none !important;
  outline:none !important;
}

#s2e-plan-root .s2e-plan-tab.active .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab.active:hover .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab.active:focus .s2e-plan-tab-main{
  color:#ffffff !important;
}

@media (hover:hover) and (pointer:fine){
  #s2e-plan-root .s2e-plan-tab:not(.active):hover{
    background:#f8fbff !important;
    border-color:#bcd9ff !important;
    box-shadow:0 10px 18px rgba(11,61,145,.08) !important;
  }
}

@media (hover:none), (pointer:coarse){
  #s2e-plan-root .s2e-plan-tab:not(.active):hover,
  #s2e-plan-root .s2e-plan-tab:not(.active):focus,
  #s2e-plan-root .s2e-plan-tab:not(.active):focus-visible{
    background:#ffffff !important;
    color:#073f91 !important;
    border-color:#d7e7fb !important;
    box-shadow:0 8px 16px rgba(11,61,145,.06) !important;
    transform:none !important;
  }
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v57
   Fix hidden card text after touch/focus on iOS/mobile
   Keep hover light, but force readable text in all non-active states
========================================================= */
#s2e-plan-root .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tab *{
  visibility:visible !important;
  opacity:1 !important;
}

#s2e-plan-root .s2e-plan-tab:not(.active),
#s2e-plan-root .s2e-plan-tab:not(.active):hover,
#s2e-plan-root .s2e-plan-tab:not(.active):focus,
#s2e-plan-root .s2e-plan-tab:not(.active):focus-visible,
#s2e-plan-root .s2e-plan-tab:not(.active):active{
  background:#ffffff !important;
  color:#073f91 !important;
  -webkit-text-fill-color:#073f91 !important;
  border-color:#d7e7fb !important;
  outline:none !important;
}

#s2e-plan-root .s2e-plan-tab:not(.active) .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab:not(.active):hover .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab:not(.active):focus .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab:not(.active):focus-visible .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab:not(.active):active .s2e-plan-tab-main{
  color:#073f91 !important;
  -webkit-text-fill-color:#073f91 !important;
}

#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab:not(.active)::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab:not(.active):hover::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab:not(.active):focus::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab:not(.active):focus-visible::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab:not(.active):active::after{
  color:#6d82a3 !important;
  -webkit-text-fill-color:#6d82a3 !important;
}

#s2e-plan-root .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tab.active:hover,
#s2e-plan-root .s2e-plan-tab.active:focus,
#s2e-plan-root .s2e-plan-tab.active:focus-visible,
#s2e-plan-root .s2e-plan-tab.active:active{
  background:linear-gradient(180deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:#0d4fb9 !important;
}

#s2e-plan-root .s2e-plan-tab.active .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab.active:hover .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab.active:focus .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tab.active:active .s2e-plan-tab-main{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active:hover::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active:focus::after,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active:active::after{
  color:rgba(255,255,255,.90) !important;
  -webkit-text-fill-color:rgba(255,255,255,.90) !important;
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v69 PATCH STYLES
========================================================= */
.s2e-search-course-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:8px 0!important}.s2e-search-plan-btn,.s2e-course-content-btn{min-height:44px!important;border-radius:16px!important}.s2e-day-nav-actions{direction:rtl!important}.s2e-day-nav-actions #s2e-open-next-days{order:1!important}.s2e-day-nav-actions #s2e-open-prev-days{order:2!important}.s2e-progress-stack{padding:10px 12px!important;border-radius:16px!important}.s2e-progress-title{font-size:15px!important;margin-bottom:5px!important}.s2e-progress-line{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}.s2e-progress-bar{height:10px!important;margin-top:8px!important}.s2e-flex-days-scroll.s2e-flex-days-wheel{height:188px!important;max-height:188px!important;overflow-y:auto!important;display:block!important;padding:62px 0!important;scroll-snap-type:y mandatory!important;border:2px solid #cfe4ff!important;border-radius:24px!important;background:linear-gradient(180deg,#f8fbff,#fff)!important}.s2e-flex-day-option{scroll-snap-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:58px!important;margin:0 auto!important;border:0!important;border-bottom:1px solid #e7f1ff!important;border-radius:0!important;background:transparent!important;color:#7290b5!important;font-size:20px!important;font-weight:900!important}.s2e-flex-day-option.active{background:linear-gradient(90deg,#0b3d91,#1e90ff)!important;color:#fff!important;font-size:27px!important;border-radius:18px!important;box-shadow:0 10px 20px rgba(13,85,198,.18)!important}.s2e-flex-wheel-wrap{position:relative!important}.s2e-flex-wheel-marker{margin-top:8px!important;text-align:center!important;color:#0b3d91!important;font-weight:900!important}.s2e-flex-picked-days{text-align:center!important;margin-top:8px!important;color:#123b82!important}.s2e-open-loader{position:fixed!important;inset:0!important;z-index:2147483647!important;background:rgba(255,255,255,.75)!important;display:flex!important;align-items:center!important;justify-content:center!important}.s2e-open-loader-box{background:#fff!important;border:2px solid #cfe4ff!important;border-radius:24px!important;padding:22px 24px!important;box-shadow:0 20px 50px rgba(13,31,92,.18)!important;display:flex!important;align-items:center!important;gap:12px!important;color:#0b3d91!important;font-family:Tahoma,Arial,sans-serif!important;font-size:20px!important;font-weight:900!important}.s2e-spin{width:24px!important;height:24px!important;border:4px solid #d7eaff!important;border-top-color:#0d55c6!important;border-radius:50%!important;animation:s2eSpin .75s linear infinite!important}@keyframes s2eSpin{to{transform:rotate(360deg)}}.s2e-complete-current-item,.s2e-complete-day-popup,.s2e-complete-passage{width:100%!important;margin-top:12px!important;border:0!important;border-radius:18px!important;padding:14px 16px!important;background:linear-gradient(180deg,#159947,#0f7b35)!important;color:#fff!important;font-family:Tahoma,Arial,sans-serif!important;font-size:16px!important;font-weight:900!important;cursor:pointer!important}.s2e-complete-current-item.done,.s2e-complete-passage.done{background:linear-gradient(180deg,#6a7b92,#3d4d64)!important}.s2e-search-box,.s2e-course-content-box{width:min(920px,calc(100% - 24px))!important;max-height:calc(100vh - 28px)!important;overflow:auto!important;background:#fff!important;border-radius:26px!important;padding:18px!important;border:2px solid #cfe4ff!important;box-shadow:0 22px 60px rgba(0,0,0,.22)!important}.s2e-plan-search-input{width:100%!important;border:2px solid #cfe4ff!important;border-radius:18px!important;padding:14px 16px!important;font-family:Tahoma,Arial,sans-serif!important;font-weight:900!important;color:#123b82!important;margin:10px 0 12px!important}.s2e-search-result{background:#fff!important;border:1px solid #dbeeff!important;border-radius:18px!important;padding:12px!important;margin:8px 0!important;display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important}.s2e-search-result-title b{display:block!important;color:#123b82!important;font-size:16px!important}.s2e-search-result-title span{display:block!important;color:#7890ad!important;font-size:12px!important;margin-top:3px!important}.s2e-search-result-meta{grid-column:1/2!important;color:#6680a1!important;font-size:12px!important}.s2e-search-open,.s2e-search-subscribe{grid-row:1/3!important;grid-column:2/3!important;border:0!important;border-radius:14px!important;padding:10px 14px!important;background:#0d55c6!important;color:#fff!important;font-weight:900!important}.s2e-search-result.locked{background:#f8fbff!important}.s2e-search-subscribe{background:#159947!important}.s2e-course-content-section{border:1px solid #dbeeff!important;border-radius:20px!important;padding:12px!important;margin:12px 0!important;background:#fbfdff!important}.s2e-course-content-section h3{margin:0 0 10px!important;color:#0b3d91!important;border-inline-start:6px solid #1e90ff!important;padding-inline-start:10px!important}.s2e-reading-model-panel{border:2px solid #cfe4ff!important;background:#f8fbff!important;border-radius:22px!important;padding:14px!important;margin-bottom:14px!important}.s2e-reading-model-head{text-align:center!important;color:#0b3d91!important;font-weight:900!important;font-size:20px!important;margin-bottom:10px!important}.s2e-reading-model-search{width:100%!important;border:2px solid #dbeeff!important;border-radius:16px!important;padding:12px!important;font-weight:900!important;margin-bottom:10px!important}.s2e-reading-passage-card{background:#fff!important;border:1px solid #e2efff!important;border-radius:18px!important;padding:12px!important;margin:9px 0!important}.s2e-reading-passage-title b{display:block!important;color:#123b82!important;font-size:16px!important}.s2e-reading-passage-title span{display:block!important;color:#7890ad!important;font-size:12px!important;margin-top:3px!important}.s2e-reading-passage-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-top:10px!important}.s2e-passage-open,.s2e-passage-test{border:0!important;border-radius:14px!important;background:#0d55c6!important;color:#fff!important;font-weight:900!important;padding:10px!important}.s2e-passage-test{background:#7a45d8!important}@media(max-width:640px){.s2e-search-course-actions,.s2e-reading-passage-actions{grid-template-columns:1fr!important}.s2e-search-result{grid-template-columns:1fr!important}.s2e-search-open,.s2e-search-subscribe{grid-column:auto!important;grid-row:auto!important;width:100%!important}.s2e-open-loader-box{font-size:16px!important;padding:18px!important}.s2e-flex-days-scroll.s2e-flex-days-wheel{height:170px!important}.s2e-flex-day-option.active{font-size:24px!important}}


/* =========================================================
   STEP2ENGLISH SMART PLAN v70 SEARCH UI FIX
   Keyboard-safe leaks-style search overlay.
========================================================= */
.s2e-v70-overlay{position:fixed!important;top:var(--s2e-vvtop,0px)!important;left:0!important;right:0!important;height:var(--s2e-vvh,100dvh)!important;z-index:2147483646!important;background:rgba(244,247,249,.96)!important;display:flex!important;align-items:stretch!important;justify-content:center!important;padding:10px!important;box-sizing:border-box!important;direction:rtl!important;font-family:Cairo,Tahoma,Arial,sans-serif!important}
.s2e-v70-box{width:min(720px,100%)!important;height:100%!important;max-height:100%!important;background:#fff!important;border:1px solid rgba(13,74,164,.18)!important;border-radius:24px!important;box-shadow:0 22px 65px rgba(15,48,107,.24)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}
.s2e-v70-head{background:linear-gradient(135deg,#123b82,#07193d)!important;color:#fff!important;padding:14px 14px 12px!important;display:flex!important;align-items:center!important;gap:10px!important;flex-shrink:0!important}
.s2e-v70-head h2{margin:0!important;font-size:20px!important;font-weight:900!important;color:#fff!important;line-height:1.2!important}.s2e-v70-head p{margin:4px 0 0!important;font-size:12px!important;font-weight:800!important;color:rgba(255,255,255,.84)!important;line-height:1.4!important}
.s2e-v70-close{border:0!important;background:rgba(255,255,255,.16)!important;color:#fff!important;border-radius:14px!important;padding:10px 12px!important;font-weight:900!important;font-size:14px!important;flex:0 0 auto!important}
.s2e-v70-searchbar{position:sticky!important;top:0!important;z-index:2!important;padding:10px!important;background:#fff!important;border-bottom:1px solid #e3efff!important;display:flex!important;align-items:center!important;gap:8px!important;flex-shrink:0!important}
.s2e-v70-searchbar input{width:100%!important;border:2px solid #dbe8fb!important;border-radius:18px!important;padding:13px 15px!important;font-size:16px!important;font-weight:900!important;color:#0f306b!important;background:#f8fbff!important;outline:none!important;font-family:Cairo,Tahoma,Arial,sans-serif!important}
.s2e-v70-searchbar input:focus{border-color:#1e90ff!important;background:#fff!important;box-shadow:0 0 0 4px rgba(30,144,255,.12)!important}.s2e-v70-searchbar span{font-size:22px!important;flex:0 0 auto!important}
.s2e-v70-results{flex:1 1 auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:10px!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
.s2e-v70-empty{background:#f8fbff!important;border:1px dashed #cfe4ff!important;border-radius:18px!important;padding:18px!important;text-align:center!important;color:#64748b!important;font-weight:900!important;line-height:1.7!important}
.s2e-v70-result{background:#fff!important;border:1px solid #dbeeff!important;border-radius:18px!important;padding:12px!important;margin:9px 0!important;box-shadow:0 8px 18px rgba(15,48,107,.06)!important;display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important}
.s2e-v70-result-main b{display:block!important;color:#0f306b!important;font-size:15px!important;font-weight:900!important;line-height:1.45!important}.s2e-v70-result-main span{display:block!important;color:#64748b!important;font-size:12px!important;font-weight:800!important;margin-top:3px!important;line-height:1.45!important}
.s2e-v70-fallback-note{margin-top:6px!important;color:#0d55c6!important;background:#eef6ff!important;border-radius:10px!important;padding:5px 8px!important;font-size:11px!important;font-weight:900!important}.s2e-v70-fallback-note.bad{color:#b42318!important;background:#fff1f0!important}
.s2e-v70-open,.s2e-v70-subscribe,.s2e-v70-test,.s2e-v70-alt-open{border:0!important;border-radius:14px!important;background:linear-gradient(180deg,#0d4aa4,#1e90ff)!important;color:#fff!important;font-weight:900!important;padding:10px 13px!important;font-size:13px!important;font-family:Cairo,Tahoma,Arial,sans-serif!important}.s2e-v70-subscribe{background:linear-gradient(180deg,#159947,#0f7b35)!important}.s2e-v70-test{background:linear-gradient(180deg,#6d4fd6,#4a2db8)!important;grid-column:2!important}.s2e-v70-result.locked{background:#fbfdff!important}
.s2e-v70-acc{border:1px solid #dbeeff!important;border-radius:18px!important;margin:10px 0!important;background:#fbfdff!important;overflow:hidden!important}.s2e-v70-acc-title{width:100%!important;border:0!important;background:#eef6ff!important;color:#0f306b!important;padding:13px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;font-weight:900!important;font-size:16px!important;font-family:Cairo,Tahoma,Arial,sans-serif!important}.s2e-v70-acc-title em{font-style:normal!important;background:#fff!important;border:1px solid #cfe4ff!important;border-radius:999px!important;padding:4px 9px!important;font-size:12px!important;color:#0d55c6!important}.s2e-v70-acc-body{display:none!important;padding:8px 10px!important;background:#fff!important}.s2e-v70-acc.open .s2e-v70-acc-body{display:block!important}.s2e-v70-alt-list{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin-top:8px!important}.s2e-v70-alt-open{background:linear-gradient(180deg,#123b82,#07193d)!important;font-size:12px!important;padding:8px 10px!important}
@media(max-width:640px){.s2e-v70-overlay{padding:0!important;background:#fff!important}.s2e-v70-box{border-radius:0!important;border:0!important;box-shadow:none!important;width:100%!important}.s2e-v70-head{padding:calc(10px + env(safe-area-inset-top)) 12px 10px!important}.s2e-v70-head h2{font-size:18px!important}.s2e-v70-head p{font-size:11px!important}.s2e-v70-searchbar{padding:8px!important}.s2e-v70-searchbar input{font-size:15px!important;padding:12px!important}.s2e-v70-result{grid-template-columns:1fr!important;padding:11px!important;margin:8px 0!important}.s2e-v70-open,.s2e-v70-subscribe,.s2e-v70-test{width:100%!important;grid-column:1!important}}

/* =========================================================
   STEP2ENGLISH SMART PLAN v71 — Search + compact UI fixes
========================================================= */
html,body{max-width:100%!important;overflow-x:hidden!important}
#s2e-plan-root,#s2e-plan-root *{box-sizing:border-box!important;max-width:100%}
body.s2e-no-scroll{overflow:hidden!important;touch-action:none!important}

/* Remove repeated lines from today's card */
#s2e-plan-root .s2e-day-state{display:none!important}
#s2e-plan-root .s2e-complete-day-popup{display:none!important}
#s2e-plan-root .s2e-day-card{padding-top:12px!important;padding-bottom:12px!important}
#s2e-plan-root .s2e-day-weekday{font-size:24px!important;line-height:1.2!important;margin-bottom:2px!important}
#s2e-plan-root .s2e-day-date{font-size:15px!important;line-height:1.2!important;margin:2px 0!important}
#s2e-plan-root .s2e-day-label,#s2e-plan-root .s2e-day-badge-free,#s2e-plan-root .s2e-day-special{font-size:12px!important;padding:5px 10px!important;margin:3px auto!important}
#s2e-plan-root .s2e-day-progress-mini{font-size:12px!important;margin-top:4px!important}
#s2e-plan-root .s2e-open-day-btn{min-height:48px!important;padding:10px 14px!important;font-size:18px!important;border-radius:18px!important}

/* Compact navigation and tools */
#s2e-plan-root .s2e-day-nav-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;direction:rtl!important;margin:8px 0!important}
#s2e-plan-root .s2e-day-nav-actions #s2e-open-next-days{order:1!important}
#s2e-plan-root .s2e-day-nav-actions #s2e-open-prev-days{order:2!important}
#s2e-plan-root .s2e-search-course-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:8px 0!important}
#s2e-plan-root .s2e-search-plan-btn,#s2e-plan-root .s2e-course-content-btn,#s2e-plan-root .s2e-day-nav-actions button{min-height:40px!important;border-radius:16px!important;font-size:14px!important;padding:8px 10px!important}

/* Compact progress */
#s2e-plan-root .s2e-progress-stack{padding:9px 12px!important;border-radius:16px!important;margin-top:8px!important}
#s2e-plan-root .s2e-progress-stack::before,#s2e-plan-root .s2e-progress-title{display:none!important;content:none!important}
#s2e-plan-root .s2e-progress-line{gap:8px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important}
#s2e-plan-root .s2e-progress-pill{min-width:66px!important;min-height:38px!important;font-size:16px!important;border-radius:14px!important;padding:5px 10px!important}
#s2e-plan-root .s2e-progress-meta,#s2e-days-done-text{font-size:14px!important;line-height:1.35!important;margin:0!important}
#s2e-plan-root .s2e-progress-submeta,#s2e-plan-root .s2e-progress-note,#s2e-progress-note{display:none!important}
#s2e-plan-root .s2e-progress-bar{height:9px!important;margin-top:7px!important}

/* v71 overlay — keyboard safe */
.s2e-v71-overlay{position:fixed!important;top:var(--s2e-vvtop,0px)!important;left:0!important;right:0!important;width:100vw!important;max-width:100vw!important;height:var(--s2e-vvh,100dvh)!important;z-index:2147483646!important;background:#fff!important;display:flex!important;align-items:stretch!important;justify-content:center!important;padding:0!important;box-sizing:border-box!important;direction:rtl!important;font-family:Cairo,Tahoma,Arial,sans-serif!important;overflow:hidden!important}
.s2e-v71-box{width:min(760px,100vw)!important;max-width:100vw!important;height:100%!important;max-height:100%!important;background:#fff!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.s2e-v71-head{background:linear-gradient(135deg,#123b82,#061a3e)!important;color:#fff!important;padding:calc(9px + env(safe-area-inset-top)) 12px 9px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-shrink:0!important;direction:ltr!important;min-height:54px!important}
.s2e-v71-head-title{direction:rtl!important;text-align:right!important;color:#fff!important;font-size:20px!important;font-weight:900!important;line-height:1.2!important;margin-inline-start:auto!important}
.s2e-v71-close{border:2px solid rgba(255,255,255,.9)!important;background:#fff!important;color:#0b3d91!important;border-radius:14px!important;padding:8px 12px!important;font-weight:900!important;font-size:14px!important;line-height:1!important;font-family:Cairo,Tahoma,Arial,sans-serif!important;flex:0 0 auto!important;box-shadow:0 8px 18px rgba(0,0,0,.12)!important}
.s2e-v71-searchbar{position:sticky!important;top:0!important;z-index:2!important;padding:8px!important;background:#fff!important;border-bottom:1px solid #e3efff!important;display:flex!important;align-items:center!important;gap:8px!important;flex-shrink:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.s2e-v71-searchbar input{width:100%!important;min-width:0!important;border:2px solid #b8d9ff!important;border-radius:18px!important;padding:12px 14px!important;font-size:16px!important;font-weight:900!important;color:#0f306b!important;background:#f8fbff!important;outline:none!important;font-family:Cairo,Tahoma,Arial,sans-serif!important;box-sizing:border-box!important;transform:none!important}
.s2e-v71-searchbar input:focus{border-color:#1e90ff!important;background:#fff!important;box-shadow:0 0 0 4px rgba(30,144,255,.12)!important}.s2e-v71-searchbar span{font-size:22px!important;flex:0 0 auto!important}
.s2e-v71-results{flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;padding:9px!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important}
.s2e-v71-empty{background:#f8fbff!important;border:1px dashed #cfe4ff!important;border-radius:16px!important;padding:14px!important;text-align:center!important;color:#64748b!important;font-weight:900!important;line-height:1.7!important;font-size:14px!important}
.s2e-v71-result{background:#fff!important;border:1px solid #dbeeff!important;border-radius:16px!important;padding:10px!important;margin:8px 0!important;box-shadow:0 7px 16px rgba(15,48,107,.06)!important;display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
.s2e-v71-result-main{min-width:0!important;overflow:hidden!important}.s2e-v71-result-main b{display:block!important;color:#0f306b!important;font-size:14px!important;font-weight:900!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important}.s2e-v71-result-main span{display:block!important;color:#64748b!important;font-size:12px!important;font-weight:800!important;margin-top:3px!important;line-height:1.45!important}
.s2e-v71-open,.s2e-v71-subscribe{border:0!important;border-radius:13px!important;background:linear-gradient(180deg,#0d4aa4,#1e90ff)!important;color:#fff!important;font-weight:900!important;padding:9px 13px!important;font-size:13px!important;font-family:Cairo,Tahoma,Arial,sans-serif!important;min-width:82px!important}.s2e-v71-subscribe{background:linear-gradient(180deg,#159947,#0f7b35)!important}
.s2e-v71-acc{border:1px solid #dbeeff!important;border-radius:16px!important;margin:8px 0!important;background:#fbfdff!important;overflow:hidden!important;box-shadow:0 6px 14px rgba(15,48,107,.04)!important}.s2e-v71-acc-title{width:100%!important;border:0!important;background:#eef6ff!important;color:#0f306b!important;padding:11px 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;font-weight:900!important;font-size:15px!important;font-family:Cairo,Tahoma,Arial,sans-serif!important}.s2e-v71-acc-title em{font-style:normal!important;background:#fff!important;border:1px solid #cfe4ff!important;border-radius:999px!important;padding:3px 8px!important;font-size:12px!important;color:#0d55c6!important}.s2e-v71-acc-body{display:none!important;padding:6px 8px!important;background:#fff!important}.s2e-v71-acc.open .s2e-v71-acc-body{display:block!important}
.s2e-v71-info-overlay{position:fixed!important;inset:0!important;background:rgba(11,30,65,.45)!important;z-index:2147483647!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;direction:rtl!important;font-family:Cairo,Tahoma,Arial,sans-serif!important}.s2e-v71-info-box{width:min(430px,100%)!important;background:#fff!important;border-radius:24px!important;border:2px solid #dbeeff!important;box-shadow:0 22px 60px rgba(0,0,0,.25)!important;padding:18px!important;text-align:center!important}.s2e-v71-info-close{float:left!important;border:0!important;background:#eef6ff!important;color:#0b3d91!important;border-radius:12px!important;padding:7px 12px!important;font-weight:900!important}.s2e-v71-info-title{clear:both!important;color:#0b3d91!important;font-size:22px!important;font-weight:900!important;margin:8px 0!important}.s2e-v71-info-text{color:#536b91!important;font-size:15px!important;font-weight:800!important;line-height:1.7!important}.s2e-v71-info-primary{width:100%!important;margin-top:14px!important;border:0!important;border-radius:16px!important;background:linear-gradient(180deg,#0d4aa4,#1e90ff)!important;color:#fff!important;font-size:16px!important;font-weight:900!important;padding:12px!important}
@media(max-width:640px){.s2e-v71-head-title{font-size:18px!important}.s2e-v71-result{grid-template-columns:1fr!important}.s2e-v71-open,.s2e-v71-subscribe{width:100%!important}.s2e-v71-searchbar{padding:7px!important}.s2e-v71-results{padding:8px!important}.s2e-search-course-actions{grid-template-columns:1fr 1fr!important}.s2e-v71-acc-title{font-size:14px!important}}

/* =========================================================
   STEP2ENGLISH SMART PLAN v72 — final UX fixes
========================================================= */
html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
#s2e-plan-root,#s2e-plan-root *{max-width:100%!important;box-sizing:border-box!important}

/* Search/course overlay: stable on mobile, strong close button left */
.s2e-v71-overlay{left:0!important;right:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important;background:#fff!important}
.s2e-v71-box{width:100%!important;max-width:760px!important;margin:0 auto!important;overflow:hidden!important}
.s2e-v71-head{direction:ltr!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;min-height:60px!important;padding-inline:12px!important}
.s2e-v71-close{order:1!important;min-width:92px!important;min-height:40px!important;border:2px solid #d7e8ff!important;background:#fff!important;color:#0b3d91!important;border-radius:15px!important;font-size:16px!important;font-weight:900!important;padding:9px 12px!important;box-shadow:0 8px 18px rgba(0,0,0,.14)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important}
.s2e-v71-head-title{order:2!important;flex:1 1 auto!important;margin:0!important;text-align:right!important;direction:rtl!important;font-size:20px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.s2e-v71-searchbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important;padding:8px 10px!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
.s2e-v71-searchbar input{font-size:16px!important;min-width:0!important;width:100%!important;max-width:100%!important;transform:none!important;direction:rtl!important;text-align:right!important}
.s2e-v72-clear-search{width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:#eef6ff!important;color:#0b3d91!important;font-size:24px!important;font-weight:900!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
.s2e-v71-results{width:100%!important;max-width:100%!important;overflow-x:hidden!important;padding:8px 10px max(16px,env(safe-area-inset-bottom))!important}

/* Course content accordion: compact, all closed, no huge blank cards */
.s2e-v71-course-results{display:block!important;background:#fff!important}
.s2e-v71-course-results .s2e-v71-acc{height:auto!important;min-height:0!important;margin:7px 0!important;padding:0!important;border-radius:16px!important;background:#fff!important;overflow:hidden!important}
.s2e-v71-course-results .s2e-v71-acc-title{min-height:48px!important;height:auto!important;padding:10px 12px!important;background:#eef6ff!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.s2e-v71-course-results .s2e-v71-acc-body{display:none!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;background:#fff!important}
.s2e-v71-course-results .s2e-v71-acc.open .s2e-v71-acc-body{display:block!important;height:auto!important;padding:6px 7px!important;overflow:visible!important}
.s2e-v71-course-results .s2e-v71-acc:not(.open){max-height:54px!important}
.s2e-v71-course-results .s2e-v71-acc-title em{min-width:34px!important;text-align:center!important}
.s2e-v71-course-results .s2e-v71-result{margin:7px 0!important;padding:9px!important;border-radius:14px!important}

/* Search result cards should not overflow */
.s2e-v71-result{grid-template-columns:1fr!important;gap:7px!important;overflow:hidden!important}
.s2e-v71-result-main b,.s2e-v71-result-main span{overflow-wrap:anywhere!important;word-break:normal!important}
.s2e-v71-open,.s2e-v71-subscribe{width:100%!important;min-width:0!important;min-height:40px!important}

/* Friendly info/generic popups */
.s2e-v72-info-box,.s2e-v72-generic-box{width:min(440px,calc(100vw - 28px))!important;background:#fff!important;border:2px solid #dbeeff!important;border-radius:24px!important;box-shadow:0 22px 60px rgba(0,0,0,.24)!important;padding:16px!important;text-align:center!important;direction:rtl!important;font-family:Cairo,Tahoma,Arial,sans-serif!important;max-height:calc(100dvh - 42px)!important;overflow:auto!important}
.s2e-v72-info-close,.s2e-v72-generic-close{float:left!important;background:#eef6ff!important;color:#0b3d91!important;border:0!important;border-radius:13px!important;padding:8px 14px!important;font-weight:900!important;font-size:15px!important}
.s2e-v72-generic-title{clear:both!important;color:#0b3d91!important;font-size:24px!important;font-weight:900!important;line-height:1.35!important;margin:8px 0 2px!important}
.s2e-v72-generic-en{color:#5d769f!important;font-size:14px!important;font-weight:900!important;margin-bottom:10px!important}
.s2e-v72-action-section{background:#f8fbff!important;border:1px solid #dbeeff!important;border-radius:18px!important;padding:10px!important;margin:10px 0!important;text-align:right!important}
.s2e-v72-section-title{color:#0b3d91!important;font-weight:900!important;font-size:17px!important;margin-bottom:8px!important;border-inline-start:5px solid #1e90ff!important;padding-inline-start:8px!important}
.s2e-v72-action-link{width:100%!important;margin:6px 0!important;border:0!important;border-radius:15px!important;background:linear-gradient(180deg,#0d4aa4,#1e90ff)!important;color:#fff!important;font-weight:900!important;font-size:16px!important;padding:12px!important;font-family:Cairo,Tahoma,Arial,sans-serif!important}

/* Old days-list overlay close button: keep it visible but not flying too high */
#s2e-dayslist-popup .s2e-close-btn,#s2e-day-popup .s2e-close-btn,#s2e-item-actions-popup .s2e-close-btn{position:sticky!important;top:10px!important;left:10px!important;margin:10px auto 8px 10px!important;z-index:5!important;background:#fff!important;color:#0b3d91!important;border:2px solid #dbeeff!important;border-radius:14px!important;min-height:40px!important;font-size:15px!important;box-shadow:0 8px 18px rgba(0,0,0,.12)!important}

/* More compact top card and progress */
#s2e-plan-root .s2e-day-state,#s2e-plan-root .s2e-day-start-text,#s2e-plan-root .s2e-start-here,#s2e-plan-root [data-s2e-start-here]{display:none!important}
#s2e-plan-root .s2e-progress-stack::before,#s2e-plan-root .s2e-progress-title{display:none!important;content:none!important}
#s2e-plan-root .s2e-progress-stack{padding:8px 10px!important;margin-top:7px!important}
#s2e-plan-root .s2e-progress-line{margin:0!important;gap:7px!important}
#s2e-plan-root .s2e-progress-bar{height:8px!important;margin-top:6px!important}

@media(max-width:640px){
  .s2e-v71-head{min-height:56px!important;padding-top:calc(8px + env(safe-area-inset-top))!important}
  .s2e-v71-close{min-width:86px!important;font-size:15px!important;padding:8px 10px!important}
  .s2e-v71-head-title{font-size:18px!important}
  .s2e-v71-searchbar{padding:7px 8px!important}
  .s2e-v71-course-results .s2e-v71-acc-title{min-height:46px!important;padding:9px 11px!important}
  .s2e-v71-course-results .s2e-v71-acc:not(.open){max-height:50px!important}
}


/* STEP2ENGLISH SMART PLAN v81 - reliable per-link done toggle */
#s2e-item-actions-popup .s2e-item-action-links{
  display:block !important;
}
#s2e-item-actions-popup .s2e-action-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 82px !important;
  gap:10px !important;
  align-items:stretch !important;
  width:100% !important;
  margin:9px 0 !important;
  direction:rtl !important;
}
#s2e-item-actions-popup .s2e-action-row .s2e-item-action-link{
  margin:0 !important;
  min-width:0 !important;
  width:100% !important;
  min-height:64px !important;
  box-sizing:border-box !important;
}
#s2e-item-actions-popup .s2e-action-done{
  appearance:none !important;
  -webkit-appearance:none !important;
  min-width:76px !important;
  min-height:64px !important;
  padding:0 8px !important;
  border:2px solid #0f7ee8 !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,#ffffff 0%,#eef7ff 100%) !important;
  color:#07459c !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:17px !important;
  font-weight:900 !important;
  line-height:1 !important;
  box-shadow:0 8px 18px rgba(13,74,164,.16) !important;
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  touch-action:manipulation !important;
}
#s2e-item-actions-popup .s2e-action-done.done{
  background:linear-gradient(180deg,#22b65f 0%,#0b8e43 100%) !important;
  border-color:#087c39 !important;
  color:#fff !important;
}
#s2e-item-actions-popup .s2e-action-done:active{
  transform:scale(.98) !important;
}
#s2e-item-actions-popup .s2e-complete-current-item,
#s2e-item-actions-popup .s2e-complete-day-popup,
#s2e-plan-root .s2e-complete-current-item,
#s2e-plan-root .s2e-complete-day-popup{
  display:none !important;
}
@media (max-width:640px){
  #s2e-item-actions-popup .s2e-action-row{
    grid-template-columns:minmax(0,1fr) 70px !important;
    gap:8px !important;
  }
  #s2e-item-actions-popup .s2e-action-done{
    min-width:68px !important;
    min-height:58px !important;
    font-size:16px !important;
  }
  #s2e-item-actions-popup .s2e-action-row .s2e-item-action-link{
    min-height:58px !important;
  }
}

/* STEP2ENGLISH SMART PLAN v82 - compact course content + single native done button */
#s2e-item-actions-popup .s2e-v76-action-row,
#s2e-item-actions-popup .s2e-v76-action-done{display:none!important;}
#s2e-item-actions-popup .s2e-action-row{grid-template-columns:minmax(0,1fr) 78px!important;gap:9px!important;align-items:stretch!important;}
#s2e-item-actions-popup .s2e-action-row .s2e-item-action-link{min-height:60px!important;border-radius:15px!important;}
#s2e-item-actions-popup .s2e-action-done{min-width:72px!important;min-height:60px!important;border-radius:15px!important;font-size:16px!important;}
#s2e-item-actions-popup .s2e-action-done.done{background:linear-gradient(180deg,#22b65f 0%,#07823b 100%)!important;color:#fff!important;border-color:#07823b!important;}
#s2e-item-actions-popup .s2e-close-btn{position:sticky!important;top:8px!important;z-index:20!important;min-width:88px!important;min-height:44px!important;border-radius:14px!important;background:#fff!important;color:#07459c!important;border:1px solid #d7ebff!important;box-shadow:0 8px 18px rgba(15,48,107,.12)!important;}
.s2e-v71-course-results .s2e-v71-acc{margin:6px 0!important;border:1px solid #dbeeff!important;border-radius:14px!important;box-shadow:0 4px 10px rgba(15,48,107,.04)!important;}
.s2e-v71-course-results .s2e-v71-acc-title{position:sticky!important;top:0!important;z-index:4!important;min-height:42px!important;padding:8px 11px!important;background:#eaf4ff!important;}
.s2e-v71-course-results .s2e-v71-acc:not(.open){max-height:46px!important;}
.s2e-v71-course-results .s2e-v71-acc.open .s2e-v71-acc-body{padding:5px 6px!important;}
.s2e-v71-course-results .s2e-v71-result{padding:8px!important;margin:6px 0!important;border-radius:13px!important;}
.s2e-v71-course-results .s2e-v71-open{min-height:38px!important;border-radius:12px!important;padding:6px 10px!important;width:auto!important;min-width:96px!important;justify-self:end!important;}
@media(max-width:640px){
  #s2e-item-actions-popup .s2e-action-row{grid-template-columns:minmax(0,1fr) 66px!important;gap:7px!important;}
  #s2e-item-actions-popup .s2e-action-done{min-width:64px!important;min-height:56px!important;font-size:15px!important;}
  #s2e-item-actions-popup .s2e-action-row .s2e-item-action-link{min-height:56px!important;}
}

/* STEP2ENGLISH SMART PLAN v83 - course tools above today + clean content popup */
#s2e-plan-root .s2e-course-tools-above-day{
  order:0 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
  margin:8px 0 10px !important;
  padding:0 !important;
}
#s2e-plan-root .s2e-course-tools-above-day .s2e-top-secondary-btn{
  min-height:50px !important;
  border-radius:17px !important;
  border:2px solid #d7eaff !important;
  background:#fff !important;
  color:#073f91 !important;
  box-shadow:0 8px 18px rgba(15,70,150,.07) !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:16px !important;
  font-weight:900 !important;
}
#s2e-plan-root .s2e-course-tools-above-day .s2e-course-content-btn{
  border-color:#b9dcff !important;
  background:linear-gradient(180deg,#fafdff,#eef7ff) !important;
}
#s2e-plan-root .s2e-running-plan-name{
  margin:6px 0 8px !important;
}
#s2e-plan-root .s2e-days-wrap{
  gap:8px !important;
}

/* Search/course clear: when text is cleared, the course list returns cleanly */
.s2e-v71-course-results .s2e-v71-acc[style*="display: none"]{
  display:none !important;
}
.s2e-v71-course-results .s2e-v71-result{
  transition:none !important;
}

/* Generic popup opened from Search / Course Content should look like Today's content popup, not blue button blocks */
.s2e-v72-generic-overlay{
  z-index:2147483650 !important;
  background:rgba(11,26,55,.54) !important;
  backdrop-filter:blur(4px) !important;
  -webkit-backdrop-filter:blur(4px) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:14px !important;
}
.s2e-v72-generic-box{
  width:min(560px,calc(100vw - 30px)) !important;
  max-height:calc(100dvh - 34px) !important;
  overflow:auto !important;
  background:#fff !important;
  border:1px solid #dbe8f8 !important;
  border-radius:26px !important;
  box-shadow:0 22px 58px rgba(8,38,116,.24) !important;
  padding:16px !important;
  direction:rtl !important;
  font-family:Cairo,Tahoma,Arial,sans-serif !important;
  text-align:center !important;
}
.s2e-v72-generic-close{
  position:sticky !important;
  top:0 !important;
  z-index:20 !important;
  float:none !important;
  margin:0 auto 10px 0 !important;
  min-height:42px !important;
  min-width:88px !important;
  border-radius:14px !important;
  border:1px solid #d7ebff !important;
  background:#fff !important;
  color:#07459c !important;
  box-shadow:0 8px 18px rgba(15,48,107,.12) !important;
  font-weight:900 !important;
}
.s2e-v72-generic-title{
  clear:both !important;
  padding:18px 12px 9px !important;
  border-radius:22px 22px 6px 6px !important;
  background:linear-gradient(135deg,#082674,#1350be,#2b95ff) !important;
  color:#fff !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:27px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
  margin:0 !important;
}
.s2e-v72-generic-en{
  margin:0 0 12px !important;
  padding:0 12px 16px !important;
  border-radius:0 0 22px 22px !important;
  background:linear-gradient(135deg,#082674,#1350be,#2b95ff) !important;
  color:rgba(255,255,255,.92) !important;
  font-family:Verdana,Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:800 !important;
}
.s2e-v72-action-section{
  border:1px solid #dbe8f8 !important;
  border-radius:22px !important;
  padding:14px !important;
  background:#fbfdff !important;
  margin:12px 0 0 !important;
  text-align:right !important;
}
.s2e-v72-section-title{
  display:block !important;
  color:#0b3d91 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-weight:900 !important;
  font-size:20px !important;
  line-height:1.4 !important;
  margin:0 0 10px !important;
  border-inline-start:6px solid #1e90ff !important;
  padding:3px 10px !important;
}
.s2e-v72-action-link{
  width:100% !important;
  min-height:66px !important;
  margin:8px 0 !important;
  border-radius:18px !important;
  border:2px solid #d8e9ff !important;
  background:#fff !important;
  color:#0b3d91 !important;
  box-shadow:0 10px 20px rgba(10,77,160,.07) !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:18px !important;
  font-weight:900 !important;
  padding:12px 14px !important;
  text-align:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
}
.s2e-v72-action-link.done{
  border-color:#0b8e43 !important;
  background:linear-gradient(180deg,#f7fff9,#eafff1) !important;
  color:#087c39 !important;
}
.s2e-v72-action-link:active{
  transform:scale(.99) !important;
}

@media(max-width:640px){
  #s2e-plan-root .s2e-course-tools-above-day{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    margin:7px 0 9px !important;
  }
  #s2e-plan-root .s2e-course-tools-above-day .s2e-top-secondary-btn{
    min-height:46px !important;
    font-size:14px !important;
    border-radius:15px !important;
    padding:8px 6px !important;
  }
  .s2e-v72-generic-box{
    width:calc(100vw - 24px) !important;
    padding:13px !important;
    border-radius:22px !important;
  }
  .s2e-v72-generic-title{font-size:23px !important;}
  .s2e-v72-generic-en{font-size:14px !important;}
  .s2e-v72-action-section{padding:11px !important;border-radius:18px !important;}
  .s2e-v72-section-title{font-size:18px !important;}
  .s2e-v72-action-link{min-height:60px !important;font-size:16px !important;border-radius:15px !important;}
}


/* =========================================================
   STEP2ENGLISH SMART PLAN v86 UI CLEANUP
========================================================= */

/* لا نعرض اسم الخطة فوق كارت اليوم */
#s2e-plan-root .s2e-running-plan-name{
  display:none !important;
}

/* شاشة اختيار الخطة أخف: محتوى الدورة والبحث فوق، والكروت بدون عنوان كبير */
#s2e-plan-root .s2e-setup-only .s2e-plan-title,
#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  display:none !important;
}
#s2e-plan-root .s2e-setup-only{
  margin-top:10px !important;
  padding-top:18px !important;
}

/* أزرار محتوى الدورة / بحث في الدورة */
#s2e-plan-root .s2e-v86-tools{
  width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin:0 0 14px !important;
  padding:0 !important;
  box-sizing:border-box !important;
  direction:rtl !important;
}
#s2e-plan-root .s2e-v86-tool-btn{
  min-width:0 !important;
  width:100% !important;
  min-height:56px !important;
  border-radius:18px !important;
  border:2px solid #bddcff !important;
  background:linear-gradient(180deg,#ffffff 0%,#f4faff 100%) !important;
  color:#073f91 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
  box-shadow:0 8px 18px rgba(0,80,180,.08) !important;
}

/* إلغاء الشكل القديم لو ظهر */
#s2e-plan-root .s2e-search-course-actions:not(.s2e-v86-tools){
  display:none !important;
}

/* overlays */
.s2e-v86-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483600 !important;
  background:rgba(11,26,54,.44) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:18px !important;
  box-sizing:border-box !important;
  direction:rtl !important;
  font-family:Tahoma,Arial,sans-serif !important;
}
.s2e-v86-box,
.s2e-v86-action-box,
.s2e-v86-gate-box,
.s2e-v86-info-box{
  width:min(720px,100%) !important;
  max-height:min(88vh,780px) !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch !important;
  background:#fff !important;
  border:2px solid #d6eaff !important;
  border-radius:28px !important;
  box-shadow:0 22px 60px rgba(7,35,80,.24) !important;
  padding:22px !important;
  box-sizing:border-box !important;
  position:relative !important;
}
.s2e-v86-close{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:92px !important;
  min-height:44px !important;
  border:0 !important;
  border-radius:14px !important;
  background:#f2f8ff !important;
  color:#073f91 !important;
  font-size:16px !important;
  font-weight:900 !important;
  margin:0 0 12px auto !important;
  cursor:pointer !important;
}
.s2e-v86-head{
  text-align:center !important;
  margin:0 0 16px !important;
}
.s2e-v86-head h2{
  margin:0 !important;
  color:#073f91 !important;
  font-size:30px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
}
.s2e-v86-head p{
  margin:8px auto 0 !important;
  color:#6d829b !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.55 !important;
}

/* Search line */
.s2e-v86-searchline{
  display:grid !important;
  grid-template-columns:auto 1fr auto !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 0 16px !important;
  padding:8px 12px !important;
  border:2px solid #d1e7ff !important;
  border-radius:18px !important;
  background:#fbfdff !important;
}
.s2e-v86-searchline input{
  width:100% !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#0a377c !important;
  font-size:17px !important;
  font-weight:900 !important;
  text-align:right !important;
  font-family:Tahoma,Arial,sans-serif !important;
}
.s2e-v86-clear{
  width:38px !important;
  height:38px !important;
  border:0 !important;
  border-radius:12px !important;
  background:#edf6ff !important;
  color:#073f91 !important;
  font-size:24px !important;
  font-weight:900 !important;
}

/* Course cards */
.s2e-v86-course-section{
  margin:0 0 14px !important;
  padding:14px !important;
  border-radius:22px !important;
  border:2px solid #e0efff !important;
  background:#f8fcff !important;
}
.s2e-v86-course-section h3{
  margin:0 0 12px !important;
  color:#073f91 !important;
  font-size:22px !important;
  font-weight:900 !important;
  text-align:right !important;
}
.s2e-v86-course-card{
  width:100% !important;
  display:block !important;
  text-align:right !important;
  margin:8px 0 !important;
  padding:16px 18px !important;
  border-radius:18px !important;
  border:2px solid #d5eaff !important;
  background:#fff !important;
  color:#0a377c !important;
  box-shadow:0 8px 18px rgba(9,65,130,.05) !important;
  cursor:pointer !important;
  font-family:Tahoma,Arial,sans-serif !important;
}
.s2e-v86-course-card:hover,
.s2e-v86-course-card:focus{
  border-color:#1d8cff !important;
  box-shadow:0 10px 22px rgba(29,140,255,.12) !important;
  outline:0 !important;
}
.s2e-v86-card-title{
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.45 !important;
  color:#083a88 !important;
}
.s2e-v86-card-title span{
  font-family:Verdana,Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:800 !important;
}
.s2e-v86-card-meta{
  display:inline-flex !important;
  margin-top:8px !important;
  padding:5px 12px !important;
  border-radius:999px !important;
  background:#eef7ff !important;
  color:#637d9b !important;
  font-size:13px !important;
  font-weight:900 !important;
}
.s2e-v86-empty{
  padding:22px !important;
  text-align:center !important;
  color:#6d829b !important;
  font-weight:900 !important;
}

/* Plan gate */
.s2e-v86-gate-title{
  color:#073f91 !important;
  text-align:center !important;
  font-size:28px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
}
.s2e-v86-gate-sub{
  margin:8px auto 12px !important;
  color:#6d829b !important;
  text-align:center !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.5 !important;
}
.s2e-v86-picked-item{
  margin:12px 0 16px !important;
  padding:13px 14px !important;
  border-radius:18px !important;
  background:#f7fbff !important;
  border:2px solid #d8eaff !important;
  color:#083a88 !important;
  font-weight:900 !important;
  text-align:center !important;
}
.s2e-v86-gate-main{
  width:100% !important;
  min-height:58px !important;
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#0d1f5c 0%,#00349c 55%,#1e90ff 100%) !important;
  color:#fff !important;
  font-size:22px !important;
  font-weight:900 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  box-shadow:0 14px 28px rgba(0,55,140,.18) !important;
}
.s2e-v86-gate-details{
  margin:12px 0 !important;
  border:2px solid #d8eaff !important;
  border-radius:18px !important;
  background:#fff !important;
  overflow:hidden !important;
}
.s2e-v86-gate-details summary{
  padding:16px !important;
  color:#073f91 !important;
  font-size:19px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  list-style:none !important;
}
.s2e-v86-days-scroll{
  max-height:220px !important;
  overflow:auto !important;
  padding:0 14px 14px !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:8px !important;
}
.s2e-v86-day-choice{
  min-height:44px !important;
  border-radius:14px !important;
  border:2px solid #d6eaff !important;
  background:#f8fcff !important;
  color:#073f91 !important;
  font-weight:900 !important;
  font-size:15px !important;
}
.s2e-v86-date-row{
  padding:0 14px 14px !important;
  display:grid !important;
  grid-template-columns:1fr auto !important;
  gap:10px !important;
}
.s2e-v86-date-input{
  min-height:48px !important;
  border:2px solid #d6eaff !important;
  border-radius:14px !important;
  padding:0 12px !important;
  font-weight:900 !important;
  color:#073f91 !important;
}
.s2e-v86-date-start{
  min-height:48px !important;
  border:0 !important;
  border-radius:14px !important;
  background:#159947 !important;
  color:#fff !important;
  font-weight:900 !important;
  padding:0 14px !important;
}
.s2e-v86-gate-error{
  color:#c73f4f !important;
  font-weight:900 !important;
  padding:0 14px 14px !important;
}

/* Action popup matching current-day content style */
.s2e-v86-action-title{
  text-align:center !important;
  margin:0 0 16px !important;
}
.s2e-v86-action-title strong{
  display:block !important;
  color:#073f91 !important;
  font-size:28px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
}
.s2e-v86-action-title span{
  display:block !important;
  color:#6d829b !important;
  font-family:Verdana,Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:800 !important;
  margin-top:5px !important;
}
.s2e-v86-action-section{
  margin:14px 0 !important;
  padding:16px !important;
  border-radius:22px !important;
  border:2px solid #e0efff !important;
  background:#fafdff !important;
}
.s2e-v86-action-section h3{
  margin:0 0 12px !important;
  color:#073f91 !important;
  font-size:21px !important;
  font-weight:900 !important;
  text-align:center !important;
}
.s2e-v86-action-link{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  min-height:64px !important;
  margin:10px 0 !important;
  padding:12px 16px !important;
  border-radius:18px !important;
  border:2px solid #d6eaff !important;
  background:#fff !important;
  color:#073f91 !important;
  text-decoration:none !important;
  box-shadow:0 8px 18px rgba(9,65,130,.05) !important;
}
.s2e-v86-action-text{
  font-size:19px !important;
  font-weight:900 !important;
}
.s2e-v86-action-icon{
  min-width:52px !important;
  min-height:52px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:16px !important;
  background:#eef7ff !important;
  font-size:25px !important;
}
.s2e-v86-loader{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483640 !important;
  background:rgba(255,255,255,.88) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.s2e-v86-loader-box{
  background:#fff !important;
  border:2px solid #d6eaff !important;
  border-radius:22px !important;
  padding:22px 28px !important;
  color:#073f91 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:20px !important;
  font-weight:900 !important;
  box-shadow:0 18px 40px rgba(7,35,80,.16) !important;
}

@media (max-width:768px){
  #s2e-plan-root .s2e-v86-tools{
    gap:8px !important;
    margin-bottom:10px !important;
  }
  #s2e-plan-root .s2e-v86-tool-btn{
    min-height:54px !important;
    font-size:16px !important;
    border-radius:17px !important;
  }
  .s2e-v86-overlay{
    padding:10px !important;
    align-items:flex-start !important;
    padding-top:calc(env(safe-area-inset-top, 0px) + 10px) !important;
  }
  .s2e-v86-box,
  .s2e-v86-action-box,
  .s2e-v86-gate-box,
  .s2e-v86-info-box{
    max-height:calc(100vh - 22px) !important;
    border-radius:24px !important;
    padding:16px !important;
  }
  .s2e-v86-head h2,
  .s2e-v86-action-title strong,
  .s2e-v86-gate-title{
    font-size:24px !important;
  }
  .s2e-v86-card-title{
    font-size:16px !important;
  }
  .s2e-v86-days-scroll{
    grid-template-columns:repeat(2,1fr) !important;
    max-height:230px !important;
  }
  .s2e-v86-date-row{
    grid-template-columns:1fr !important;
  }
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v87 OVERRIDES
   Neutral plan gate + closed course categories + current-day popup style
========================================================= */

/* محتوى الدورة: الأقسام مقفولة، وتفتح قسم واحد فقط */
.s2e-v86-course-section{
  display:block !important;
  margin:0 0 12px !important;
  padding:0 !important;
  border:2px solid #d9ebff !important;
  border-radius:20px !important;
  background:#fff !important;
  overflow:hidden !important;
}
.s2e-v86-course-section summary{
  list-style:none !important;
  cursor:pointer !important;
  min-height:62px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:14px 16px !important;
  color:#073f91 !important;
  font-size:21px !important;
  font-weight:900 !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
  text-align:right !important;
}
.s2e-v86-course-section summary::-webkit-details-marker{display:none !important;}
.s2e-v86-course-section summary::after{
  content:"+" !important;
  width:34px !important;
  height:34px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  background:#eef7ff !important;
  border:2px solid #cfe6ff !important;
  color:#073f91 !important;
  font-size:22px !important;
  font-weight:900 !important;
  flex:0 0 34px !important;
}
.s2e-v86-course-section[open] summary::after{content:"−" !important;}
.s2e-v86-course-section summary strong{
  margin-inline-start:auto !important;
  min-width:42px !important;
  height:34px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  background:#eef7ff !important;
  border:2px solid #cfe6ff !important;
  color:#073f91 !important;
  font-size:15px !important;
}
.s2e-v86-section-body{
  padding:12px !important;
  background:#f8fcff !important;
  border-top:2px solid #e5f2ff !important;
}
.s2e-v86-course-section:not([open]) .s2e-v86-section-body{
  display:none !important;
}

/* كروت المحتوى: الكارت كله قابل للضغط، بدون زر فتح */
.s2e-v86-course-card{
  display:block !important;
  width:100% !important;
  text-align:right !important;
  direction:rtl !important;
  padding:16px 18px !important;
  border-radius:18px !important;
  background:#fff !important;
}
.s2e-v86-card-meta{
  display:inline-flex !important;
}

/* بوب اختيار الخطة: لا يوجد اختيار افتراضي ولا زر شهر أزرق */
.s2e-v86-gate-options{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
}
.s2e-v86-gate-main{display:none !important;}
.s2e-v86-gate-option,
.s2e-v86-gate-details{
  width:100% !important;
  border:2px solid #d8eaff !important;
  border-radius:18px !important;
  background:#fff !important;
  overflow:hidden !important;
  box-shadow:0 8px 18px rgba(9,65,130,.05) !important;
}
.s2e-v86-gate-option{
  min-height:62px !important;
  color:#073f91 !important;
  font-size:20px !important;
  font-weight:900 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  cursor:pointer !important;
  text-align:center !important;
  padding:12px !important;
  background:#fff !important;
  border-color:#d8eaff !important;
  box-shadow:0 8px 18px rgba(9,65,130,.05) !important;
}
.s2e-v86-gate-option span{
  display:block !important;
  margin-top:4px !important;
  color:#6d829b !important;
  font-size:13px !important;
  font-weight:800 !important;
}
.s2e-v86-gate-details summary{
  list-style:none !important;
  padding:17px 16px !important;
  color:#073f91 !important;
  font-size:20px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  text-align:center !important;
  background:#fff !important;
}
.s2e-v86-gate-details summary::-webkit-details-marker{display:none !important;}
.s2e-v86-gate-details[open] summary{
  border-bottom:2px solid #e2f0ff !important;
  background:#f8fcff !important;
}
.s2e-v86-days-scroll{
  background:#f8fcff !important;
  padding:14px !important;
}
.s2e-v86-date-row,
.s2e-v86-gate-error{
  background:#f8fcff !important;
}

/* بوب الدرس من محتوى الدورة/البحث يستخدم نفس روح محتوى اليوم */
#s2e-item-actions-popup.s2e-v86-action-overlay{
  z-index:2147483655 !important;
}
#s2e-item-actions-popup.s2e-v86-action-overlay .s2e-item-action-modal-box{
  width:min(760px, calc(100% - 22px)) !important;
}

@media (max-width:768px){
  .s2e-v86-course-section summary{
    font-size:19px !important;
    min-height:58px !important;
    padding:12px 14px !important;
  }
  .s2e-v86-gate-option,
  .s2e-v86-gate-details summary{
    font-size:18px !important;
  }
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v89
   Clear plan choice + better days scroll + sticky lesson popup + search results only + unified Done buttons
========================================================= */
#s2e-plan-root .s2e-setup-only{
  position:relative !important;
}
#s2e-plan-root .s2e-plan-title{
  font-size:clamp(24px,5.8vw,36px) !important;
  line-height:1.25 !important;
  margin-bottom:6px !important;
}
#s2e-plan-root .s2e-plan-sub{
  font-size:clamp(14px,3.7vw,18px) !important;
  color:#6b7f9e !important;
  margin-bottom:12px !important;
}
#s2e-plan-root .s2e-plan-tabs-v53,
#s2e-plan-root .s2e-plan-tabs-setup{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
  margin-top:14px !important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
  min-height:82px !important;
  border-radius:24px !important;
  padding:16px 14px !important;
  font-size:clamp(20px,5vw,27px) !important;
  background:#fff !important;
  border:2px solid #d6eaff !important;
  color:#073f91 !important;
  box-shadow:0 8px 18px rgba(11,74,162,.06) !important;
  position:relative !important;
  transform:none !important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab::after,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab::after{
  display:none !important;
  content:"" !important;
}
#s2e-plan-root .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active{
  background:linear-gradient(135deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 14px 28px rgba(11,74,162,.24) !important;
}
#s2e-plan-root .s2e-plan-tab.active::before{
  content:"✓" !important;
  position:absolute !important;
  inset-inline-start:18px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:34px !important;
  height:34px !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(255,255,255,.36) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-weight:900 !important;
}
#s2e-plan-root .s2e-selected-plan-card{
  background:linear-gradient(135deg,#0d1f5c 0%,#002e94 55%,#1e90ff 100%) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:24px !important;
  padding:20px 18px !important;
  margin:12px 0 14px !important;
  box-shadow:0 14px 30px rgba(13,64,160,.22) !important;
}
#s2e-plan-root .s2e-selected-plan-kicker{
  color:rgba(255,255,255,.85) !important;
  font-size:15px !important;
  margin-bottom:6px !important;
}
#s2e-plan-root .s2e-selected-plan-title{
  color:#fff !important;
  font-size:clamp(26px,7vw,38px) !important;
}
#s2e-plan-root .s2e-selected-plan-sub{
  display:none !important;
}
#s2e-plan-root .s2e-back-plan-btn{
  position:absolute !important;
  top:12px !important;
  inset-inline-start:12px !important;
  width:46px !important;
  height:46px !important;
  border-radius:16px !important;
  border:2px solid #d7ebff !important;
  background:#fff !important;
  color:#073f91 !important;
  font-size:38px !important;
  line-height:1 !important;
  font-weight:900 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:0 8px 18px rgba(15,48,107,.10) !important;
  cursor:pointer !important;
  z-index:10 !important;
}
#s2e-plan-root .s2e-change-plan-link{
  display:none !important;
}
#s2e-plan-root .s2e-flex-wrap-v51,
#s2e-plan-root .s2e-flex-wrap{
  margin-top:12px !important;
  padding:12px !important;
  background:#fff !important;
  border:2px solid #d9ebff !important;
  border-radius:24px !important;
  box-shadow:0 10px 20px rgba(11,74,162,.05) !important;
}
#s2e-plan-root .s2e-flex-choice-title{
  font-size:clamp(20px,5vw,27px) !important;
  color:#073f91 !important;
  font-weight:900 !important;
  text-align:center !important;
  margin-bottom:4px !important;
}
#s2e-plan-root .s2e-flex-choice-hint{
  display:block !important;
  font-size:14px !important;
  color:#788da8 !important;
  text-align:center !important;
  margin:0 0 8px !important;
  font-weight:800 !important;
}
#s2e-plan-root .s2e-flex-picker-wrap{
  position:relative !important;
  border:2px solid #d7eaff !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
  padding:28px 10px !important;
  overflow:hidden !important;
}
#s2e-plan-root .s2e-flex-picker-wrap::before,
#s2e-plan-root .s2e-flex-picker-wrap::after{
  content:"" !important;
  position:absolute !important;
  left:10px !important;
  right:10px !important;
  height:1px !important;
  background:#e1eefb !important;
  z-index:2 !important;
}
#s2e-plan-root .s2e-flex-picker-wrap::before{top:86px !important;}
#s2e-plan-root .s2e-flex-picker-wrap::after{bottom:86px !important;}
#s2e-plan-root .s2e-flex-picker-arrow{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:4px !important;
  text-align:center !important;
  color:#1e90ff !important;
  font-size:28px !important;
  line-height:1 !important;
  font-weight:900 !important;
  pointer-events:none !important;
  z-index:4 !important;
}
#s2e-plan-root .s2e-flex-picker-arrow.bottom{
  top:auto !important;
  bottom:4px !important;
}
#s2e-plan-root .s2e-flex-days-scroll-v51,
#s2e-plan-root .s2e-flex-days-scroll{
  height:210px !important;
  max-height:210px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scroll-snap-type:y mandatory !important;
  -webkit-overflow-scrolling:touch !important;
  display:block !important;
  padding:58px 0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#s2e-plan-root .s2e-flex-days-scroll::-webkit-scrollbar{
  width:7px !important;
}
#s2e-plan-root .s2e-flex-days-scroll::-webkit-scrollbar-thumb{
  background:#9fd0ff !important;
  border-radius:999px !important;
}
#s2e-plan-root .s2e-flex-day-option{
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:16px !important;
  background:transparent !important;
  color:#7d8ea6 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:22px !important;
  font-weight:800 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  scroll-snap-align:center !important;
  box-shadow:none !important;
}
#s2e-plan-root .s2e-flex-day-option.active,
#s2e-plan-root .s2e-flex-day-option:hover,
#s2e-plan-root .s2e-flex-day-option:focus{
  background:linear-gradient(180deg,#eef7ff 0%,#dcecff 100%) !important;
  color:#0756c7 !important;
  border:2px solid #b7daff !important;
  font-size:28px !important;
  font-weight:900 !important;
  outline:none !important;
}
#s2e-plan-root .s2e-plan-start-btn-strong{
  margin-top:12px !important;
  min-height:62px !important;
}

/* course/search overlay: sticky top, results-only during search */
.s2e-v86-box{
  display:flex !important;
  flex-direction:column !important;
  max-height:calc(100dvh - 28px) !important;
  overflow:hidden !important;
}
.s2e-v86-close{
  flex:0 0 auto !important;
  z-index:25 !important;
}
.s2e-v86-head,
.s2e-v86-searchline{
  flex:0 0 auto !important;
}
.s2e-v86-course-body,
.s2e-v86-results{
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
  padding-bottom:18px !important;
}
.s2e-v89-search-only-head{
  margin:6px 0 12px !important;
  padding:10px 12px !important;
  border-radius:14px !important;
  background:#eef7ff !important;
  color:#073f91 !important;
  font-weight:900 !important;
  text-align:center !important;
}

/* lesson/action popup sticky header */
#s2e-item-actions-popup .s2e-item-action-modal-box{
  max-height:calc(100dvh - 28px) !important;
  overflow-y:auto !important;
  position:relative !important;
  padding-top:12px !important;
}
#s2e-item-actions-popup .s2e-close-btn{
  position:sticky !important;
  top:0 !important;
  z-index:35 !important;
}
#s2e-item-actions-popup .s2e-item-action-title{
  position:sticky !important;
  top:56px !important;
  z-index:30 !important;
  margin-top:8px !important;
  box-shadow:0 10px 20px rgba(13,56,145,.12) !important;
}

/* unified Done buttons */
#s2e-plan-root .s2e-done-btn,
#s2e-plan-root .s2e-item-done,
#s2e-item-actions-popup .s2e-action-done{
  border-radius:18px !important;
  border:2px solid #1e90ff !important;
  background:#fff !important;
  color:#07459c !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-weight:900 !important;
  box-shadow:0 8px 18px rgba(15,70,150,.08) !important;
}
#s2e-plan-root .s2e-done-btn.done,
#s2e-plan-root .s2e-item-done.done,
#s2e-item-actions-popup .s2e-action-done.done{
  background:linear-gradient(180deg,#22b65f 0%,#07823b 100%) !important;
  color:#fff !important;
  border-color:#07823b !important;
  box-shadow:0 12px 24px rgba(7,130,59,.22) !important;
}
#s2e-item-actions-popup .s2e-action-done.done::before,
#s2e-plan-root .s2e-item-done.done::before,
#s2e-plan-root .s2e-done-btn.done::before{
  content:"" !important;
}
@media(max-width:640px){
  #s2e-plan-root .s2e-plan-tabs-v53,
  #s2e-plan-root .s2e-plan-tabs-setup{gap:10px !important;}
  #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{min-height:76px !important;}
  #s2e-plan-root .s2e-flex-days-scroll-v51,
  #s2e-plan-root .s2e-flex-days-scroll{height:190px !important;max-height:190px !important;}
  #s2e-item-actions-popup .s2e-item-action-title{top:52px !important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v90
   - Remove check icon from Done buttons
   - Move close button left in search/course popups
   - Keep course content header clean
========================================================= */
#s2e-item-actions-popup .s2e-action-done.done::before,
#s2e-plan-root .s2e-item-done.done::before,
#s2e-plan-root .s2e-done-btn.done::before{
  content:"" !important;
}
#s2e-v86-course-overlay .s2e-v86-close,
#s2e-v86-search-overlay .s2e-v86-close{
  align-self:flex-end !important;
  margin:0 0 12px 0 !important;
}
#s2e-v86-course-overlay .s2e-v86-head p{
  display:none !important;
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v92
   - Emergency rollback to stable opening behavior
   - Keep close buttons clear: left + blue + white text
   - Keep the old arrow Back button style
========================================================= */
.s2e-v86-close,
#s2e-v86-course-overlay .s2e-v86-close,
#s2e-v86-search-overlay .s2e-v86-close,
#s2e-v86-plan-gate .s2e-v86-close,
#s2e-v86-info .s2e-v86-close,
#s2e-item-actions-popup .s2e-close-btn,
#s2e-dayslist-popup .s2e-close-btn,
#s2e-day-popup .s2e-close-btn,
.s2e-close-btn,
.s2e-close-mini{
  background:linear-gradient(180deg,#0d55c6 0%,#083f9a 100%) !important;
  color:#ffffff !important;
  border:0 !important;
  border-radius:15px !important;
  box-shadow:0 10px 22px rgba(13,85,198,.22) !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-weight:900 !important;
}
.s2e-v86-close,
#s2e-v86-course-overlay .s2e-v86-close,
#s2e-v86-search-overlay .s2e-v86-close,
#s2e-v86-plan-gate .s2e-v86-close,
#s2e-v86-info .s2e-v86-close,
#s2e-item-actions-popup .s2e-close-btn,
#s2e-dayslist-popup .s2e-close-btn,
#s2e-day-popup .s2e-close-btn{
  margin:0 auto 12px 0 !important;
}
#s2e-plan-root .s2e-back-plan-btn{
  position:absolute !important;
  top:12px !important;
  inset-inline-start:12px !important;
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  padding:0 !important;
  border-radius:16px !important;
  border:2px solid #d7ebff !important;
  background:#ffffff !important;
  color:#073f91 !important;
  font-size:38px !important;
  line-height:1 !important;
  font-weight:900 !important;
  box-shadow:0 8px 18px rgba(15,48,107,.12) !important;
}

/* ===== v93: stable duration slider + clear date selector + physical left back arrow ===== */
#s2e-plan-root .s2e-back-plan-btn{
  left:12px !important;
  right:auto !important;
  inset-inline-start:auto !important;
  inset-inline-end:auto !important;
  direction:ltr !important;
}

#s2e-plan-root .s2e-flex-choice-hint,
#s2e-plan-root .s2e-flex-picker-arrow,
#s2e-plan-root .s2e-flex-picker-arrow.bottom{
  display:none !important;
}

#s2e-plan-root .s2e-flex-days-panel-v93,
#s2e-plan-root .s2e-flex-date-panel-v93{
  padding:14px 12px !important;
  border-radius:24px !important;
  border:2px solid #d7eaff !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
}

#s2e-plan-root .s2e-flex-range-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  width:100% !important;
  max-width:420px !important;
  margin:10px auto 0 !important;
  padding:18px 16px !important;
  border:2px solid #cfe4ff !important;
  border-radius:24px !important;
  background:#ffffff !important;
  box-shadow:0 10px 24px rgba(13,85,198,.10) !important;
}

#s2e-plan-root .s2e-flex-range-value{
  width:100% !important;
  min-height:74px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%) !important;
  color:#fff !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:clamp(34px,9vw,48px) !important;
  font-weight:900 !important;
  box-shadow:0 14px 28px rgba(13,85,198,.22) !important;
}

#s2e-plan-root .s2e-flex-range-value span{
  font-size:clamp(18px,5vw,25px) !important;
  font-weight:900 !important;
  opacity:.95 !important;
}

#s2e-plan-root .s2e-flex-days-range{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:100% !important;
  height:18px !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#0d55c6,#1e90ff) !important;
  outline:none !important;
  cursor:pointer !important;
}

#s2e-plan-root .s2e-flex-days-range::-webkit-slider-thumb{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:34px !important;
  height:34px !important;
  border-radius:50% !important;
  border:4px solid #ffffff !important;
  background:#073f91 !important;
  box-shadow:0 8px 18px rgba(0,0,0,.22) !important;
}

#s2e-plan-root .s2e-flex-days-range::-moz-range-thumb{
  width:34px !important;
  height:34px !important;
  border-radius:50% !important;
  border:4px solid #ffffff !important;
  background:#073f91 !important;
  box-shadow:0 8px 18px rgba(0,0,0,.22) !important;
}

#s2e-plan-root .s2e-date-parts{
  display:grid !important;
  grid-template-columns:1fr 1fr 1fr !important;
  gap:10px !important;
  width:100% !important;
  max-width:520px !important;
  margin:12px auto 0 !important;
  padding:12px !important;
  border:2px solid #cfe4ff !important;
  border-radius:24px !important;
  background:#ffffff !important;
  box-shadow:0 10px 24px rgba(13,85,198,.10) !important;
}

#s2e-plan-root .s2e-date-parts.ready{
  border-color:#2fb968 !important;
  box-shadow:0 10px 24px rgba(47,185,104,.14) !important;
}

#s2e-plan-root .s2e-date-part{
  min-width:0 !important;
  width:100% !important;
  min-height:56px !important;
  border:2px solid #d7eaff !important;
  border-radius:18px !important;
  background:#f8fbff !important;
  color:#073f91 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:clamp(15px,4vw,18px) !important;
  font-weight:900 !important;
  text-align:center !important;
  text-align-last:center !important;
  padding:0 8px !important;
  cursor:pointer !important;
}

#s2e-plan-root .s2e-date-part:focus{
  outline:none !important;
  border-color:#1e90ff !important;
  box-shadow:0 0 0 4px rgba(30,144,255,.16) !important;
}

@media(max-width:520px){
  #s2e-plan-root .s2e-date-parts{gap:7px !important;padding:10px !important;}
  #s2e-plan-root .s2e-date-part{min-height:52px !important;padding:0 4px !important;}
  #s2e-plan-root .s2e-flex-range-card{padding:14px 12px !important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v94
   - Day count uses the same clear scroll list style
   - Back arrow fixed to physical left
   - Desktop setup layout balanced
========================================================= */
#s2e-plan-root .s2e-back-plan-btn{
  left:14px !important;
  right:auto !important;
  inset-inline-start:auto !important;
  inset-inline-end:auto !important;
  direction:ltr !important;
  z-index:20 !important;
}

#s2e-plan-root .s2e-setup-box-final,
#s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
  position:relative !important;
  width:100% !important;
  max-width:1180px !important;
  margin:0 auto !important;
  padding:20px 18px 22px !important;
}

#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-v53{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
  width:min(100%,880px) !important;
  margin:14px auto 12px !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
  grid-column:auto !important;
  width:100% !important;
  min-height:86px !important;
}

#s2e-plan-root .s2e-selected-plan-card{
  width:min(100%,620px) !important;
  max-width:620px !important;
  margin:16px auto 16px !important;
  padding:22px 18px !important;
  text-align:center !important;
}

#s2e-plan-root .s2e-selected-plan-title{
  font-size:clamp(30px,4.3vw,48px) !important;
  line-height:1.25 !important;
}

#s2e-plan-root .s2e-flex-wrap,
#s2e-plan-root .s2e-flex-wrap-v51{
  width:min(100%,760px) !important;
  max-width:760px !important;
  margin:16px auto 0 !important;
}

#s2e-plan-root .s2e-flex-days-panel-v94,
#s2e-plan-root .s2e-flex-date-panel-v93{
  width:100% !important;
  padding:14px 12px !important;
  border-radius:24px !important;
  border:2px solid #d7eaff !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
}

#s2e-plan-root .s2e-flex-days-scroll-card{
  width:min(100%,560px) !important;
  max-width:560px !important;
  height:292px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  direction:rtl !important;
  margin:12px auto 0 !important;
  padding:12px !important;
  border:2px solid #cfe4ff !important;
  border-radius:24px !important;
  background:#ffffff !important;
  box-shadow:0 10px 24px rgba(13,85,198,.10) !important;
  animation:s2eDaysBoxPulse 1.8s ease-in-out infinite !important;
  scrollbar-width:thin !important;
  scrollbar-color:#0d55c6 #edf6ff !important;
}

#s2e-plan-root .s2e-flex-days-scroll-card::-webkit-scrollbar{width:10px !important;}
#s2e-plan-root .s2e-flex-days-scroll-card::-webkit-scrollbar-track{background:#edf6ff !important;border-radius:999px !important;}
#s2e-plan-root .s2e-flex-days-scroll-card::-webkit-scrollbar-thumb{background:#0d55c6 !important;border-radius:999px !important;border:2px solid #edf6ff !important;}

#s2e-plan-root .s2e-flex-days-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
  direction:rtl !important;
}

#s2e-plan-root .s2e-flex-day-btn{
  min-height:54px !important;
  border:2px solid #cfe4ff !important;
  border-radius:17px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f6fbff 100%) !important;
  color:#073f91 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:19px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 4px 10px rgba(13,85,198,.06) !important;
}

#s2e-plan-root .s2e-flex-day-btn span{
  font-size:.96em !important;
  font-weight:900 !important;
}

#s2e-plan-root .s2e-flex-day-btn.active{
  background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%) !important;
  color:#ffffff !important;
  border-color:transparent !important;
  box-shadow:0 12px 22px rgba(13,85,198,.24) !important;
  animation:s2eDayBtnPulse 1.35s ease-in-out infinite !important;
}

#s2e-plan-root .s2e-flex-range-card,
#s2e-plan-root .s2e-flex-days-range{
  display:none !important;
}

@keyframes s2eDayBtnPulse{
  0%,100%{transform:scale(1);box-shadow:0 12px 22px rgba(13,85,198,.22)}
  50%{transform:scale(1.025);box-shadow:0 16px 28px rgba(13,85,198,.34)}
}
@keyframes s2eDaysBoxPulse{
  0%,100%{box-shadow:0 10px 24px rgba(13,85,198,.10),0 0 0 0 rgba(30,144,255,.12)}
  50%{box-shadow:0 12px 28px rgba(13,85,198,.14),0 0 0 5px rgba(30,144,255,.08)}
}

@media(max-width:900px){
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{
    grid-template-columns:1fr !important;
    width:100% !important;
    gap:10px !important;
  }
  #s2e-plan-root .s2e-selected-plan-card{
    width:calc(100% - 8px) !important;
    margin-top:12px !important;
  }
}

@media(max-width:520px){
  #s2e-plan-root .s2e-setup-box-final,
  #s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
    padding:14px 10px 16px !important;
  }
  #s2e-plan-root .s2e-back-plan-btn{
    left:8px !important;
    top:8px !important;
    width:42px !important;
    height:42px !important;
  }
  #s2e-plan-root .s2e-flex-days-scroll-card{
    height:278px !important;
    padding:10px !important;
  }
  #s2e-plan-root .s2e-flex-days-grid{
    gap:8px !important;
  }
  #s2e-plan-root .s2e-flex-day-btn{
    min-height:52px !important;
    font-size:18px !important;
  }
}

/* v95: softer Done buttons inside lesson/action popup */
#s2e-item-actions-popup .s2e-action-done,
#s2e-v69-generic-popup .s2e-action-done{
  background:linear-gradient(180deg,#ffffff 0%,#eef7ff 100%) !important;
  color:#0f63b3 !important;
  border:2px solid #bad8ff !important;
  box-shadow:0 8px 18px rgba(13,74,164,.12) !important;
}
#s2e-item-actions-popup .s2e-action-done.done,
#s2e-v69-generic-popup .s2e-action-done.done{
  background:linear-gradient(180deg,#eaf9ef 0%,#dff4e6 100%) !important;
  color:#198754 !important;
  border-color:#bfe7c8 !important;
  box-shadow:0 8px 18px rgba(25,135,84,.13) !important;
}

/* STEP2ENGLISH SMART TIMETABLE v96 - collected fixes */
#s2e-plan-root,
#s2e-plan-root *{box-sizing:border-box!important;}

/* Desktop setup layout: balanced, no broken spacing */
#s2e-plan-root .s2e-setup-box-final{
  width:min(980px,calc(100% - 24px))!important;
  margin:14px auto!important;
  padding:24px 26px 28px!important;
  overflow:visible!important;
}
#s2e-plan-root .s2e-plan-tabs-v53,
#s2e-plan-root .s2e-plan-tabs-setup{
  width:min(780px,100%)!important;
  margin:0 auto 18px!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  direction:rtl!important;
  align-items:stretch!important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
  width:100%!important;
  min-height:70px!important;
  padding:12px 14px!important;
  border-radius:20px!important;
  grid-column:auto!important;
}

/* Compact selected plan card instead of huge blue block */
#s2e-plan-root .s2e-selected-plan-card{
  width:min(620px,100%)!important;
  margin:0 auto 16px!important;
  padding:10px 16px!important;
  min-height:54px!important;
  border-radius:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:linear-gradient(90deg,#073176 0%,#0d55c6 68%,#1e90ff 100%)!important;
  color:#fff!important;
  box-shadow:0 12px 24px rgba(13,71,161,.18)!important;
  border:0!important;
}
#s2e-plan-root .s2e-selected-plan-kicker{
  display:none!important;
}
#s2e-plan-root .s2e-selected-plan-title{
  margin:0!important;
  color:#fff!important;
  font-size:22px!important;
  line-height:1.2!important;
  font-weight:900!important;
  white-space:normal!important;
}
#s2e-plan-root .s2e-selected-plan-title::before{
  content:"الخطة المختارة: ";
  font-size:16px!important;
  opacity:.88!important;
}

/* Arrow back: old arrow style, left side */
#s2e-plan-root .s2e-back-plan-btn{
  position:absolute!important;
  left:16px!important;
  right:auto!important;
  top:18px!important;
  width:48px!important;
  height:48px!important;
  border-radius:16px!important;
  border:2px solid #cfe4ff!important;
  background:#fff!important;
  color:#063f96!important;
  font-size:46px!important;
  line-height:.75!important;
  font-weight:900!important;
  box-shadow:0 10px 20px rgba(13,80,180,.14)!important;
  z-index:8!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Better date picker inside setup */
#s2e-plan-root .s2e-flex-date-panel-v93,
#s2e-plan-root .s2e-flex-days-panel-v94{
  width:min(620px,100%)!important;
  margin:0 auto 14px!important;
  padding:14px!important;
  border-radius:24px!important;
  border:2px solid #cfe4ff!important;
  background:#fff!important;
}
#s2e-plan-root .s2e-date-parts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  direction:rtl!important;
}
#s2e-plan-root .s2e-date-part,
.s2e-v96-date-parts .s2e-date-part{
  min-height:54px!important;
  border:2px solid #cfe4ff!important;
  border-radius:16px!important;
  background:#f8fbff!important;
  color:#073f91!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:18px!important;
  font-weight:900!important;
  text-align:center!important;
  text-align-last:center!important;
  outline:0!important;
}
#s2e-plan-root .s2e-date-parts.ready .s2e-date-part,
.s2e-v96-date-parts.ready .s2e-date-part{
  border-color:#1e90ff!important;
  background:#eef7ff!important;
}

/* Course gate: clear arrangement */
.s2e-v86-gate-box.s2e-v96-gate-box{
  width:min(760px,calc(100vw - 28px))!important;
  padding:20px 18px 22px!important;
}
.s2e-v96-gate-box .s2e-v86-close,
.s2e-v86-close,
#s2e-item-actions-popup .s2e-close-btn{
  margin:0 0 12px auto!important;
  background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%)!important;
  color:#fff!important;
  border:0!important;
  border-radius:16px!important;
  min-width:108px!important;
  min-height:50px!important;
  box-shadow:0 12px 24px rgba(13,80,180,.20)!important;
}
.s2e-v96-gate-box .s2e-v86-gate-title{
  font-size:30px!important;
  margin-top:4px!important;
}
.s2e-v96-gate-box .s2e-v86-picked-item{
  font-size:18px!important;
  border-radius:18px!important;
  background:#f8fbff!important;
}
.s2e-v96-gate-options{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
}
.s2e-v96-gate-details,
.s2e-v86-gate-month{
  width:100%!important;
  border:2px solid #d8eaff!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 8px 18px rgba(13,56,145,.05)!important;
  overflow:hidden!important;
}
.s2e-v96-gate-details summary,
.s2e-v86-gate-month{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:70px!important;
  padding:16px!important;
  color:#073f91!important;
  font-size:23px!important;
  font-weight:900!important;
  list-style:none!important;
  cursor:pointer!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v96-gate-details[open] summary{
  background:#eef7ff!important;
  border-bottom:2px solid #d8eaff!important;
}
.s2e-v96-days-scroll{
  max-height:285px!important;
  overflow:auto!important;
  padding:12px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  direction:rtl!important;
}
.s2e-v86-day-choice{
  min-height:58px!important;
  border:2px solid #cfe4ff!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff 0%,#f7fbff 100%)!important;
  color:#073f91!important;
  font-size:20px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v86-day-choice.active,
.s2e-v86-day-choice:focus,
.s2e-v86-day-choice:hover{
  background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%)!important;
  color:#fff!important;
  border-color:#0d55c6!important;
}
.s2e-v96-date-title{
  margin:14px auto 10px!important;
  text-align:center!important;
  color:#073f91!important;
  font-weight:900!important;
  font-size:22px!important;
}
.s2e-v96-date-parts{
  padding:0 12px 12px!important;
}
.s2e-v96-date-start{
  display:block!important;
  width:calc(100% - 24px)!important;
  min-height:58px!important;
  margin:0 12px 14px!important;
  border:0!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#169e4e 0%,#0d7e39 100%)!important;
  color:#fff!important;
  font-size:20px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v96-date-start:disabled{
  opacity:.45!important;
  filter:grayscale(.2)!important;
}

/* Done buttons: match outside style, softer */
#s2e-item-actions-popup .s2e-action-done,
#s2e-item-actions-popup .s2e-action-done:not(.done){
  background:linear-gradient(180deg,#ffffff 0%,#eef7ff 100%)!important;
  color:#07459c!important;
  border:2px solid #9fd0ff!important;
  box-shadow:0 8px 18px rgba(13,80,180,.10)!important;
}
#s2e-item-actions-popup .s2e-action-done.done{
  background:linear-gradient(180deg,#e8fff1 0%,#dff7eb 100%)!important;
  border-color:#bdebd2!important;
  color:#169251!important;
}

@media(max-width:700px){
  #s2e-plan-root .s2e-setup-box-final{
    width:calc(100% - 18px)!important;
    padding:18px 14px 22px!important;
    border-radius:24px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-v53,
  #s2e-plan-root .s2e-plan-tabs-setup{
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:10px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:64px!important;
  }
  #s2e-plan-root .s2e-selected-plan-card{
    min-height:48px!important;
    padding:9px 12px!important;
    border-radius:16px!important;
  }
  #s2e-plan-root .s2e-selected-plan-title{
    font-size:18px!important;
  }
  #s2e-plan-root .s2e-selected-plan-title::before{
    font-size:13px!important;
  }
  #s2e-plan-root .s2e-back-plan-btn{
    left:10px!important;
    top:12px!important;
    width:44px!important;
    height:44px!important;
    font-size:42px!important;
  }
  #s2e-plan-root .s2e-date-parts,
  .s2e-v96-date-parts{
    grid-template-columns:1fr 1fr 1fr!important;
    gap:6px!important;
  }
  #s2e-plan-root .s2e-date-part,
  .s2e-v96-date-parts .s2e-date-part{
    font-size:15px!important;
    min-height:50px!important;
    padding:0 4px!important;
  }
  .s2e-v96-gate-box .s2e-v86-gate-title{
    font-size:27px!important;
  }
  .s2e-v96-days-scroll{
    max-height:280px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .s2e-v86-day-choice{
    font-size:19px!important;
  }
}

/* STEP2ENGLISH v97 — safe inner-content popup fix */
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-item-action-modal-box{
  position:relative;
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-list{
  display:grid;
  gap:12px;
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:stretch;
  width:100%;
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-link{
  width:100%;
  min-height:62px;
  border:1px solid rgba(15,87,198,.20);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff,#f5f9ff);
  color:#0b3d91;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  text-align:right;
  font-family:Tahoma, Arial, sans-serif;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(13,79,168,.08);
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-link .icon{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eaf3ff;
  color:#0f57c6;
  font-size:20px;
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-link .txt{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.35;
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-link .txt .ar{
  font-size:15px;
  color:#0b3d91;
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-link .txt .en{
  font-size:12px;
  color:#64748b;
  direction:ltr;
  text-align:left;
  font-family:Verdana, Arial, sans-serif;
  font-weight:700;
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-link:hover{
  border-color:#0f57c6;
  box-shadow:0 10px 26px rgba(15,87,198,.14);
}
#s2e-item-actions-popup.s2e-v97-action-overlay .s2e-action-done{
  min-width:70px;
  border-radius:16px;
}
@media (max-width:640px){
  #s2e-item-actions-popup.s2e-v97-action-overlay .s2e-v97-action-row{
    grid-template-columns:1fr;
  }
  #s2e-item-actions-popup.s2e-v97-action-overlay .s2e-action-done{
    width:100%;
    min-height:42px;
  }
}

/* =========================================================
   STEP2ENGLISH - v99 setup clarity: title, compact cards
========================================================= */
#s2e-plan-root .s2e-setup-box-final{padding:18px 16px 18px!important;max-width:760px!important;margin:14px auto 0!important;}
#s2e-plan-root .s2e-setup-only .s2e-plan-title{font-size:30px!important;line-height:1.2!important;margin:0 0 6px!important;color:#003b8f!important;text-align:center!important;}
#s2e-plan-root .s2e-setup-only .s2e-plan-sub{width:min(620px,100%)!important;margin:0 auto 12px!important;padding:10px 14px!important;border-radius:16px!important;background:#f6fbff!important;border:1.5px solid #dbeafe!important;color:#5f718a!important;font-size:16px!important;font-weight:800!important;line-height:1.55!important;text-align:center!important;}
#s2e-plan-root .s2e-plan-tabs-setup,#s2e-plan-root .s2e-plan-tabs-setup.has-selected{width:min(660px,100%)!important;grid-template-columns:1fr!important;gap:8px!important;margin:0 auto 12px!important;}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{min-height:56px!important;padding:10px 14px!important;border-radius:18px!important;}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{font-size:20px!important;line-height:1.2!important;}
#s2e-plan-root .s2e-selected-plan-card{width:min(620px,100%)!important;margin:0 auto 10px!important;padding:10px 14px!important;border-radius:18px!important;background:linear-gradient(180deg,#f7fbff 0%,#fff 100%)!important;border:2px solid #bcd9ff!important;box-shadow:0 8px 16px rgba(13,56,145,.06)!important;}
#s2e-plan-root .s2e-selected-plan-kicker{display:none!important;}
#s2e-plan-root .s2e-selected-plan-title{font-size:22px!important;line-height:1.25!important;color:#003b8f!important;}
#s2e-plan-root .s2e-flex-wrap{width:min(620px,100%)!important;margin:8px auto 12px!important;padding:12px!important;border-radius:18px!important;}
#s2e-plan-root .s2e-flex-choice-title{font-size:22px!important;margin-bottom:8px!important;color:#003b8f!important;}
#s2e-plan-root .s2e-start-bottom-wrap{margin-top:10px!important;}
#s2e-plan-root .s2e-plan-start-btn-strong{width:min(430px,100%)!important;min-height:58px!important;border-radius:18px!important;font-size:24px!important;}
@media (min-width:769px){#s2e-plan-root .s2e-plan-tabs-setup,#s2e-plan-root .s2e-plan-tabs-setup.has-selected{grid-template-columns:repeat(3,minmax(0,1fr))!important;}#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{min-height:64px!important;}}
@media (max-width:768px){#s2e-plan-root .s2e-setup-box-final{padding:14px 10px 14px!important;margin-top:10px!important;}#s2e-plan-root .s2e-setup-only .s2e-plan-title{font-size:26px!important;margin-bottom:5px!important;}#s2e-plan-root .s2e-setup-only .s2e-plan-sub{padding:8px 10px!important;margin-bottom:10px!important;font-size:14.5px!important;line-height:1.45!important;}#s2e-plan-root .s2e-plan-tabs-setup,#s2e-plan-root .s2e-plan-tabs-setup.has-selected{grid-template-columns:1fr!important;gap:7px!important;}#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{min-height:52px!important;padding:8px 12px!important;border-radius:16px!important;}#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{font-size:18px!important;}#s2e-plan-root .s2e-selected-plan-card{padding:9px 12px!important;margin-bottom:8px!important;}#s2e-plan-root .s2e-selected-plan-title{font-size:19px!important;}#s2e-plan-root .s2e-flex-wrap{padding:10px!important;margin:7px auto 10px!important;}#s2e-plan-root .s2e-plan-start-btn-strong{min-height:54px!important;font-size:22px!important;}}


/* =========================================================
   STEP2ENGLISH - v100 real fixes
   - clear setup title/subtitle
   - left arrow only
   - cleaner gate/date/days
========================================================= */

/* main setup: title must always appear */
#s2e-plan-root .s2e-setup-box-final{
  position:relative!important;
  max-width:820px!important;
  width:min(94vw,820px)!important;
  padding:18px 16px 20px!important;
  border-radius:26px!important;
  overflow:visible!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1.2!important;
  margin:0 auto 7px!important;
  color:#003b8f!important;
  text-align:center!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:min(620px,100%)!important;
  margin:0 auto 12px!important;
  padding:10px 14px!important;
  border-radius:16px!important;
  background:#f6fbff!important;
  border:2px solid #dbeafe!important;
  color:#526987!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.55!important;
  text-align:center!important;
}
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-setup.has-selected{
  display:grid!important;
  width:min(680px,100%)!important;
  margin:0 auto 12px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
  min-height:58px!important;
  border-radius:18px!important;
  padding:10px 12px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  font-size:19px!important;
  line-height:1.25!important;
}

/* selected plan as a small strip, not huge */
#s2e-plan-root .s2e-selected-plan-card{
  width:min(620px,100%)!important;
  margin:0 auto 10px!important;
  min-height:46px!important;
  padding:8px 12px!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%)!important;
  border:2px solid #bcd9ff!important;
  box-shadow:0 8px 16px rgba(13,56,145,.06)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#s2e-plan-root .s2e-selected-plan-kicker{display:none!important;}
#s2e-plan-root .s2e-selected-plan-title{
  font-size:20px!important;
  line-height:1.25!important;
  color:#003b8f!important;
  margin:0!important;
}
#s2e-plan-root .s2e-selected-plan-title::before{
  content:"الخطة المختارة: "!important;
  font-size:15px!important;
  color:#607ca7!important;
}

/* arrow: left, simple, not a bulky button */
#s2e-plan-root .s2e-back-plan-btn{
  position:absolute!important;
  left:14px!important;
  right:auto!important;
  top:14px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  border:2px solid #d7e7fb!important;
  border-radius:50%!important;
  background:#ffffff!important;
  color:#003b8f!important;
  font-size:42px!important;
  line-height:.72!important;
  font-weight:900!important;
  box-shadow:0 8px 16px rgba(13,80,180,.12)!important;
  z-index:20!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* flex choice outside */
#s2e-plan-root .s2e-flex-wrap{
  width:min(620px,100%)!important;
  margin:8px auto 10px!important;
  padding:12px!important;
  border-radius:18px!important;
  border:2px solid #d8eaff!important;
  background:#fff!important;
}
#s2e-plan-root .s2e-flex-choice-title{
  font-size:21px!important;
  color:#003b8f!important;
  font-weight:900!important;
  text-align:center!important;
  margin:0 0 9px!important;
}
#s2e-plan-root .s2e-flex-days-scroll-card{
  max-height:230px!important;
  overflow:auto!important;
  border-radius:18px!important;
  border:2px solid #dbeafe!important;
  background:#f8fbff!important;
  padding:10px!important;
}
#s2e-plan-root .s2e-flex-days-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
#s2e-plan-root .s2e-flex-day-option,
#s2e-plan-root .s2e-flex-day-btn{
  min-height:50px!important;
  border-radius:16px!important;
  border:2px solid #cfe4ff!important;
  background:#fff!important;
  color:#073f91!important;
  font-size:18px!important;
  font-weight:900!important;
}
#s2e-plan-root .s2e-flex-day-option.active,
#s2e-plan-root .s2e-flex-day-btn.active{
  background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%)!important;
  color:#fff!important;
}

/* plan gate popup: clean inside */
.s2e-v100-gate-box,
.s2e-v86-gate-box{
  width:min(760px,calc(100vw - 24px))!important;
  max-height:calc(100vh - 26px)!important;
  overflow:auto!important;
  padding:18px 16px 20px!important;
  border-radius:26px!important;
}
.s2e-v100-gate-box .s2e-v86-close,
.s2e-v86-close,
#s2e-item-actions-popup .s2e-close-btn{
  float:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 0 12px auto!important;
  min-width:108px!important;
  min-height:48px!important;
  border:0!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%)!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(13,80,180,.18)!important;
}
.s2e-v100-gate-box .s2e-v86-gate-title,
.s2e-v86-gate-title{
  font-size:28px!important;
  line-height:1.25!important;
  color:#003b8f!important;
  text-align:center!important;
  margin:4px auto 6px!important;
}
.s2e-v100-gate-box .s2e-v86-gate-sub,
.s2e-v86-gate-sub{
  font-size:15px!important;
  color:#61748f!important;
  text-align:center!important;
  line-height:1.55!important;
  margin:0 auto 10px!important;
  background:#f6fbff!important;
  border:1.5px solid #dbeafe!important;
  border-radius:16px!important;
  padding:8px 10px!important;
}
.s2e-v100-gate-box .s2e-v86-picked-item,
.s2e-v86-picked-item{
  margin:0 auto 12px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:2px solid #dbeafe!important;
  color:#073f91!important;
  font-size:17px!important;
  font-weight:900!important;
  text-align:center!important;
}
.s2e-v100-gate-options,
.s2e-v86-gate-options{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.s2e-v100-gate-details,
.s2e-v86-gate-details,
.s2e-v86-gate-month{
  width:100%!important;
  border:2px solid #d8eaff!important;
  border-radius:20px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 8px 18px rgba(13,56,145,.05)!important;
}
.s2e-v100-gate-details summary,
.s2e-v86-gate-details summary,
.s2e-v86-gate-month{
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:12px!important;
  color:#073f91!important;
  font-size:21px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#fff!important;
}
.s2e-v100-gate-details[open] summary,
.s2e-v86-gate-details[open] summary{
  background:#eef7ff!important;
  border-bottom:2px solid #d8eaff!important;
}
.s2e-v100-days-scroll,
.s2e-v86-days-scroll{
  max-height:270px!important;
  overflow:auto!important;
  padding:12px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  direction:rtl!important;
}
.s2e-v86-day-choice{
  min-height:54px!important;
  border:2px solid #cfe4ff!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fff 0%,#f7fbff 100%)!important;
  color:#073f91!important;
  font-size:19px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v86-day-choice.active,
.s2e-v86-day-choice:hover,
.s2e-v86-day-choice:focus{
  background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%)!important;
  color:#fff!important;
  border-color:#0d55c6!important;
}
.s2e-v100-date-title{
  margin:12px auto 8px!important;
  text-align:center!important;
  color:#073f91!important;
  font-weight:900!important;
  font-size:21px!important;
}
.s2e-v100-date-parts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  padding:0 12px 12px!important;
  direction:rtl!important;
}
.s2e-v100-date-part{
  min-height:52px!important;
  border:2px solid #cfe4ff!important;
  border-radius:16px!important;
  background:#f8fbff!important;
  color:#073f91!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:17px!important;
  font-weight:900!important;
  text-align:center!important;
  text-align-last:center!important;
  outline:0!important;
}
.s2e-v100-date-start{
  display:block!important;
  width:calc(100% - 24px)!important;
  min-height:56px!important;
  margin:0 12px 14px!important;
  border:0!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#169e4e 0%,#0d7e39 100%)!important;
  color:#fff!important;
  font-size:19px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v100-date-start:disabled{
  opacity:.45!important;
  filter:grayscale(.15)!important;
}

/* action popup done still works and softer */
#s2e-item-actions-popup .s2e-action-done,
#s2e-item-actions-popup .s2e-action-done:not(.done){
  background:linear-gradient(180deg,#ffffff 0%,#eef7ff 100%)!important;
  color:#07459c!important;
  border:2px solid #9fd0ff!important;
}
#s2e-item-actions-popup .s2e-action-done.done{
  background:linear-gradient(180deg,#e8fff1 0%,#dff7eb 100%)!important;
  border-color:#bdebd2!important;
  color:#169251!important;
}

@media(max-width:700px){
  #s2e-plan-root .s2e-setup-box-final{
    width:calc(100% - 16px)!important;
    padding:14px 10px 16px!important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-title{
    font-size:25px!important;
    padding-left:48px!important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-sub{
    font-size:14px!important;
    padding:8px 10px!important;
    margin-bottom:10px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-setup.has-selected{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    min-height:52px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
    font-size:18px!important;
  }
  #s2e-plan-root .s2e-back-plan-btn{
    left:10px!important;
    top:10px!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    font-size:38px!important;
  }
  .s2e-v100-gate-box,
  .s2e-v86-gate-box{
    width:calc(100vw - 18px)!important;
    padding:14px 10px 16px!important;
    border-radius:24px!important;
  }
  .s2e-v100-gate-box .s2e-v86-gate-title,
  .s2e-v86-gate-title{
    font-size:24px!important;
  }
  .s2e-v100-gate-details summary,
  .s2e-v86-gate-details summary,
  .s2e-v86-gate-month{
    min-height:54px!important;
    font-size:19px!important;
  }
  .s2e-v100-date-parts{
    gap:6px!important;
    padding:0 8px 10px!important;
  }
  .s2e-v100-date-part{
    min-height:48px!important;
    font-size:15px!important;
    padding:0 4px!important;
  }
  .s2e-v100-days-scroll,
  .s2e-v86-days-scroll{
    max-height:240px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    padding:10px!important;
  }
  .s2e-v86-day-choice{
    min-height:50px!important;
    font-size:18px!important;
  }
}

/* =========================================================
   v107 user-base fixes: keep working link completion, fix UI only
========================================================= */
#s2e-plan-root .s2e-setup-box-final{
  position:relative!important;
  width:min(760px,calc(100% - 22px))!important;
  margin:14px auto!important;
  padding:18px 18px 20px!important;
  text-align:center!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important;
  border:2px solid #d3eaff!important;
  border-radius:24px!important;
  box-shadow:0 14px 30px rgba(13,63,145,.08)!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  padding:0!important;
  margin:0 auto 8px!important;
  color:#003b8f!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:32px!important;
  font-weight:900!important;
  line-height:1.2!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  display:block!important;
  width:min(620px,100%)!important;
  margin:0 auto 12px!important;
  padding:9px 12px!important;
  text-align:center!important;
  color:#627489!important;
  background:#f7fbff!important;
  border:1px solid #d8ebff!important;
  border-radius:16px!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.55!important;
}
#s2e-plan-root .s2e-plan-tabs-setup{
  width:min(650px,100%)!important;
  margin:0 auto 12px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
  min-height:58px!important;
  padding:10px 14px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:2px solid #d3eaff!important;
  box-shadow:0 8px 18px rgba(13,63,145,.04)!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active{
  background:linear-gradient(135deg,#0d1f5c 0%,#0f57c6 58%,#1e90ff 100%)!important;
  border-color:#0d57c5!important;
  color:#fff!important;
  box-shadow:0 14px 26px rgba(13,87,198,.22)!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  font-size:21px!important;
  font-weight:900!important;
  color:inherit!important;
}
#s2e-plan-root .s2e-selected-plan-card{
  width:min(620px,100%)!important;
  margin:0 auto 10px!important;
  padding:10px 54px 10px 14px!important;
  min-height:52px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f7fbff 0%,#fff 100%)!important;
  border:2px solid #c8e3ff!important;
  box-shadow:0 8px 16px rgba(13,56,145,.06)!important;
  text-align:center!important;
}
#s2e-plan-root .s2e-selected-plan-kicker{display:none!important;}
#s2e-plan-root .s2e-selected-plan-title{
  font-size:20px!important;
  line-height:1.25!important;
  color:#003b8f!important;
  font-weight:900!important;
  white-space:normal!important;
}
#s2e-plan-root .s2e-back-plan-btn{
  position:absolute!important;
  left:14px!important;
  right:auto!important;
  top:14px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  border-radius:14px!important;
  background:#fff!important;
  border:2px solid #d4eaff!important;
  color:#07459c!important;
  box-shadow:0 8px 18px rgba(15,48,107,.12)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  font-size:44px!important;
  line-height:.7!important;
  font-weight:900!important;
  z-index:10!important;
}
#s2e-plan-root .s2e-flex-wrap{width:min(620px,100%)!important;margin:8px auto 12px!important;}
#s2e-plan-root .s2e-plan-start-btn-strong{width:min(620px,100%)!important;margin:0 auto!important;}

/* Close buttons: always left, blue, clear */
#s2e-item-actions-popup .s2e-close-btn,
#s2e-dayslist-popup .s2e-close-btn,
#s2e-day-popup .s2e-close-btn,
#s2e-v86-course-overlay .s2e-v86-close,
#s2e-v86-search-overlay .s2e-v86-close,
.s2e-v86-overlay .s2e-v86-close,
.s2e-close-btn{
  position:sticky!important;
  top:10px!important;
  left:10px!important;
  right:auto!important;
  margin:10px auto 12px 10px!important;
  z-index:99999!important;
  width:max-content!important;
  min-width:104px!important;
  min-height:46px!important;
  padding:9px 16px!important;
  border:0!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#0d4aa4 0%,#0757c8 100%)!important;
  color:#fff!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:17px!important;
  font-weight:900!important;
  box-shadow:0 10px 20px rgba(7,87,200,.22)!important;
}

/* Restore clean action popup buttons for lesson/video/quiz */
#s2e-item-actions-popup .s2e-item-action-body{
  display:block!important;
}
#s2e-item-actions-popup .s2e-item-action-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fcff 100%)!important;
  border:2px solid #e0efff!important;
  border-radius:22px!important;
  padding:14px!important;
  margin:14px 0!important;
}
#s2e-item-actions-popup .s2e-item-action-section-head{
  text-align:center!important;
  margin:0 0 12px!important;
}
#s2e-item-actions-popup .s2e-item-action-section-head .ar{
  display:block!important;
  color:#073f91!important;
  font-size:23px!important;
  font-weight:900!important;
}
#s2e-item-actions-popup .s2e-item-action-section-head .en{
  display:block!important;
  color:#6a7b91!important;
  font-size:16px!important;
  font-weight:800!important;
  margin-top:3px!important;
}
#s2e-item-actions-popup .s2e-item-action-links,
#s2e-item-actions-popup .s2e-v97-action-list,
#s2e-item-actions-popup .s2e-v98-action-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
#s2e-item-actions-popup .s2e-action-row,
#s2e-item-actions-popup .s2e-v97-action-row,
#s2e-item-actions-popup .s2e-v98-action-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 82px!important;
  gap:10px!important;
  align-items:stretch!important;
  direction:rtl!important;
}
#s2e-item-actions-popup .s2e-item-action-link,
#s2e-item-actions-popup .s2e-v97-action-link,
#s2e-item-actions-popup .s2e-v98-action-link{
  direction:rtl!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  min-height:66px!important;
  width:100%!important;
  padding:10px 14px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:2px solid #d7ebff!important;
  box-shadow:0 8px 18px rgba(13,63,145,.05)!important;
  color:#073f91!important;
  text-decoration:none!important;
  font-family:Tahoma,Arial,sans-serif!important;
  text-align:right!important;
}
#s2e-item-actions-popup .s2e-item-action-link .icon,
#s2e-item-actions-popup .s2e-v97-action-link .icon,
#s2e-item-actions-popup .s2e-v98-action-link .icon{
  flex:0 0 52px!important;
  width:52px!important;
  height:52px!important;
  border-radius:16px!important;
  background:#eef7ff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:25px!important;
  order:2!important;
}
#s2e-item-actions-popup .s2e-item-action-link .txt,
#s2e-item-actions-popup .s2e-v97-action-link .txt,
#s2e-item-actions-popup .s2e-v98-action-link .txt{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  flex:1!important;
  order:1!important;
}
#s2e-item-actions-popup .s2e-item-action-link .txt .ar,
#s2e-item-actions-popup .s2e-v97-action-link .txt .ar,
#s2e-item-actions-popup .s2e-v98-action-link .txt .ar{
  display:block!important;
  font-size:18px!important;
  font-weight:900!important;
  color:#073f91!important;
  line-height:1.25!important;
}
#s2e-item-actions-popup .s2e-item-action-link .txt .en,
#s2e-item-actions-popup .s2e-v97-action-link .txt .en,
#s2e-item-actions-popup .s2e-v98-action-link .txt .en{
  display:block!important;
  font-size:14px!important;
  font-weight:800!important;
  color:#6a7b91!important;
  line-height:1.2!important;
  margin-top:2px!important;
}
#s2e-item-actions-popup .s2e-action-done{
  min-height:66px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#eef7ff 100%)!important;
  color:#07459c!important;
  border:2px solid #9fd0ff!important;
  font-size:17px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
  box-shadow:0 8px 18px rgba(13,63,145,.05)!important;
}
#s2e-item-actions-popup .s2e-action-done.done{
  background:linear-gradient(180deg,#eafff1 0%,#def8eb 100%)!important;
  border-color:#bdebd2!important;
  color:#15924f!important;
}

@media(max-width:700px){
  #s2e-plan-root .s2e-setup-box-final{width:calc(100% - 18px)!important;padding:15px 10px 16px!important;}
  #s2e-plan-root .s2e-setup-only .s2e-plan-title{font-size:27px!important;text-align:center!important;padding:0!important;}
  #s2e-plan-root .s2e-setup-only .s2e-plan-sub{font-size:14.5px!important;line-height:1.45!important;margin-bottom:10px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{min-height:54px!important;padding:8px 12px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{font-size:19px!important;}
  #s2e-plan-root .s2e-selected-plan-card{padding:9px 50px 9px 10px!important;}
  #s2e-plan-root .s2e-selected-plan-title{font-size:18px!important;}
  #s2e-plan-root .s2e-back-plan-btn{left:10px!important;top:10px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:42px!important;}
  #s2e-item-actions-popup .s2e-item-action-modal-box{width:calc(100vw - 20px)!important;padding:12px 10px!important;}
  #s2e-item-actions-popup .s2e-action-row,
  #s2e-item-actions-popup .s2e-v97-action-row,
  #s2e-item-actions-popup .s2e-v98-action-row{grid-template-columns:minmax(0,1fr) 70px!important;gap:8px!important;}
  #s2e-item-actions-popup .s2e-item-action-link,
  #s2e-item-actions-popup .s2e-v97-action-link,
  #s2e-item-actions-popup .s2e-v98-action-link{min-height:60px!important;padding:8px 10px!important;}
  #s2e-item-actions-popup .s2e-action-done{min-height:60px!important;font-size:16px!important;}
}


/* v108: fixed action shell for all content/search/day popups */
#s2e-item-actions-popup .s2e-action-empty-section{
  width:100% !important;
  min-height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  border:2px dashed rgba(155,198,244,.75) !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,#f9fcff 0%,#f2f8ff 100%) !important;
  color:#60758f !important;
  font-weight:800 !important;
  font-size:15px !important;
  line-height:1.7 !important;
  padding:12px 10px !important;
}
#s2e-item-actions-popup .s2e-item-action-section{
  display:block !important;
}
#s2e-item-actions-popup .s2e-item-action-section-head{
  position:sticky !important;
  top:0 !important;
  z-index:5 !important;
  background:rgba(255,255,255,.96) !important;
  backdrop-filter:blur(8px) !important;
  border-radius:14px !important;
}

/* v115: one calm empty message when lesson has no activities */
#s2e-item-actions-popup .s2e-item-action-empty-one{
  margin: 18px auto 8px !important;
  padding: 18px 16px !important;
  width: min(860px, 100%) !important;
  border: 2px dashed rgba(15, 87, 198, .22) !important;
  border-radius: 18px !important;
  background: rgba(245, 250, 255, .82) !important;
  color: #64748b !important;
  font-family: Tahoma, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-align: center !important;
  line-height: 1.8 !important;
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v142
   Clear desktop/mobile layout, calm content popup title,
   and missed-days button placement.
========================================================= */
#s2e-plan-root,
#s2e-plan-root *{box-sizing:border-box!important;}
#s2e-plan-root{max-width:100%!important;overflow-x:hidden!important;}

/* setup card: centered and not broken on laptop */
#s2e-plan-root .s2e-setup-box-final{
  width:min(980px, calc(100vw - 32px))!important;
  max-width:980px!important;
  margin:18px auto!important;
  padding:28px 28px 30px!important;
  border-radius:28px!important;
  border:1.5px solid #d8eafe!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
  box-shadow:0 14px 34px rgba(13,63,145,.08)!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:34px!important;
  font-weight:900!important;
  color:#073f91!important;
  text-align:center!important;
  line-height:1.35!important;
  margin:0 auto 8px!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  width:min(760px,100%)!important;
  margin:0 auto 18px!important;
  padding:10px 14px!important;
  border-radius:16px!important;
  background:#f3f8ff!important;
  border:1px solid #d6eaff!important;
  color:#60758f!important;
  font-size:17px!important;
  font-weight:800!important;
  text-align:center!important;
  line-height:1.55!important;
}
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-v53{
  width:min(780px,100%)!important;
  margin:0 auto 18px!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:116px!important;
  width:100%!important;
  padding:16px 12px!important;
  border-radius:22px!important;
  border:2px solid #bfe0ff!important;
  background:#fff!important;
  color:#073f91!important;
  box-shadow:0 10px 22px rgba(13,63,145,.05)!important;
  text-align:center!important;
  white-space:normal!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{
  width:40px!important;height:40px!important;border-radius:14px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:#eef7ff!important;font-size:22px!important;line-height:1!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  font-size:21px!important;font-weight:900!important;line-height:1.25!important;color:inherit!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{
  display:block!important;font-size:13px!important;font-weight:800!important;line-height:1.35!important;color:#64748b!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:hover{
  color:#fff!important;
  border-color:#0a53c6!important;
  background:linear-gradient(135deg,#0d2a78 0%,#0f57c6 55%,#1e90ff 100%)!important;
  box-shadow:0 14px 28px rgba(15,87,198,.20)!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active .s2e-plan-tab-desc,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:hover .s2e-plan-tab-desc{color:#eaf5ff!important;}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active .s2e-plan-tab-icon,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:hover .s2e-plan-tab-icon{background:rgba(255,255,255,.18)!important;}
#s2e-plan-root .s2e-plan-start-btn-strong{
  width:min(760px,100%)!important;
  margin:4px auto 0!important;
  min-height:64px!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#14964e,#20b967)!important;
  box-shadow:0 16px 32px rgba(32,185,103,.22)!important;
}

/* selected plan before start */
#s2e-plan-root .s2e-selected-plan-card{
  width:min(760px,100%)!important;
  margin:0 auto 14px!important;
  border:2px solid #0f57c6!important;
  background:linear-gradient(135deg,#eef7ff,#ffffff)!important;
  border-radius:22px!important;
  box-shadow:0 12px 24px rgba(15,87,198,.10)!important;
  text-align:center!important;
}
#s2e-plan-root .s2e-selected-plan-kicker{font-size:13px!important;color:#64748b!important;font-weight:900!important;}
#s2e-plan-root .s2e-selected-plan-title{font-size:24px!important;color:#073f91!important;font-weight:900!important;}

/* day navigation after current day: previous | missed | next */
#s2e-plan-root .s2e-day-nav-actions-v142{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
}
#s2e-plan-root .s2e-day-nav-actions-v142 .s2e-top-secondary-btn{
  width:100%!important;min-width:0!important;min-height:58px!important;
  border-radius:18px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  font-size:17px!important;font-weight:900!important;
}
#s2e-plan-root .s2e-missingdays-btn{
  border-color:#ffb8b8!important;
  background:linear-gradient(180deg,#fffafa,#fff3f3)!important;
  color:#b42318!important;
}
#s2e-plan-root .s2e-missingdays-btn strong{
  background:#fff!important;color:#b42318!important;border:1px solid #ffcaca!important;
}

/* calm moving title inside every content popup: not a huge fixed block */
#s2e-item-actions-popup .s2e-item-action-modal-box{
  padding-top:16px!important;
  overflow-y:auto!important;
}
#s2e-item-actions-popup .s2e-item-action-title{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  width:100%!important;
  margin:54px auto 12px!important;
  padding:13px 14px!important;
  min-height:0!important;
  border-radius:18px!important;
  border:1.5px solid #cfe6ff!important;
  background:linear-gradient(180deg,#f8fbff,#eef7ff)!important;
  box-shadow:none!important;
  color:#073f91!important;
  text-align:center!important;
}
#s2e-item-actions-popup .s2e-item-action-title .ar{
  color:#073f91!important;
  font-size:24px!important;
  font-weight:900!important;
  line-height:1.25!important;
}
#s2e-item-actions-popup .s2e-item-action-title .en{
  color:#64748b!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.2!important;
  margin-top:2px!important;
}
#s2e-item-actions-popup .s2e-close-btn{
  position:sticky!important;
  top:10px!important;
  z-index:20!important;
}
#s2e-item-actions-popup .s2e-item-action-section-head{
  position:relative!important;
  top:auto!important;
}

@media(max-width:900px){
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{grid-template-columns:1fr!important;width:100%!important;gap:10px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{min-height:86px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{font-size:20px!important;}
}
@media(max-width:600px){
  #s2e-plan-root .s2e-setup-box-final{width:calc(100vw - 18px)!important;margin:10px auto!important;padding:18px 12px!important;border-radius:22px!important;}
  #s2e-plan-root .s2e-setup-only .s2e-plan-title{font-size:28px!important;}
  #s2e-plan-root .s2e-setup-only .s2e-plan-sub{font-size:14.5px!important;}
  #s2e-plan-root .s2e-day-nav-actions-v142{grid-template-columns:1fr!important;}
  #s2e-plan-root .s2e-day-nav-actions-v142 .s2e-top-secondary-btn{min-height:54px!important;font-size:16px!important;}
  #s2e-item-actions-popup .s2e-item-action-title{margin-top:44px!important;padding:11px 10px!important;border-radius:16px!important;}
  #s2e-item-actions-popup .s2e-item-action-title .ar{font-size:20px!important;}
  #s2e-item-actions-popup .s2e-item-action-title .en{font-size:14px!important;}
}


/* =========================================================
   STEP2ENGLISH SMART PLAN v143
   Fixed plan selection on desktop + unified locked cards.
========================================================= */
#s2e-plan-root .s2e-setup-box-final{
  width:min(1120px, calc(100vw - 28px))!important;
  max-width:1120px!important;
  overflow:hidden!important;
}
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-v53{
  width:min(980px,100%)!important;
  grid-template-columns:repeat(3,minmax(210px,1fr))!important;
  gap:16px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
  min-height:148px!important;
  padding:18px 14px!important;
  border-radius:24px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{
  display:flex!important;
  width:46px!important;height:46px!important;
  font-size:24px!important;
  margin-bottom:4px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{font-size:21px!important;}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{display:block!important;min-height:34px!important;}
#s2e-plan-root .s2e-start-bottom-wrap{width:min(980px,100%)!important;margin:0 auto!important;}
#s2e-plan-root .s2e-plan-start-btn-strong{width:100%!important;}
#s2e-plan-root .s2e-v143-plan-needed{
  margin:0 auto 14px!important;
  width:min(820px,100%)!important;
  padding:12px 14px!important;
  border:2px solid #b7dcff!important;
  background:linear-gradient(180deg,#f3f9ff,#eaf5ff)!important;
  border-radius:18px!important;
  color:#073f91!important;
  font-weight:900!important;
  text-align:center!important;
  font-size:17px!important;
  line-height:1.55!important;
}
#s2e-plan-root .s2e-v143-attention .s2e-plan-tab,
#s2e-plan-root .s2e-v143-attention{
  animation:s2eV143PulsePlan 1.2s ease-in-out 2!important;
}
@keyframes s2eV143PulsePlan{0%,100%{box-shadow:0 10px 22px rgba(13,63,145,.05)}50%{box-shadow:0 0 0 5px rgba(30,144,255,.20),0 16px 32px rgba(15,87,198,.18)}}
.s2e-v86-course-card.locked,
.s2e-v143-card.locked{
  position:relative!important;
  border-color:#d7e4f5!important;
  background:linear-gradient(180deg,#f8fafc,#f1f5f9)!important;
  color:#60758f!important;
  cursor:pointer!important;
}
.s2e-v86-course-card.locked:after,
.s2e-v143-card.locked:after{
  content:"🔒 للمشتركين فقط";
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-top:8px!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  background:#fff7ed!important;
  border:1px solid #fed7aa!important;
  color:#b45309!important;
  font-size:13px!important;
  font-weight:900!important;
}
#s2e-v143-course-overlay .s2e-v86-course-card,
#s2e-v143-search-overlay .s2e-v86-course-card{
  text-align:inherit!important;
  width:100%!important;
  border:1.5px solid #d8eafe!important;
}
#s2e-item-actions-popup .s2e-item-action-title{
  margin-top:12px!important;
  position:relative!important;
}
@media(min-width:721px) and (max-width:1040px){
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{min-height:138px!important;padding:16px 10px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{font-size:18px!important;}
}
@media(max-width:720px){
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{grid-template-columns:1fr!important;}
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{min-height:96px!important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v144 FINAL OVERRIDES
   Laptop plan selection must be stable: 3 equal cards in one row.
   App subscribe notice has no price/payment links.
========================================================= */
#s2e-plan-root,
#s2e-plan-root *{box-sizing:border-box!important;}
#s2e-plan-root .s2e-setup-box-final{
  width:min(980px, calc(100vw - 32px))!important;
  max-width:980px!important;
  margin:18px auto!important;
  padding:26px 24px!important;
  overflow:visible!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  font-size:clamp(30px, 3.1vw, 42px)!important;
  line-height:1.2!important;
  margin-bottom:12px!important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  width:min(720px,100%)!important;
  margin:0 auto 20px!important;
  padding:10px 14px!important;
  border-radius:16px!important;
  font-size:16px!important;
  line-height:1.6!important;
}
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-v53{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  width:min(880px,100%)!important;
  max-width:880px!important;
  margin:0 auto 18px!important;
  align-items:stretch!important;
  justify-content:center!important;
  direction:rtl!important;
}
#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-v53 > .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab[data-plan-key="m1"],
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab[data-plan-key="flex-days"],
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab[data-plan-key="flex-date"]{
  grid-column:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:138px!important;
  margin:0!important;
  padding:18px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  text-align:center!important;
  white-space:normal!important;
  border-radius:24px!important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab-main,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  font-size:clamp(18px, 1.6vw, 23px)!important;
  line-height:1.25!important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab-desc,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc,
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab::after{
  display:block!important;
  font-size:13px!important;
  min-height:0!important;
  line-height:1.35!important;
}
#s2e-plan-root .s2e-start-bottom-wrap{
  width:min(880px,100%)!important;
  max-width:880px!important;
  margin:0 auto!important;
  padding:0 0 18px!important;
}
#s2e-plan-root .s2e-plan-start-btn,
#s2e-plan-root .s2e-plan-start-btn-strong{
  width:100%!important;
  max-width:none!important;
  min-height:64px!important;
  border-radius:20px!important;
  font-size:clamp(22px,2vw,30px)!important;
  line-height:1.15!important;
}
#s2e-plan-root .s2e-flex-wrap{
  width:min(880px,100%)!important;
  margin:0 auto 18px!important;
}
.s2e-v144-app-subscribe-overlay{z-index:2147483647!important;}
.s2e-v144-app-subscribe-box{
  width:min(560px,calc(100% - 24px))!important;
  background:#fff!important;
  border:2px solid #cfe4ff!important;
  border-radius:28px!important;
  padding:18px!important;
  box-shadow:0 22px 60px rgba(0,0,0,.22)!important;
  text-align:center!important;
}
.s2e-v144-app-subscribe-title{font-family:Tahoma,Arial,sans-serif!important;font-size:26px!important;font-weight:900!important;color:#0b3d91!important;margin:12px 0 8px!important;}
.s2e-v144-app-subscribe-text{font-family:Tahoma,Arial,sans-serif!important;font-size:18px!important;font-weight:800!important;color:#5d718e!important;line-height:1.8!important;margin:0 0 16px!important;}
.s2e-v144-app-subscribe-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
.s2e-v144-home-btn,.s2e-v144-close-btn{border:0!important;border-radius:18px!important;padding:13px 12px!important;min-height:50px!important;font-family:Tahoma,Arial,sans-serif!important;font-size:17px!important;font-weight:900!important;cursor:pointer!important;}
.s2e-v144-home-btn{background:linear-gradient(180deg,#0d4aa4,#1e90ff)!important;color:#fff!important;}
.s2e-v144-close-btn{background:#eef6ff!important;color:#0b3d91!important;border:2px solid #cfe4ff!important;}
@media(max-width:820px){
  #s2e-plan-root .s2e-setup-box-final{width:calc(100vw - 18px)!important;margin:10px auto!important;padding:18px 12px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{grid-template-columns:1fr!important;width:100%!important;gap:10px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-v53 > .s2e-plan-tab{min-height:94px!important;}
  #s2e-plan-root .s2e-start-bottom-wrap{width:100%!important;padding-bottom:14px!important;}
  .s2e-v144-app-subscribe-actions{grid-template-columns:1fr!important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v145
   Two top buttons + leaks inside plan + app subscribe close-only + mobile setup.
========================================================= */
#s2e-plan-root .s2e-v145-main-tools,
#s2e-plan-root .s2e-search-course-actions.s2e-v145-main-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;width:min(980px,100%)!important;margin:12px auto 14px!important;}
#s2e-plan-root .s2e-v145-main-tools .s2e-v86-tool-btn{min-height:54px!important;border-radius:18px!important;font-size:20px!important;font-weight:900!important;border:2px solid #b9dbff!important;background:linear-gradient(180deg,#ffffff,#f7fbff)!important;color:#0b3d91!important;box-shadow:0 10px 18px rgba(13,31,92,.06)!important;}
#s2e-plan-root .s2e-v145-main-tools .s2e-v145-leaks-btn{background:linear-gradient(180deg,#f7fbff,#eef7ff)!important;}
.s2e-v145-plan-needed{width:min(760px,100%)!important;margin:0 auto 12px!important;padding:12px 16px!important;border:2px solid #ffd1d1!important;background:#fff7f7!important;color:#b42323!important;border-radius:18px!important;text-align:center!important;font-family:Tahoma,Arial,sans-serif!important;font-weight:900!important;font-size:17px!important;}
.s2e-v145-attention{animation:s2eV145Attention .9s ease-in-out 2!important;}
@keyframes s2eV145Attention{50%{transform:scale(1.018);box-shadow:0 0 0 8px rgba(30,144,255,.12)}}
.s2e-v145-leaks-overlay,.s2e-v145-app-subscribe-overlay{position:fixed!important;inset:0!important;z-index:2147483647!important;background:rgba(16,30,54,.55)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;}
.s2e-v145-leaks-box{width:min(920px,calc(100% - 12px))!important;max-height:calc(100vh - 28px)!important;overflow:auto!important;background:#fff!important;border:2px solid #cfe4ff!important;border-radius:28px!important;padding:18px!important;box-shadow:0 24px 70px rgba(0,0,0,.22)!important;font-family:Tahoma,Arial,sans-serif!important;direction:rtl!important;}
.s2e-v145-leaks-box h2{margin:8px 0 6px!important;text-align:center!important;color:#0b3d91!important;font-size:28px!important;font-weight:900!important;}
.s2e-v145-leaks-sub{text-align:center!important;color:#6e86a4!important;font-size:15px!important;font-weight:800!important;margin-bottom:14px!important;}
.s2e-v145-leaks-list{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
.s2e-v145-leak-card{width:100%!important;border:2px solid #d7eaff!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;border-radius:20px!important;padding:14px 16px!important;text-align:right!important;cursor:pointer!important;display:flex!important;flex-direction:column!important;gap:5px!important;}
.s2e-v145-leak-card:hover{border-color:#8fc7ff!important;box-shadow:0 10px 20px rgba(13,85,198,.10)!important;}
.s2e-v145-leak-title{font-size:18px!important;font-weight:900!important;color:#0b3d91!important;line-height:1.4!important;}
.s2e-v145-leak-meta{font-size:13px!important;font-weight:800!important;color:#6f88a8!important;line-height:1.5!important;}
.s2e-v145-empty,.s2e-v145-loading{text-align:center!important;color:#6e86a4!important;border:2px dashed #cfe4ff!important;border-radius:18px!important;padding:22px!important;font-weight:900!important;}
.s2e-v145-app-subscribe-box{width:min(560px,calc(100% - 20px))!important;background:#fff!important;border:2px solid #cfe4ff!important;border-radius:26px!important;padding:20px!important;text-align:center!important;box-shadow:0 24px 70px rgba(0,0,0,.22)!important;font-family:Tahoma,Arial,sans-serif!important;direction:rtl!important;}
.s2e-v145-app-subscribe-title{font-size:24px!important;font-weight:900!important;color:#0b3d91!important;margin:10px 0!important;}
.s2e-v145-app-subscribe-text{font-size:17px!important;font-weight:800!important;color:#617a99!important;line-height:1.8!important;margin:10px auto 18px!important;}
.s2e-v145-only-close{border:0!important;border-radius:18px!important;background:linear-gradient(180deg,#0d55c6,#0b3d91)!important;color:#fff!important;min-height:52px!important;padding:12px 28px!important;font-size:20px!important;font-weight:900!important;cursor:pointer!important;}
.s2e-v144-home-btn{display:none!important;}.s2e-v144-app-subscribe-actions{grid-template-columns:1fr!important;}
@media(max-width:768px){#s2e-plan-root .s2e-v145-main-tools{grid-template-columns:1fr 1fr!important;gap:8px!important;margin:8px auto 10px!important;}#s2e-plan-root .s2e-v145-main-tools .s2e-v86-tool-btn{min-height:46px!important;font-size:15px!important;border-radius:15px!important;padding:8px 6px!important;}#s2e-plan-root:not(.s2e-v145-has-plan-selection) .s2e-start-bottom-wrap{display:none!important;}#s2e-plan-root .s2e-setup-box-final{max-height:calc(100vh - 120px)!important;overflow:auto!important;}#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{min-height:98px!important;padding:10px!important;}#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{font-size:20px!important;width:44px!important;height:44px!important;}#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{font-size:18px!important;line-height:1.25!important;}#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-sub{font-size:12px!important;line-height:1.35!important;}.s2e-v145-leaks-box{border-radius:22px!important;padding:14px!important;}.s2e-v145-leaks-box h2{font-size:23px!important;}.s2e-v145-leak-title{font-size:16px!important;}}


/* =========================================================
   STEP2ENGLISH SMART PLAN v149 SAFE FIXES
   - Button name: تسريبات ستيب
   - Start button hidden until plan is selected
   - Desktop first screen centered and not clipped
========================================================= */
#s2e-plan-root .s2e-v145-main-tools .s2e-v145-leaks-btn{
  font-size:20px!important;
}
#s2e-plan-root:not(.s2e-v145-has-plan-selection) .s2e-start-bottom-wrap{
  display:none!important;
}
#s2e-plan-root .s2e-setup-box-final{
  margin-top:38px!important;
  width:min(1060px, calc(100vw - 42px))!important;
  max-width:1060px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-v53{
  width:min(960px,100%)!important;
  max-width:960px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-v53 > .s2e-plan-tab{
  min-height:150px!important;
}
@media (max-width:820px){
  #s2e-plan-root .s2e-setup-box-final{
    margin-top:10px!important;
    width:calc(100vw - 18px)!important;
    padding:14px 10px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-v53 > .s2e-plan-tab{
    min-height:82px!important;
    padding:8px 10px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{
    width:38px!important;
    height:38px!important;
    font-size:18px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
    font-size:17px!important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-title{
    font-size:26px!important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-sub{
    font-size:13.5px!important;
    margin-bottom:10px!important;
  }
}

/* =========================================================
   S2E v150 SAFE UI PATCH
   Fix laptop setup layout + hide start before selecting plan
========================================================= */
#s2e-plan-root .s2e-step-leaks-main-btn{
  background:#fff !important;
  color:#063f91 !important;
  border:2px solid #b9dcff !important;
  font-weight:900 !important;
}
#s2e-plan-root .s2e-step-leaks-main-btn:hover{
  background:#eef7ff !important;
}

/* Start button must be hidden until a plan is actually selected */
#s2e-plan-root .s2e-setup-only:not(.s2e-has-selected-plan) .s2e-start-bottom-wrap,
#s2e-plan-root .s2e-setup-box-final:not(.s2e-has-selected-plan) .s2e-start-bottom-wrap{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
#s2e-plan-root .s2e-setup-only.s2e-has-selected-plan .s2e-start-bottom-wrap,
#s2e-plan-root .s2e-setup-box-final.s2e-has-selected-plan .s2e-start-bottom-wrap{
  display:flex !important;
  visibility:visible !important;
  height:auto !important;
  overflow:visible !important;
}

@media (min-width: 901px){
  #s2e-plan-root{
    padding-top:34px !important;
  }
  #s2e-plan-root .s2e-setup-only,
  #s2e-plan-root .s2e-setup-box-final{
    width:min(1120px, calc(100% - 36px)) !important;
    max-width:1120px !important;
    margin:34px auto 0 !important;
    padding:30px 42px 38px !important;
    box-sizing:border-box !important;
  }
  #s2e-plan-root .s2e-plan-title{
    font-size:44px !important;
    line-height:1.15 !important;
    margin:0 0 16px !important;
  }
  #s2e-plan-root .s2e-plan-sub{
    width:min(760px, 100%) !important;
    margin:0 auto 24px !important;
  }
  #s2e-plan-root .s2e-plan-tabs,
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:18px !important;
    width:100% !important;
    max-width:1000px !important;
    margin:22px auto 0 !important;
    align-items:stretch !important;
  }
  #s2e-plan-root .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:168px !important;
    margin:0 !important;
    grid-column:auto !important;
    grid-row:auto !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;
  }
}

@media (max-width: 900px){
  #s2e-plan-root .s2e-setup-only,
  #s2e-plan-root .s2e-setup-box-final{
    width:min(94vw, 620px) !important;
    margin:12px auto 0 !important;
    padding:14px 12px 18px !important;
  }
  #s2e-plan-root .s2e-plan-title{
    font-size:30px !important;
    margin-bottom:10px !important;
  }
  #s2e-plan-root .s2e-plan-sub{
    font-size:15px !important;
    padding:8px 10px !important;
    margin-bottom:12px !important;
  }
  #s2e-plan-root .s2e-plan-tab{
    min-height:118px !important;
    padding:12px 10px !important;
  }
}

/* =========================================================
   S2E v151 FINAL SAFE CSS
   Desktop layout + start button visibility + inside leaks button
========================================================= */
@media (min-width: 900px){
  body#page-mod-page-view #s2e-plan-root,
  #s2e-plan-root{
    max-width: 1160px !important;
    margin: 92px auto 36px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #s2e-plan-root .s2e-setup-only,
  #s2e-plan-root .s2e-setup-box-final{
    max-width: 1120px !important;
    width: min(1120px, calc(100vw - 80px)) !important;
    margin: 18px auto 28px !important;
    padding: 30px 34px 34px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  #s2e-plan-root .s2e-plan-tabs,
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 1040px !important;
    margin: 22px auto 24px !important;
    align-items: stretch !important;
  }
  #s2e-plan-root .s2e-plan-tabs > *,
  #s2e-plan-root .s2e-plan-tabs-setup > *,
  #s2e-plan-root .s2e-plan-tabs-v53 > *,
  #s2e-plan-root .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab{
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 148px !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: stretch !important;
  }
  #s2e-plan-root .s2e-plan-tabs > *:nth-child(n),
  #s2e-plan-root .s2e-plan-tabs-setup > *:nth-child(n),
  #s2e-plan-root .s2e-plan-tabs-v53 > *:nth-child(n){
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

#s2e-plan-root .s2e-setup-only:not(.s2e-has-selected-plan) .s2e-start-bottom-wrap,
#s2e-plan-root .s2e-setup-box-final:not(.s2e-has-selected-plan) .s2e-start-bottom-wrap,
#s2e-plan-root:not(.s2e-v151-plan-picked) .s2e-start-bottom-wrap{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#s2e-plan-root.s2e-v151-plan-picked .s2e-start-bottom-wrap,
#s2e-plan-root .s2e-setup-only.s2e-has-selected-plan .s2e-start-bottom-wrap,
#s2e-plan-root .s2e-setup-box-final.s2e-has-selected-plan .s2e-start-bottom-wrap{
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#s2e-plan-root .s2e-step-leaks-main-btn,
#s2e-plan-root #s2e-open-step-leaks{
  background: linear-gradient(180deg,#ffffff 0%,#f4fbff 100%) !important;
  border: 2px solid #b7dcff !important;
  color: #073f93 !important;
  font-weight: 900 !important;
}

@media (max-width: 768px){
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-v53{
    gap: 9px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab{
    min-height: 84px !important;
    padding: 9px 10px !important;
  }
}

/* =========================================================
   S2E v171 CLEAN FIXES
   - stable top buttons
   - leaks inside plan without jitter
   - laptop / landscape setup layout
   - exam date start button always visible
========================================================= */
#s2e-plan-root .s2e-v86-tools,
#s2e-plan-root .s2e-search-course-actions,
#s2e-plan-root .s2e-v145-main-tools{
  position:relative!important;
  z-index:20!important;
  width:min(980px,100%)!important;
  margin:0 auto 12px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  align-items:stretch!important;
  direction:rtl!important;
  clear:both!important;
}
#s2e-plan-root .s2e-v86-tools .s2e-v86-tool-btn,
#s2e-plan-root .s2e-search-course-actions .s2e-v86-tool-btn,
#s2e-plan-root #s2e-v86-open-course,
#s2e-plan-root #s2e-v146-open-leaks{
  position:relative!important;
  z-index:21!important;
  width:100%!important;
  min-height:54px!important;
  margin:0!important;
  transform:none!important;
  animation:none!important;
  border-radius:18px!important;
  pointer-events:auto!important;
}
#s2e-plan-root .s2e-v86-tools button:hover,
#s2e-plan-root .s2e-search-course-actions button:hover{
  transform:none!important;
}

#s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
  width:min(1040px,100%)!important;
  margin:0 auto!important;
  overflow:visible!important;
}
#s2e-plan-root .s2e-plan-tabs-v53,
#s2e-plan-root .s2e-plan-tabs-setup{
  width:min(900px,100%)!important;
  margin:0 auto 14px!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
#s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
  grid-column:auto!important;
  width:100%!important;
  min-height:132px!important;
  margin:0!important;
}
#s2e-plan-root .s2e-flex-wrap,
#s2e-plan-root .s2e-flex-date-panel-v93{
  width:min(760px,100%)!important;
  max-width:100%!important;
  margin:14px auto!important;
  overflow:visible!important;
}
#s2e-plan-root .s2e-date-parts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:center!important;
  overflow:visible!important;
}
#s2e-plan-root .s2e-date-part{
  width:100%!important;
  min-width:0!important;
}
#s2e-plan-root .s2e-start-bottom-wrap{
  display:flex!important;
  visibility:visible!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  margin:18px auto 0!important;
  padding:0!important;
  position:relative!important;
  z-index:10!important;
  clear:both!important;
}
#s2e-plan-root .s2e-plan-start-btn-strong,
#s2e-plan-root #s2e-plan-start-now{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  width:min(640px,100%)!important;
  min-height:64px!important;
  font-size:26px!important;
  position:relative!important;
  z-index:11!important;
}
@media (max-width:900px){
  #s2e-plan-root .s2e-plan-tabs-v53,
  #s2e-plan-root .s2e-plan-tabs-setup{grid-template-columns:1fr!important;width:min(660px,100%)!important;}
  #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab{min-height:76px!important;}
}
@media (max-width:520px){
  #s2e-plan-root .s2e-v86-tools,
  #s2e-plan-root .s2e-search-course-actions{grid-template-columns:1fr!important;gap:8px!important;}
  #s2e-plan-root .s2e-date-parts{grid-template-columns:1fr!important;}
  #s2e-plan-root .s2e-plan-start-btn-strong,
  #s2e-plan-root #s2e-plan-start-now{min-height:58px!important;font-size:23px!important;}
}

/* =========================================================
   S2E v172 FINAL CLEAN PATCH
   - hide old search/course tools and use one clean toolbar
   - keep Start button visible for days/date plans
   - remove green selected date frame
   - improve laptop/mobile-landscape setup layout
========================================================= */
#s2e-plan-root .s2e-v86-tools:not(.s2e-v172-tools),
#s2e-plan-root .s2e-search-course-actions:not(.s2e-v172-tools),
#s2e-plan-root .s2e-v145-main-tools:not(.s2e-v172-tools),
#s2e-plan-root #s2e-open-plan-search-v69,
#s2e-plan-root #s2e-v86-open-search,
#s2e-plan-root .s2e-search-plan-btn{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
  width:0!important;
  height:0!important;
  overflow:hidden!important;
}

#s2e-plan-root .s2e-v172-tools{
  width:min(980px,calc(100% - 18px))!important;
  margin:0 auto 14px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  direction:rtl!important;
  position:relative!important;
  z-index:80!important;
  clear:both!important;
}
#s2e-plan-root .s2e-v172-tool-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:58px!important;
  width:100%!important;
  border-radius:18px!important;
  border:2px solid #b9d9ff!important;
  background:linear-gradient(180deg,#ffffff 0%,#f5fbff 100%)!important;
  color:#003f91!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:22px!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(13,85,198,.08)!important;
  cursor:pointer!important;
  transform:none!important;
  animation:none!important;
}
#s2e-plan-root .s2e-v172-tool-btn:active{
  transform:scale(.99)!important;
}

#s2e-plan-root .s2e-date-parts,
#s2e-plan-root .s2e-date-parts.ready,
#s2e-plan-root .s2e-date-parts:focus-within{
  border-color:#c8e0ff!important;
  box-shadow:none!important;
  outline:none!important;
}
#s2e-plan-root .s2e-date-part:focus{
  border-color:#1e90ff!important;
  box-shadow:0 0 0 3px rgba(30,144,255,.10)!important;
  outline:none!important;
}

#s2e-plan-root .s2e-setup-box-final,
#s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
  overflow:visible!important;
  max-height:none!important;
  padding-bottom:24px!important;
}
#s2e-plan-root .s2e-flex-wrap,
#s2e-plan-root .s2e-flex-panel{
  overflow:visible!important;
}
#s2e-plan-root .s2e-start-bottom-wrap{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  justify-content:center!important;
  width:100%!important;
  margin:18px auto 0!important;
  position:sticky!important;
  bottom:8px!important;
  z-index:70!important;
  padding:6px 0 0!important;
  background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.96) 35%,rgba(255,255,255,.98) 100%)!important;
}
#s2e-plan-root:not(.s2e-v145-has-plan-selection) .s2e-start-bottom-wrap,
#s2e-plan-root .s2e-setup-box-final:not(.s2e-has-selected-plan) .s2e-start-bottom-wrap{
  display:flex!important;
  visibility:visible!important;
}
#s2e-plan-root #s2e-plan-start-now,
#s2e-plan-root .s2e-plan-start-btn,
#s2e-plan-root .s2e-plan-start-btn-strong{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(760px,100%)!important;
  min-height:66px!important;
  border-radius:22px!important;
  font-size:30px!important;
  font-weight:900!important;
  position:relative!important;
  z-index:75!important;
}
#s2e-plan-root .s2e-flex-days-scroll-card{
  max-height:300px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

@media (min-width:769px){
  #s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected),
  #s2e-plan-root .s2e-plan-tabs-v53:not(.has-selected){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:min(1040px,100%)!important;
    gap:16px!important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-v53:not(.has-selected) .s2e-plan-tab{
    min-height:150px!important;
  }
}
@media (max-width:768px){
  #s2e-plan-root .s2e-v172-tools{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:calc(100% - 18px)!important;
    margin-bottom:10px!important;
  }
  #s2e-plan-root .s2e-v172-tool-btn{
    min-height:50px!important;
    font-size:17px!important;
    border-radius:16px!important;
    padding:8px 6px!important;
  }
  #s2e-plan-root .s2e-plan-title{font-size:30px!important;line-height:1.15!important;}
  #s2e-plan-root .s2e-selected-plan-card{padding:10px 12px!important;}
  #s2e-plan-root .s2e-selected-plan-title{font-size:23px!important;line-height:1.28!important;}
  #s2e-plan-root .s2e-flex-days-scroll-card{max-height:260px!important;}
  #s2e-plan-root #s2e-plan-start-now,
  #s2e-plan-root .s2e-plan-start-btn-strong{min-height:60px!important;font-size:26px!important;}
}
@media (max-width:420px){
  #s2e-plan-root .s2e-v172-tool-btn{font-size:15px!important;}
  #s2e-plan-root .s2e-selected-plan-title{font-size:21px!important;}
}

/* v172 leaks modal */
.s2e-v172-leaks-box{
  width:min(940px,calc(100% - 14px))!important;
  max-height:calc(100dvh - 22px)!important;
  overflow:auto!important;
  background:#fff!important;
  border:2px solid #cfe4ff!important;
  border-radius:28px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.22)!important;
  padding:18px!important;
  direction:rtl!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v172-leaks-head{text-align:center!important;margin:10px 0 14px!important;}
.s2e-v172-leaks-head h2{margin:0!important;color:#073f96!important;font-size:30px!important;font-weight:900!important;}
.s2e-v172-leaks-head p{margin:8px 0 0!important;color:#7088a8!important;font-size:16px!important;font-weight:800!important;}
.s2e-v172-leaks-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:12px 0 14px!important;}
.s2e-v172-leaks-tab{border:2px solid #cfe4ff!important;background:#f7fbff!important;color:#0b3d91!important;border-radius:16px!important;min-height:46px!important;font-size:16px!important;font-weight:900!important;cursor:pointer!important;}
.s2e-v172-leaks-tab.active{background:linear-gradient(180deg,#0d55c6,#003b91)!important;color:#fff!important;border-color:#0d55c6!important;}
.s2e-v172-leaks-list{display:grid!important;gap:10px!important;}
.s2e-v172-leak-card{width:100%!important;text-align:right!important;border:2px solid #d9ecff!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;border-radius:20px!important;padding:14px!important;cursor:pointer!important;}
.s2e-v172-leak-title{display:block!important;color:#073f96!important;font-size:20px!important;font-weight:900!important;line-height:1.35!important;}
.s2e-v172-leak-meta{display:block!important;margin-top:5px!important;color:#6f86a8!important;font-size:13px!important;font-weight:800!important;line-height:1.45!important;}
.s2e-v172-empty{border:2px dashed #cfe4ff!important;border-radius:20px!important;padding:22px!important;text-align:center!important;color:#7288a8!important;font-size:17px!important;font-weight:900!important;}
@media(max-width:640px){.s2e-v172-leaks-tabs{grid-template-columns:1fr 1fr!important}.s2e-v172-leaks-head h2{font-size:24px!important}.s2e-v172-leak-title{font-size:17px!important}}

/* =========================================================
   S2E v173 - Strong Leaks UI inside timetable
========================================================= */
#s2e-plan-root .s2e-v173-tools{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:14px !important;
  width:min(1120px, calc(100% - 24px)) !important;
  margin:14px auto 16px !important;
  direction:rtl !important;
  position:relative !important;
  z-index:5 !important;
}
#s2e-plan-root .s2e-v173-tool-btn{
  min-height:62px !important;
  border-radius:20px !important;
  border:2px solid #b8d8ff !important;
  background:#f8fbff !important;
  color:#073f96 !important;
  font-family:Cairo,Tahoma,Arial,sans-serif !important;
  font-size:22px !important;
  font-weight:900 !important;
  box-shadow:0 10px 24px rgba(15,78,140,.08) !important;
  cursor:pointer !important;
  transform:none !important;
  animation:none !important;
}
#s2e-plan-root .s2e-v173-tool-btn:hover{background:#eef7ff !important;}
#s2e-plan-root #s2e-v86-open-search,
#s2e-plan-root .s2e-search-course-actions #s2e-v86-open-search{display:none !important;}
.s2e-v173-need-plan-msg{
  margin:10px auto !important;
  padding:14px 16px !important;
  border:2px solid #b9d9ff !important;
  border-radius:18px !important;
  background:#f7fbff !important;
  color:#073f96 !important;
  font-family:Tahoma,Arial,sans-serif !important;
  font-size:18px !important;
  font-weight:900 !important;
  text-align:center !important;
  max-width:760px !important;
}
#s2e-plan-root .s2e-v100-date-parts,
#s2e-plan-root .s2e-flex-date-parts,
#s2e-plan-root .s2e-date-parts{
  border-color:#b8d8ff !important;
  box-shadow:none !important;
}
#s2e-plan-root .s2e-v100-date-parts:focus-within,
#s2e-plan-root .s2e-flex-date-parts:focus-within,
#s2e-plan-root .s2e-date-parts:focus-within{
  border-color:#1e90ff !important;
  box-shadow:0 0 0 4px rgba(30,144,255,.08) !important;
}

.s2e-v173-leaks-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483620 !important;
  background:rgba(7,25,61,.48) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:18px !important;
  font-family:Cairo,Tahoma,Arial,sans-serif !important;
}
.s2e-v173-app{
  width:min(760px, 100%) !important;
  height:min(86vh, 860px) !important;
  background:#f4f7f9 !important;
  border-radius:28px !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  box-shadow:0 30px 70px rgba(0,0,0,.28) !important;
  direction:rtl !important;
}
.s2e-v173-header{
  background:linear-gradient(135deg,#123b82,#07193d) !important;
  color:#fff !important;
  padding:18px 20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  direction:ltr !important;
  flex:0 0 auto !important;
}
.s2e-v173-title{
  flex:1 !important;
  text-align:center !important;
  font-size:22px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  letter-spacing:.2px !important;
}
.s2e-v173-close,
.s2e-v173-back{
  width:44px !important;
  height:44px !important;
  border:0 !important;
  border-radius:15px !important;
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:26px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  line-height:1 !important;
}
.s2e-v173-back{font-size:20px !important;}
.s2e-v173-content{
  flex:1 1 auto !important;
  overflow-y:auto !important;
  padding:20px !important;
  background:#f4f7f9 !important;
  scrollbar-width:thin !important;
}
.s2e-v173-section-card{
  background:#fff !important;
  border:2px solid rgba(15,48,107,.08) !important;
  border-radius:22px !important;
  padding:20px !important;
  margin-bottom:14px !important;
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
  box-shadow:0 12px 30px rgba(15,48,107,.08) !important;
  cursor:pointer !important;
  position:relative !important;
  transition:.18s ease !important;
}
.s2e-v173-section-card:hover{border-color:#0f306b !important; transform:translateY(-1px) !important;}
.s2e-v173-icon{
  width:58px !important;
  height:58px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#f0f5ff,#e0ecff) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:28px !important;
  box-shadow:0 8px 20px rgba(15,48,107,.08) !important;
}
.s2e-v173-card-txt{flex:1 !important; text-align:right !important;}
.s2e-v173-card-txt h4{margin:0 !important; color:#1e293b !important; font-size:21px !important; font-weight:900 !important;}
.s2e-v173-card-txt p{margin:6px 0 0 !important; color:#64748b !important; font-size:15px !important; font-weight:800 !important;}
.s2e-v173-arrow{
  width:34px !important;
  height:34px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#f8fafc !important;
  color:#94a3b8 !important;
  font-size:15px !important;
  font-weight:900 !important;
}
.s2e-v173-filters{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:8px !important;
  background:rgba(226,232,240,.65) !important;
  border:1px solid rgba(255,255,255,.55) !important;
  border-radius:20px !important;
  padding:8px !important;
  margin-bottom:14px !important;
}
.s2e-v173-pill,
.s2e-v173-top-btn{
  border:1px solid rgba(255,255,255,.9) !important;
  background:rgba(255,255,255,.55) !important;
  color:#64748b !important;
  border-radius:14px !important;
  padding:12px 8px !important;
  font-size:15px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  text-align:center !important;
}
.s2e-v173-pill.on,
.s2e-v173-top-btn.on{
  color:#fff !important;
  background:linear-gradient(135deg,#f59e0b,#b45309) !important;
  box-shadow:0 8px 16px rgba(217,119,6,.22) !important;
}
.s2e-v173-top-btn{
  width:100% !important;
  margin:0 0 14px !important;
  color:#ea580c !important;
  background:linear-gradient(135deg,#fff7ed,#ffedd5) !important;
  border:2px solid #fed7aa !important;
}
.s2e-v173-search{position:relative !important; margin-bottom:14px !important;}
.s2e-v173-search-input{
  width:100% !important;
  border:1px solid #cbd5e1 !important;
  border-radius:16px !important;
  background:#fff !important;
  padding:15px 16px 15px 48px !important;
  font-family:Cairo,Tahoma,Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:800 !important;
  outline:0 !important;
}
.s2e-v173-search span{position:absolute !important; left:16px !important; top:50% !important; transform:translateY(-50%) !important;}
.s2e-v173-item{
  width:100% !important;
  border:1px solid rgba(15,48,107,.10) !important;
  border-right:5px solid #123b82 !important;
  border-radius:20px !important;
  background:#fff !important;
  padding:16px !important;
  margin-bottom:12px !important;
  cursor:pointer !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
  text-align:right !important;
  box-shadow:0 6px 18px rgba(15,48,107,.05) !important;
}
.s2e-v173-name{flex:1 !important; display:flex !important; flex-direction:column !important; gap:4px !important;}
.s2e-v173-name strong{font-size:17px !important; color:#0f306b !important; font-weight:900 !important; line-height:1.45 !important;}
.s2e-v173-name span{font-size:13px !important; color:#64748b !important; font-weight:800 !important; direction:ltr !important; text-align:right !important;}
.s2e-v173-name em{font-style:normal !important; font-size:12px !important; color:#7890ad !important; font-weight:800 !important;}
.s2e-v173-repeat{
  white-space:nowrap !important;
  background:#fee2e2 !important;
  color:#dc2626 !important;
  border:1px solid #fecaca !important;
  border-radius:12px !important;
  padding:7px 10px !important;
  font-size:12px !important;
  font-weight:900 !important;
}
.s2e-v173-empty{
  text-align:center !important;
  color:#94a3b8 !important;
  font-size:15px !important;
  font-weight:900 !important;
  padding:28px 10px !important;
}
.s2e-v173-footer{
  flex:0 0 auto !important;
  background:rgba(255,255,255,.93) !important;
  border-top:1px solid rgba(0,0,0,.06) !important;
  padding:20px 22px 26px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
}
.s2e-v173-leak-text{
  width:100% !important;
  min-height:64px !important;
  resize:none !important;
  border:1px solid #cbd5e1 !important;
  border-radius:16px !important;
  background:#f8fafc !important;
  padding:15px !important;
  outline:0 !important;
  font-family:Cairo,Tahoma,Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:800 !important;
}
.s2e-v173-send{
  width:100% !important;
  border:0 !important;
  border-radius:16px !important;
  background:linear-gradient(135deg,#f59e0b,#b45309) !important;
  color:#fff !important;
  min-height:56px !important;
  font-family:Cairo,Tahoma,Arial,sans-serif !important;
  font-size:18px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 10px 24px rgba(217,119,6,.30) !important;
}
.s2e-v173-item-overlay{z-index:2147483630 !important;}
@media (max-width:767px){
  .s2e-v173-leaks-overlay{padding:0 !important; align-items:stretch !important; justify-content:stretch !important;}
  .s2e-v173-app{width:100vw !important; height:100dvh !important; max-height:none !important; border-radius:0 !important;}
  .s2e-v173-header{padding:16px 14px !important;}
  .s2e-v173-title{font-size:20px !important;}
  .s2e-v173-content{padding:14px !important;}
  .s2e-v173-filters{grid-template-columns:repeat(2,1fr) !important;}
  .s2e-v173-pill{font-size:13px !important; padding:11px 6px !important;}
  .s2e-v173-card-txt h4{font-size:18px !important;}
  .s2e-v173-card-txt p{font-size:13px !important;}
  #s2e-plan-root .s2e-v173-tools{gap:10px !important; width:calc(100% - 22px) !important;}
  #s2e-plan-root .s2e-v173-tool-btn{min-height:56px !important; font-size:18px !important;}
}

/* =========================================================
   S2E v180 - stable leaks shape + locked cards + compact filters
========================================================= */
.s2e-v173-pill{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:2px !important;
  line-height:1.15 !important;
}
.s2e-v173-pill-main{display:block!important;font-size:14px!important;font-weight:900!important;line-height:1.15!important;}
.s2e-v173-pill-sub{display:block!important;font-size:10px!important;font-weight:800!important;line-height:1.15!important;opacity:.9!important;white-space:nowrap!important;}
.s2e-v173-name{direction:rtl!important;text-align:right!important;}
.s2e-v173-name em{direction:rtl!important;text-align:right!important;display:block!important;}
.s2e-v173-locked{position:relative!important;overflow:hidden!important;min-height:78px!important;}
.s2e-v173-locked .s2e-v173-name,
.s2e-v173-locked .s2e-v173-repeat{filter:blur(3px)!important;opacity:.42!important;user-select:none!important;}
.s2e-v173-lock-layer{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(255,255,255,.64)!important;border-radius:inherit!important;z-index:3!important;pointer-events:none!important;}
.s2e-v173-lock-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:9px 14px!important;border-radius:999px!important;background:linear-gradient(135deg,#0d1f5c,#002e94,#1e90ff)!important;color:#fff!important;font-family:Tahoma,Arial,sans-serif!important;font-size:14px!important;font-weight:900!important;box-shadow:0 10px 24px rgba(13,31,92,.18)!important;}
.s2e-v173-price-box .s2e-v173-price-main{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:12px auto!important;color:#b85a00!important;font-family:Tahoma,Arial,sans-serif!important;font-size:24px!important;font-weight:900!important;}
.s2e-v173-price-box .s2e-v173-price-main span{font-size:34px!important;line-height:1!important;}
.s2e-v173-search-input{direction:rtl!important;text-align:right!important;}
.s2e-v173-leak-text{direction:rtl!important;text-align:right!important;}
@media(max-width:640px){
  .s2e-v173-pill-main{font-size:13px!important;}
  .s2e-v173-pill-sub{font-size:9px!important;}
  .s2e-v173-lock-badge{font-size:13px!important;padding:8px 12px!important;}
}


/* =========================================================
   S2E v181 final fixes on top of v180
   Preserve original leaks shape; fix arrows/header/course gate
========================================================= */
.s2e-v173-arrow{display:none!important;}
.s2e-v173-section-card{cursor:pointer!important;touch-action:pan-y!important;}
.s2e-v173-header{position:relative!important;display:grid!important;grid-template-columns:48px 1fr 48px!important;align-items:center!important;}
.s2e-v173-back{grid-column:1!important;grid-row:1!important;justify-self:start!important;direction:ltr!important;transform:none!important;font-family:Tahoma,Arial,sans-serif!important;}
.s2e-v173-close{grid-column:3!important;grid-row:1!important;justify-self:end!important;}
.s2e-v173-title{grid-column:2!important;grid-row:1!important;text-align:center!important;}
.s2e-v173-app.s2e-v173-no-back .s2e-v173-back{visibility:hidden!important;pointer-events:none!important;}
.s2e-v173-app.s2e-v173-no-back .s2e-v173-close{grid-column:1!important;justify-self:start!important;}
.s2e-v173-app.s2e-v173-no-back .s2e-v173-title{grid-column:2 / 4!important;padding-inline-end:48px!important;}
.s2e-v173-name em{direction:rtl!important;text-align:right!important;unicode-bidi:plaintext!important;}
.s2e-v173-name span{max-width:100%!important;overflow-wrap:anywhere!important;}
.s2e-v173-top-btn{background:linear-gradient(135deg,#fff7ed,#ffedd5)!important;border-color:#fdba74!important;color:#9a3412!important;box-shadow:0 8px 18px rgba(234,88,12,.10)!important;}
.s2e-v173-top-btn.on{background:linear-gradient(135deg,#f97316,#ea580c)!important;color:#fff!important;border-color:#ea580c!important;}
.s2e-v173-search-input,.s2e-v173-leak-text{touch-action:manipulation!important;}
.s2e-v173-locked{cursor:pointer!important;}
.s2e-v173-need-plan-msg{animation:none!important;}
@media(max-width:768px){
  .s2e-v173-header{grid-template-columns:44px 1fr 44px!important;}
  .s2e-v173-app.s2e-v173-no-back .s2e-v173-title{padding-inline-end:44px!important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v184 - HARD FINAL DESIGN OVERRIDE
   This block is intentionally last in style.css.
========================================================= */
html body #s2e-plan-root{box-sizing:border-box!important;direction:rtl!important;width:min(940px,calc(100vw - 50px))!important;max-width:940px!important;margin:8px auto 34px!important;padding:0 10px!important;overflow:visible!important;}
html body #s2e-plan-root *,html body #s2e-plan-root *:before,html body #s2e-plan-root *:after{box-sizing:border-box!important;}
html body #s2e-plan-root .s2e-v86-tools,html body #s2e-plan-root .s2e-search-course-actions,html body #s2e-plan-root .s2e-v145-main-tools,html body #s2e-plan-root .s2e-v172-tools,html body #s2e-plan-root .s2e-v173-tools{width:min(720px,100%)!important;max-width:720px!important;margin:4px auto 14px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;align-items:stretch!important;direction:rtl!important;position:relative!important;z-index:90!important;padding:0!important;clear:both!important;}
html body #s2e-plan-root .s2e-v86-tools button,html body #s2e-plan-root .s2e-search-course-actions button,html body #s2e-plan-root .s2e-v145-main-tools .s2e-v86-tool-btn,html body #s2e-plan-root .s2e-v172-tool-btn,html body #s2e-plan-root .s2e-v173-tool-btn,html body #s2e-plan-root #s2e-v86-open-course,html body #s2e-plan-root #s2e-v146-open-leaks,html body #s2e-plan-root #s2e-v172-open-leaks,html body #s2e-plan-root #s2e-v173-open-leaks{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;padding:9px 14px!important;border-radius:999px!important;border:2px solid #b9d9ff!important;background:linear-gradient(180deg,#fff 0%,#f4f9ff 100%)!important;color:#073f91!important;font-family:Tahoma,Arial,sans-serif!important;font-size:19px!important;font-weight:900!important;line-height:1.15!important;box-shadow:0 8px 18px rgba(13,85,198,.07)!important;transform:none!important;animation:none!important;white-space:normal!important;}
html body #s2e-plan-root #s2e-v146-open-leaks,html body #s2e-plan-root #s2e-v172-open-leaks,html body #s2e-plan-root #s2e-v173-open-leaks,html body #s2e-plan-root .s2e-v145-leaks-btn{background:linear-gradient(180deg,#fff9f0 0%,#fff3df 100%)!important;border-color:#ffd49a!important;color:#9a4a00!important;}
html body #s2e-plan-root .s2e-plan-topbox.s2e-setup-only,html body #s2e-plan-root .s2e-setup-box-final{width:min(820px,100%)!important;max-width:820px!important;margin:0 auto 18px!important;padding:26px 24px 28px!important;border-radius:34px!important;border:1px solid rgba(185,217,255,.95)!important;background:radial-gradient(circle at 50% 0%,rgba(30,144,255,.11) 0%,rgba(255,255,255,0) 42%),linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;box-shadow:0 18px 46px rgba(7,63,145,.10)!important;overflow:visible!important;max-height:none!important;text-align:center!important;}
html body #s2e-plan-root .s2e-setup-only .s2e-plan-title,html body #s2e-plan-root .s2e-plan-title{margin:0 auto 10px!important;color:#073f91!important;font-family:Tahoma,Arial,sans-serif!important;font-size:38px!important;font-weight:900!important;line-height:1.16!important;letter-spacing:-.3px!important;text-align:center!important;}
html body #s2e-plan-root .s2e-setup-only .s2e-plan-sub,html body #s2e-plan-root .s2e-plan-sub{width:min(620px,100%)!important;margin:0 auto 22px!important;padding:10px 16px!important;border-radius:999px!important;border:1px solid #d7e9ff!important;background:rgba(246,251,255,.92)!important;color:#60758f!important;font-family:Tahoma,Arial,sans-serif!important;font-size:15px!important;font-weight:900!important;line-height:1.55!important;text-align:center!important;}
@media (min-width:821px){
  html body #s2e-plan-root .s2e-plan-tabs,html body #s2e-plan-root .s2e-plan-tabs-setup,html body #s2e-plan-root .s2e-plan-tabs-v53{width:min(720px,100%)!important;max-width:720px!important;margin:0 auto 4px!important;padding:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important;justify-content:center!important;}
  html body #s2e-plan-root .s2e-plan-tabs>*,html body #s2e-plan-root .s2e-plan-tabs-setup>*,html body #s2e-plan-root .s2e-plan-tabs-v53>*,html body #s2e-plan-root .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{grid-column:auto!important;grid-row:auto!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:126px!important;margin:0!important;align-self:stretch!important;}
}
html body #s2e-plan-root .s2e-plan-tabs .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:16px 12px!important;border-radius:26px!important;border:2px solid #cfe4ff!important;background:linear-gradient(180deg,#fff 0%,#f9fcff 100%)!important;color:#073f91!important;box-shadow:0 10px 24px rgba(7,63,145,.07)!important;text-align:center!important;white-space:normal!important;overflow:hidden!important;transform:none!important;animation:none!important;}
html body #s2e-plan-root .s2e-plan-tab.active,html body #s2e-plan-root .s2e-plan-tabs .s2e-plan-tab.active,html body #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active,html body #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab.active{background:linear-gradient(135deg,#0d1f5c 0%,#003b8f 58%,#1e90ff 100%)!important;border-color:#0d55c6!important;color:#fff!important;box-shadow:0 18px 34px rgba(13,85,198,.23)!important;}
html body #s2e-plan-root .s2e-plan-tab-icon,html body #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:16px!important;background:#eef7ff!important;font-size:22px!important;line-height:1!important;margin:0!important;}
html body #s2e-plan-root .s2e-plan-tab-main{display:block!important;color:inherit!important;font-family:Tahoma,Arial,sans-serif!important;font-size:22px!important;font-weight:900!important;line-height:1.25!important;margin:0!important;}
html body #s2e-plan-root .s2e-plan-tab-desc,html body #s2e-plan-root .s2e-plan-tab-meta,html body #s2e-plan-root .s2e-plan-tab-sub{display:block!important;color:inherit!important;opacity:.92!important;font-family:Tahoma,Arial,sans-serif!important;font-size:13px!important;font-weight:800!important;line-height:1.35!important;margin:0!important;}
html body #s2e-plan-root .s2e-selected-plan-card,html body #s2e-plan-root .s2e-flex-wrap{width:min(640px,100%)!important;margin:12px auto!important;}
html body #s2e-plan-root .s2e-start-bottom-wrap{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;margin:14px auto 0!important;padding:0!important;position:relative!important;bottom:auto!important;background:transparent!important;}
html body #s2e-plan-root #s2e-plan-start-now,html body #s2e-plan-root .s2e-plan-start-btn,html body #s2e-plan-root .s2e-plan-start-btn-strong{width:min(520px,100%)!important;min-height:58px!important;border-radius:999px!important;font-size:25px!important;}
@media (max-width:820px){
  html body #s2e-plan-root{width:100%!important;max-width:100%!important;margin:0 auto 20px!important;padding:0 8px!important;}
  html body #s2e-plan-root .s2e-v86-tools,html body #s2e-plan-root .s2e-search-course-actions,html body #s2e-plan-root .s2e-v145-main-tools,html body #s2e-plan-root .s2e-v172-tools,html body #s2e-plan-root .s2e-v173-tools{width:100%!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:6px auto 10px!important;}
  html body #s2e-plan-root .s2e-plan-topbox.s2e-setup-only,html body #s2e-plan-root .s2e-setup-box-final{width:100%!important;max-width:100%!important;margin:0 auto 14px!important;padding:16px 10px 18px!important;border-radius:24px!important;}
  html body #s2e-plan-root .s2e-setup-only .s2e-plan-title,html body #s2e-plan-root .s2e-plan-title{font-size:28px!important;margin-bottom:7px!important;}
  html body #s2e-plan-root .s2e-setup-only .s2e-plan-sub,html body #s2e-plan-root .s2e-plan-sub{font-size:14px!important;line-height:1.45!important;padding:8px 10px!important;margin-bottom:11px!important;border-radius:16px!important;}
  html body #s2e-plan-root .s2e-plan-tabs,html body #s2e-plan-root .s2e-plan-tabs-setup,html body #s2e-plan-root .s2e-plan-tabs-v53{width:100%!important;max-width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:0 auto!important;}
  html body #s2e-plan-root .s2e-plan-tabs .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,html body #s2e-plan-root .s2e-plan-tabs-v53 .s2e-plan-tab{min-height:76px!important;padding:10px!important;border-radius:18px!important;}
  html body #s2e-plan-root .s2e-plan-tab-icon{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:19px!important;}
  html body #s2e-plan-root .s2e-plan-tab-main{font-size:18px!important;}
  html body #s2e-plan-root .s2e-plan-tab-desc,html body #s2e-plan-root .s2e-plan-tab-meta,html body #s2e-plan-root .s2e-plan-tab-sub{font-size:12px!important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v185 DESIGN FIX
========================================================= */
#s2e-v185-stable-tools,
.s2e-v185-tools{
  width:min(900px,calc(100% - 28px))!important;
  margin:12px auto 18px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  direction:rtl!important;
  position:relative!important;
  z-index:30!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
#s2e-v185-stable-tools button{
  min-height:58px!important;
  border-radius:24px!important;
  border:2px solid #b9d9ff!important;
  background:linear-gradient(180deg,#ffffff,#f7fbff)!important;
  color:#073f96!important;
  font-size:22px!important;
  font-weight:900!important;
  box-shadow:0 10px 28px rgba(13,85,198,.08)!important;
  cursor:pointer!important;
}
#s2e-v185-stable-tools #s2e-v185-open-leaks{
  border-color:#ffcc85!important;
  color:#8a3e00!important;
  background:linear-gradient(180deg,#fffdf8,#fff5e5)!important;
}
#s2e-v185-stable-tools button:hover{transform:translateY(-1px)!important;box-shadow:0 14px 34px rgba(13,85,198,.14)!important;}
#s2e-plan-root .s2e-v185-old-tools-hidden{display:none!important;visibility:hidden!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}

#s2e-plan-root .s2e-start-bottom-wrap,
#s2e-plan-root #s2e-plan-start-now,
#s2e-plan-root .s2e-plan-start-btn{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
#s2e-plan-root .s2e-start-bottom-wrap{display:flex!important;justify-content:center!important;margin-top:18px!important;}
#s2e-plan-root #s2e-plan-start-now,
#s2e-plan-root .s2e-plan-start-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:min(380px,100%)!important;
  min-height:58px!important;
  border-radius:22px!important;
  font-size:24px!important;
  font-weight:900!important;
}

#s2e-plan-root .s2e-v185-inline-days{
  direction:rtl!important;
  width:100%!important;
  max-width:760px!important;
  margin:10px auto 8px!important;
  padding:18px!important;
  border:2px solid #cfe4ff!important;
  border-radius:26px!important;
  background:linear-gradient(180deg,#ffffff,#f7fbff)!important;
  box-shadow:0 14px 34px rgba(13,85,198,.08)!important;
}
#s2e-plan-root .s2e-v185-inline-days-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:14px!important;
  color:#073f96!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
#s2e-plan-root .s2e-v185-inline-days-top span{font-size:18px!important;font-weight:900!important;}
#s2e-plan-root .s2e-v185-inline-days-top b{font-size:28px!important;font-weight:900!important;color:#0d55c6!important;}
#s2e-plan-root .s2e-v185-inline-days input[type="range"]{width:100%!important;accent-color:#0d55c6!important;height:34px!important;}
#s2e-plan-root .s2e-v185-inline-chips{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:12px!important;
}
#s2e-plan-root .s2e-v185-inline-chips button{
  border:2px solid #cfe4ff!important;
  background:#fff!important;
  color:#073f96!important;
  border-radius:18px!important;
  min-height:46px!important;
  font-size:18px!important;
  font-weight:900!important;
}
#s2e-plan-root .s2e-v185-inline-chips button.active,
#s2e-plan-root .s2e-v185-inline-chips button:hover{
  background:linear-gradient(135deg,#0b3d91,#1e90ff)!important;
  color:#fff!important;
  border-color:#0d55c6!important;
}
#s2e-plan-root .s2e-v185-old-days-hidden{position:absolute!important;left:-99999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;}
#s2e-plan-root .s2e-flex-date-panel-v93,
#s2e-plan-root .s2e-flex-date-panel{
  max-width:760px!important;
  margin-inline:auto!important;
  padding:18px!important;
  border-radius:26px!important;
}
#s2e-plan-root .s2e-date-parts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
#s2e-plan-root .s2e-date-part{
  min-height:56px!important;
  border-radius:18px!important;
  font-size:18px!important;
  font-weight:900!important;
  text-align:center!important;
}

.s2e-v185-overlay,
#s2e-v185-loader{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  background:rgba(10,32,74,.34)!important;
  backdrop-filter:blur(6px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:16px!important;
  direction:rtl!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
#s2e-v185-loader{z-index:2147483647!important;background:rgba(255,255,255,.72)!important;}
.s2e-v185-loader-box{
  background:#fff!important;
  border:2px solid #cfe4ff!important;
  border-radius:26px!important;
  padding:22px 26px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.18)!important;
  color:#073f96!important;
  font-size:20px!important;
  font-weight:900!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
.s2e-v185-loader-box span{width:24px!important;height:24px!important;border:4px solid #d7eaff!important;border-top-color:#0d55c6!important;border-radius:50%!important;animation:s2eV185Spin .8s linear infinite!important;}
@keyframes s2eV185Spin{to{transform:rotate(360deg)}}
.s2e-v185-gate-box,
.s2e-v185-course-box,
.s2e-v185-item-box{
  width:min(940px,calc(100vw - 24px))!important;
  max-height:calc(100vh - 28px)!important;
  overflow:auto!important;
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
  border:2px solid #b9d9ff!important;
  border-radius:30px!important;
  box-shadow:0 28px 90px rgba(4,25,70,.25)!important;
  padding:22px!important;
  position:relative!important;
}
.s2e-v185-gate-box{max-width:850px!important;text-align:center!important;}
.s2e-v185-close{
  position:sticky!important;
  top:0!important;
  float:left!important;
  border:0!important;
  background:#0d55c6!important;
  color:#fff!important;
  border-radius:16px!important;
  min-height:42px!important;
  padding:0 14px!important;
  font-size:15px!important;
  font-weight:900!important;
  cursor:pointer!important;
  z-index:2!important;
}
.s2e-v185-gate-kicker{
  display:inline-flex!important;
  padding:8px 14px!important;
  border-radius:999px!important;
  background:#eef6ff!important;
  color:#0d55c6!important;
  font-size:14px!important;
  font-weight:900!important;
  margin-bottom:8px!important;
}
.s2e-v185-gate-box h2,
.s2e-v185-course-head h2{
  margin:4px 0 8px!important;
  color:#073f96!important;
  font-size:38px!important;
  font-weight:900!important;
  line-height:1.2!important;
}
.s2e-v185-gate-sub,
.s2e-v185-course-head p{
  margin:0 auto 16px!important;
  color:#61758f!important;
  font-size:17px!important;
  line-height:1.8!important;
  font-weight:800!important;
}
.s2e-v185-plan-cards{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:14px 0!important;
}
.s2e-v185-plan-card{
  border:2px solid #cfe4ff!important;
  background:#fff!important;
  color:#073f96!important;
  border-radius:24px!important;
  min-height:128px!important;
  padding:14px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  cursor:pointer!important;
  box-shadow:0 10px 28px rgba(13,85,198,.07)!important;
}
.s2e-v185-plan-card span{font-size:28px!important;line-height:1!important;}
.s2e-v185-plan-card b{font-size:20px!important;font-weight:900!important;line-height:1.35!important;}
.s2e-v185-plan-card em{font-style:normal!important;font-size:13px!important;color:#61758f!important;font-weight:800!important;}
.s2e-v185-plan-card.active{
  border-color:#0d55c6!important;
  background:linear-gradient(180deg,#f6fbff,#ffffff)!important;
  box-shadow:0 0 0 3px rgba(13,85,198,.13),0 16px 34px rgba(13,85,198,.14)!important;
}
.s2e-v185-gate-panel{
  border:2px solid #dbeeff!important;
  border-radius:22px!important;
  background:#fff!important;
  padding:16px!important;
  margin-top:10px!important;
}
.s2e-v185-panel-note{font-size:18px!important;color:#073f96!important;font-weight:900!important;}
.s2e-v185-days-head{display:flex!important;justify-content:center!important;gap:10px!important;align-items:center!important;color:#073f96!important;margin-bottom:10px!important;font-size:18px!important;font-weight:900!important;}
.s2e-v185-days-head span{font-size:28px!important;color:#0d55c6!important;}
#s2e-v185-days-range{width:100%!important;accent-color:#0d55c6!important;height:34px!important;}
.s2e-v185-day-chips{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;margin-top:12px!important;}
.s2e-v185-day-chips button{min-height:44px!important;border-radius:16px!important;border:2px solid #cfe4ff!important;background:#fff!important;color:#073f96!important;font-size:18px!important;font-weight:900!important;}
.s2e-v185-day-chips button.active,.s2e-v185-day-chips button:hover{background:#0d55c6!important;color:#fff!important;border-color:#0d55c6!important;}
.s2e-v185-date-parts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-top:10px!important;}
.s2e-v185-date-parts label{display:flex!important;flex-direction:column!important;gap:6px!important;color:#073f96!important;font-weight:900!important;text-align:center!important;}
.s2e-v185-date-parts select{height:52px!important;border:2px solid #cfe4ff!important;border-radius:16px!important;background:#fff!important;color:#073f96!important;font-size:18px!important;font-weight:900!important;text-align:center!important;}
.s2e-v185-date-title,.s2e-v185-date-hint{color:#073f96!important;font-weight:900!important;font-size:17px!important;}
.s2e-v185-date-hint{color:#61758f!important;font-size:14px!important;margin-top:8px!important;}
.s2e-v185-gate-error{min-height:24px!important;margin:10px 0!important;color:#b42318!important;font-weight:900!important;font-size:15px!important;}
.s2e-v185-create-open{
  width:100%!important;
  min-height:58px!important;
  border:0!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#0b3d91,#1e90ff)!important;
  color:#fff!important;
  font-size:22px!important;
  font-weight:900!important;
  box-shadow:0 15px 34px rgba(13,85,198,.25)!important;
  cursor:pointer!important;
}
.s2e-v185-search{display:flex!important;align-items:center!important;gap:8px!important;border:2px solid #cfe4ff!important;border-radius:20px!important;padding:0 12px!important;background:#fff!important;margin:10px 0 14px!important;}
.s2e-v185-search input{width:100%!important;border:0!important;outline:0!important;min-height:50px!important;color:#073f96!important;font-size:17px!important;font-weight:900!important;background:transparent!important;}
.s2e-v185-course-section{border:1px solid #dbeeff!important;border-radius:20px!important;margin:10px 0!important;background:#fff!important;overflow:hidden!important;}
.s2e-v185-course-section summary{list-style:none!important;cursor:pointer!important;display:flex!important;justify-content:space-between!important;align-items:center!important;padding:15px!important;color:#073f96!important;font-size:20px!important;font-weight:900!important;background:#f7fbff!important;}
.s2e-v185-course-section summary::-webkit-details-marker{display:none!important;}
.s2e-v185-course-section summary b{background:#0d55c6!important;color:#fff!important;border-radius:999px!important;padding:4px 10px!important;font-size:14px!important;}
.s2e-v185-course-section>div{padding:10px!important;}
.s2e-v185-course-card{width:100%!important;text-align:right!important;border:1px solid #dbeeff!important;border-radius:18px!important;background:#fff!important;padding:13px 14px!important;margin:8px 0!important;color:#073f96!important;cursor:pointer!important;display:block!important;}
.s2e-v185-course-card strong{display:block!important;font-size:17px!important;font-weight:900!important;line-height:1.45!important;}
.s2e-v185-course-card strong span{display:block!important;color:#61758f!important;font-size:13px!important;margin-top:3px!important;}
.s2e-v185-course-card small{display:block!important;color:#61758f!important;font-size:13px!important;font-weight:800!important;margin-top:5px!important;}
.s2e-v185-course-card:hover{border-color:#0d55c6!important;background:#f7fbff!important;}
.s2e-v185-empty,.s2e-v185-muted-note{padding:16px!important;border-radius:18px!important;background:#f7fbff!important;border:1px solid #dbeeff!important;color:#61758f!important;font-weight:900!important;text-align:center!important;}
.s2e-v185-item-title{font-size:26px!important;font-weight:900!important;color:#073f96!important;text-align:center!important;margin:4px 0 16px!important;line-height:1.4!important;}
.s2e-v185-item-title span{display:block!important;color:#61758f!important;font-size:15px!important;margin-top:4px!important;}
.s2e-v185-action-section{border:2px solid #dbeeff!important;border-radius:24px!important;background:#fff!important;padding:14px!important;margin:12px 0!important;}
.s2e-v185-section-title{text-align:center!important;margin-bottom:10px!important;}
.s2e-v185-section-title b{display:block!important;color:#073f96!important;font-size:22px!important;font-weight:900!important;}
.s2e-v185-section-title span{display:block!important;color:#61758f!important;font-size:13px!important;font-weight:800!important;}
.s2e-v185-action-link{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;width:100%!important;min-height:54px!important;border-radius:18px!important;background:linear-gradient(135deg,#0b3d91,#1e90ff)!important;color:#fff!important;text-decoration:none!important;font-size:18px!important;font-weight:900!important;margin:8px 0!important;}
@media(max-width:760px){
  #s2e-v185-stable-tools{width:calc(100% - 20px)!important;gap:8px!important;margin:8px auto 12px!important;}
  #s2e-v185-stable-tools button{min-height:50px!important;border-radius:18px!important;font-size:17px!important;}
  #s2e-plan-root .s2e-plan-topbox{width:calc(100% - 14px)!important;margin-inline:auto!important;padding:16px 12px!important;border-radius:26px!important;}
  #s2e-plan-root .s2e-plan-title{font-size:34px!important;line-height:1.25!important;}
  #s2e-plan-root .s2e-plan-sub{font-size:15px!important;padding:11px 12px!important;}
  #s2e-plan-root .s2e-plan-tabs-setup{grid-template-columns:1fr!important;gap:10px!important;}
  #s2e-plan-root .s2e-plan-tab{min-height:96px!important;border-radius:22px!important;padding:12px!important;}
  #s2e-plan-root .s2e-plan-tab-main{font-size:23px!important;line-height:1.25!important;}
  #s2e-plan-root .s2e-selected-plan-title{font-size:24px!important;line-height:1.35!important;}
  #s2e-plan-root .s2e-v185-inline-days{padding:14px!important;border-radius:22px!important;}
  #s2e-plan-root .s2e-v185-inline-days-top{display:block!important;text-align:center!important;}
  #s2e-plan-root .s2e-v185-inline-days-top b{display:block!important;margin-top:5px!important;}
  #s2e-plan-root .s2e-v185-inline-chips{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;}
  #s2e-plan-root .s2e-v185-inline-chips button{min-height:42px!important;font-size:16px!important;border-radius:14px!important;}
  #s2e-plan-root .s2e-date-parts{grid-template-columns:1fr!important;}
  .s2e-v185-overlay{align-items:flex-start!important;padding:8px!important;overflow:auto!important;}
  .s2e-v185-gate-box,.s2e-v185-course-box,.s2e-v185-item-box{width:100%!important;max-height:none!important;min-height:auto!important;border-radius:24px!important;padding:14px!important;margin:8px 0!important;}
  .s2e-v185-gate-box h2,.s2e-v185-course-head h2{font-size:30px!important;}
  .s2e-v185-gate-sub,.s2e-v185-course-head p{font-size:14px!important;line-height:1.7!important;}
  .s2e-v185-plan-cards{grid-template-columns:1fr!important;gap:8px!important;}
  .s2e-v185-plan-card{min-height:84px!important;border-radius:20px!important;display:grid!important;grid-template-columns:44px 1fr!important;text-align:right!important;align-items:center!important;justify-items:start!important;}
  .s2e-v185-plan-card span{grid-row:1/3!important;}
  .s2e-v185-plan-card b{font-size:20px!important;}
  .s2e-v185-plan-card em{font-size:12px!important;}
  .s2e-v185-date-parts{grid-template-columns:1fr!important;}
  .s2e-v185-day-chips{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;}
  .s2e-v185-create-open{font-size:19px!important;min-height:54px!important;}
  .s2e-v185-close{min-height:38px!important;font-size:13px!important;border-radius:13px!important;}
  .s2e-v185-course-section summary{font-size:18px!important;padding:13px!important;}
  .s2e-v185-course-card strong{font-size:16px!important;}
}

/* =========================================================
   STEP2ENGLISH v186 SAFE FIX CSS
========================================================= */
html,body{max-width:100%!important;overflow-x:hidden!important;}
body:not(.s2e-no-scroll){width:auto!important;position:static!important;left:auto!important;right:auto!important;}

/* Restore old number-of-days picker: v185 slider is hidden, original scroll list returns */
#s2e-plan-root .s2e-v185-inline-days{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
#s2e-plan-root .s2e-v185-old-days-hidden,
#s2e-plan-root .s2e-flex-days-scroll-card.s2e-v185-old-days-hidden{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  width:100%!important;
  height:auto!important;
  max-height:300px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  opacity:1!important;
  pointer-events:auto!important;
  visibility:visible!important;
  display:grid!important;
}
#s2e-plan-root .s2e-flex-days-scroll-card{max-height:300px!important;overflow-y:auto!important;overflow-x:hidden!important;}
@media(max-width:768px){#s2e-plan-root .s2e-flex-days-scroll-card{max-height:260px!important;}}

/* Keep start button stable */
#s2e-plan-root #s2e-plan-start-now,
#s2e-plan-root .s2e-plan-start-btn,
#s2e-plan-root .s2e-plan-start-btn-strong{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* v186 plan gate: old/easy mobile style */
.s2e-v186-gate-box .s2e-v86-gate-option small{display:block!important;font-size:13px!important;font-weight:800!important;opacity:.85!important;margin-top:3px!important;}
.s2e-v186-gate-box .s2e-v86-days-scroll,
.s2e-v186-gate-box .s2e-v100-days-scroll{
  max-height:310px!important;
  overflow:auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px!important;
  background:#f7fbff!important;
  border:1px solid #cfe4ff!important;
  border-radius:18px!important;
}
.s2e-v186-gate-box .s2e-v86-day-choice{
  min-height:50px!important;
  border-radius:16px!important;
  border:2px solid #cfe4ff!important;
  background:#fff!important;
  color:#073f96!important;
  font-size:18px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v186-gate-box .s2e-v86-day-choice.active,
.s2e-v186-gate-box .s2e-v86-day-choice:hover{background:#0d55c6!important;color:#fff!important;border-color:#0d55c6!important;}
.s2e-v186-date-box{padding:12px!important;background:#f7fbff!important;border:1px solid #cfe4ff!important;border-radius:18px!important;display:flex!important;flex-direction:column!important;gap:10px!important;}
.s2e-v186-date-box label{color:#073f96!important;font-size:17px!important;font-weight:900!important;text-align:center!important;}
.s2e-v186-date-box input[type="date"]{width:100%!important;min-height:54px!important;border-radius:16px!important;border:2px solid #cfe4ff!important;background:#fff!important;color:#073f96!important;font-size:18px!important;font-weight:900!important;text-align:center!important;font-family:Tahoma,Arial,sans-serif!important;padding:0 12px!important;}
.s2e-v186-date-start{width:100%!important;min-height:54px!important;border:0!important;border-radius:16px!important;background:linear-gradient(135deg,#0b3d91,#1e90ff)!important;color:#fff!important;font-size:18px!important;font-weight:900!important;font-family:Tahoma,Arial,sans-serif!important;}
@media(max-width:620px){
  .s2e-v186-gate-box{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 18px)!important;border-radius:22px!important;padding:14px!important;}
  .s2e-v186-gate-box .s2e-v86-gate-title{font-size:25px!important;line-height:1.3!important;}
  .s2e-v186-gate-box .s2e-v86-gate-sub{font-size:14px!important;line-height:1.7!important;}
  .s2e-v186-gate-box .s2e-v86-days-scroll{max-height:280px!important;gap:8px!important;padding:10px!important;}
  .s2e-v186-gate-box .s2e-v86-day-choice{min-height:46px!important;font-size:16px!important;}
}

/* Restore/lock the leaks screen shape */
.s2e-v186-leaks-overlay,
.s2e-v173-leaks-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:2147483620!important;
  background:rgba(7,25,61,.48)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:12px!important;
  box-sizing:border-box!important;
}
.s2e-v173-app{
  box-sizing:border-box!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.s2e-v173-content{flex:1 1 auto!important;overflow:auto!important;overscroll-behavior:contain!important;}
.s2e-v173-header{flex:0 0 auto!important;}
.s2e-v173-footer{flex:0 0 auto!important;}
.s2e-v173-app.s2e-v173-has-back .s2e-v173-footer{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden!important;}
.s2e-v173-app.s2e-v173-no-back .s2e-v173-footer{display:flex!important;visibility:visible!important;height:auto!important;min-height:auto!important;}
.s2e-v173-app.s2e-v186-send-mode .s2e-v173-content{display:none!important;}
.s2e-v173-app.s2e-v186-send-mode .s2e-v173-footer{display:flex!important;visibility:visible!important;flex:1 1 auto!important;justify-content:center!important;border-top:0!important;}
.s2e-v173-app.s2e-v186-send-mode .s2e-v173-leak-text{min-height:150px!important;}
.s2e-v173-close,.s2e-v173-back,.s2e-v173-send{touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;}
.s2e-v173-leak-text{max-width:100%!important;box-sizing:border-box!important;}
@media(max-width:760px){
  .s2e-v186-leaks-overlay,.s2e-v173-leaks-overlay{padding:0!important;align-items:stretch!important;justify-content:stretch!important;overflow:hidden!important;}
  .s2e-v173-app{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;}
  .s2e-v173-header{min-height:92px!important;padding:14px 12px!important;grid-template-columns:52px 1fr 52px!important;}
  .s2e-v173-title{font-size:20px!important;line-height:1.25!important;white-space:normal!important;}
  .s2e-v173-content{padding:14px!important;}
  .s2e-v173-section-card{min-height:104px!important;padding:16px!important;margin-bottom:12px!important;}
  .s2e-v173-footer{padding:12px 16px calc(16px + env(safe-area-inset-bottom))!important;gap:10px!important;}
  .s2e-v173-leak-text{min-height:76px!important;font-size:16px!important;}
  .s2e-v173-send{min-height:56px!important;font-size:18px!important;border-radius:16px!important;}
  .s2e-v173-app.s2e-v186-send-mode .s2e-v173-leak-text{min-height:180px!important;}
}


/* =========================================================
   STEP2ENGLISH v187 STABILITY CSS
   يمنع اهتزاز كارت اختيار الخطة ويثبت زر ابدأ على الموبايل
========================================================= */
html,body{
  max-width:100%!important;
  overflow-x:hidden!important;
  touch-action:pan-y!important;
}
#s2e-plan-root,
#s2e-plan-root *{
  -webkit-tap-highlight-color:transparent!important;
}
#s2e-plan-root .s2e-setup-only,
#s2e-plan-root .s2e-setup-box-final,
#s2e-plan-root .s2e-plan-tabs,
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tab,
#s2e-plan-root .s2e-selected-plan-card,
#s2e-plan-root .s2e-flex-wrap,
#s2e-plan-root .s2e-flex-panel,
#s2e-plan-root .s2e-flex-days-scroll-card{
  transform:none!important;
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important;
  will-change:auto!important;
}
#s2e-plan-root .s2e-plan-tab,
#s2e-plan-root .s2e-flex-day-btn,
#s2e-plan-root #s2e-plan-start-now,
#s2e-plan-root .s2e-plan-start-btn,
.s2e-v86-gate-option,
.s2e-v86-day-choice,
.s2e-v187-day-choice,
.s2e-v187-date-start,
.s2e-v186-date-start{
  touch-action:manipulation!important;
  cursor:pointer!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
html body #s2e-plan-root .s2e-start-bottom-wrap,
html body #s2e-plan-root .s2e-v187-start-wrap,
html body #s2e-plan-root .s2e-setup-only .s2e-start-bottom-wrap,
html body #s2e-plan-root .s2e-setup-box-final .s2e-start-bottom-wrap,
html body #s2e-plan-root:not(.s2e-v145-has-plan-selection) .s2e-start-bottom-wrap,
html body #s2e-plan-root .s2e-setup-only:not(.s2e-has-selected-plan) .s2e-start-bottom-wrap,
html body #s2e-plan-root .s2e-setup-box-final:not(.s2e-has-selected-plan) .s2e-start-bottom-wrap{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  height:auto!important;
  min-height:58px!important;
  margin:14px auto 0!important;
  padding:0!important;
  overflow:visible!important;
  position:relative!important;
}
html body #s2e-plan-root #s2e-plan-start-now,
html body #s2e-plan-root .s2e-plan-start-btn,
html body #s2e-plan-root .s2e-plan-start-btn-strong{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(520px,100%)!important;
  min-height:58px!important;
  border-radius:999px!important;
  transform:none!important;
  animation:none!important;
  transition:none!important;
}
#s2e-plan-root .s2e-flex-days-scroll-card,
#s2e-plan-root .s2e-flex-days-grid{
  overscroll-behavior:contain!important;
}
#s2e-plan-root .s2e-v185-inline-days{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
#s2e-plan-root .s2e-flex-days-scroll-card.s2e-v185-old-days-hidden{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:relative!important;
  width:100%!important;
  height:auto!important;
  max-height:300px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
/* Date selects in the plan gate */
.s2e-v187-date-parts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
}
.s2e-v187-date-parts select{
  min-height:52px!important;
  border-radius:16px!important;
  border:2px solid #cfe4ff!important;
  background:#fff!important;
  color:#073f96!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:17px!important;
  font-weight:900!important;
  text-align:center!important;
  padding:0 8px!important;
}
.s2e-v187-days-scroll{
  max-height:300px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px!important;
  background:#f7fbff!important;
  border:1px solid #cfe4ff!important;
  border-radius:18px!important;
  overscroll-behavior:contain!important;
}
.s2e-v187-day-choice{
  min-height:50px!important;
  border-radius:16px!important;
  border:2px solid #cfe4ff!important;
  background:#fff!important;
  color:#073f96!important;
  font-size:18px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
.s2e-v187-day-choice.active,
.s2e-v187-day-choice:hover{
  background:#0d55c6!important;
  color:#fff!important;
  border-color:#0d55c6!important;
}
.s2e-v187-gate-box .s2e-v86-gate-option small{
  display:block!important;
  font-size:13px!important;
  margin-top:4px!important;
  opacity:.85!important;
}
@media(max-width:620px){
  #s2e-plan-root .s2e-setup-only,
  #s2e-plan-root .s2e-setup-box-final{
    overflow:visible!important;
    max-height:none!important;
  }
  #s2e-plan-root .s2e-flex-days-scroll-card{
    max-height:260px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  #s2e-plan-root .s2e-plan-tab,
  #s2e-plan-root .s2e-flex-day-btn{
    min-height:54px!important;
  }
  .s2e-v187-gate-box{
    width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 18px)!important;
    overflow:auto!important;
    border-radius:22px!important;
    padding:14px!important;
  }
  .s2e-v187-date-parts{
    grid-template-columns:1fr!important;
  }
  .s2e-v187-days-scroll{
    max-height:280px!important;
    gap:8px!important;
    padding:10px!important;
  }
  .s2e-v187-day-choice{
    min-height:46px!important;
    font-size:16px!important;
  }
}


/* =========================================================
   STEP2ENGLISH v188 CONFLICT GUARD CSS
   يمنع التكرار والاهتزاز ويكبر خط فلاتر التسريبات
========================================================= */
html,body{max-width:100%!important;overflow-x:hidden!important;}
#s2e-plan-root .s2e-v188-hidden-old-tools,
#s2e-plan-root .s2e-v172-tools,
#s2e-plan-root .s2e-v173-tools,
#s2e-plan-root .s2e-v86-tools,
#s2e-plan-root .s2e-search-course-actions,
#s2e-plan-root .s2e-v145-main-tools{
  display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;
}
#s2e-v185-stable-tools.s2e-v188-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;width:min(900px,calc(100% - 28px))!important;margin:12px auto 18px!important;transform:none!important;animation:none!important;transition:none!important;will-change:auto!important;}
#s2e-v185-stable-tools.s2e-v188-tools button{transform:none!important;animation:none!important;transition:background .15s ease,border-color .15s ease!important;touch-action:manipulation!important;}
#s2e-v185-stable-tools.s2e-v188-tools button:hover{transform:none!important;}
#s2e-plan-root,
#s2e-plan-root .s2e-setup-only,
#s2e-plan-root .s2e-setup-box-final,
#s2e-plan-root .s2e-plan-tabs,
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tab,
#s2e-plan-root .s2e-selected-plan-card,
#s2e-plan-root .s2e-flex-wrap,
#s2e-plan-root .s2e-flex-panel,
#s2e-plan-root .s2e-flex-days-scroll-card{transform:none!important;animation:none!important;transition:none!important;will-change:auto!important;scroll-behavior:auto!important;}
#s2e-plan-root #s2e-plan-start-now,
#s2e-plan-root .s2e-plan-start-btn,
#s2e-plan-root .s2e-plan-start-btn-strong{display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;align-items:center!important;justify-content:center!important;width:min(520px,100%)!important;min-height:58px!important;border-radius:999px!important;transform:none!important;animation:none!important;transition:none!important;touch-action:manipulation!important;}
#s2e-plan-root .s2e-start-bottom-wrap,#s2e-plan-root .s2e-v188-start-wrap{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;justify-content:center!important;align-items:center!important;width:100%!important;margin:14px auto 0!important;}
.s2e-v188-gate-box .s2e-v86-gate-sub{font-size:16px!important;line-height:1.8!important;color:#61758f!important;font-weight:900!important;}
.s2e-v188-gate-box .s2e-v86-gate-option small{display:block!important;font-size:13px!important;margin-top:4px!important;opacity:.85!important;}
.s2e-v188-days-scroll{max-height:300px!important;overflow-y:auto!important;overflow-x:hidden!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:12px!important;background:#f7fbff!important;border:1px solid #cfe4ff!important;border-radius:18px!important;overscroll-behavior:contain!important;}
.s2e-v188-day-choice{min-height:50px!important;border-radius:16px!important;border:2px solid #cfe4ff!important;background:#fff!important;color:#073f96!important;font-size:18px!important;font-weight:900!important;font-family:Tahoma,Arial,sans-serif!important;touch-action:manipulation!important;}
.s2e-v188-day-choice.active,.s2e-v188-day-choice:hover{background:#0d55c6!important;color:#fff!important;border-color:#0d55c6!important;}
.s2e-v188-date-box{padding:12px!important;background:#f7fbff!important;border:1px solid #cfe4ff!important;border-radius:18px!important;display:flex!important;flex-direction:column!important;gap:10px!important;}
.s2e-v188-date-box label{color:#073f96!important;font-size:17px!important;font-weight:900!important;text-align:center!important;}
.s2e-v188-date-parts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;}
.s2e-v188-date-parts select{min-height:52px!important;border-radius:16px!important;border:2px solid #cfe4ff!important;background:#fff!important;color:#073f96!important;font-family:Tahoma,Arial,sans-serif!important;font-size:17px!important;font-weight:900!important;text-align:center!important;padding:0 8px!important;}
.s2e-v188-date-start{width:100%!important;min-height:54px!important;border:0!important;border-radius:16px!important;background:linear-gradient(135deg,#0b3d91,#1e90ff)!important;color:#fff!important;font-size:18px!important;font-weight:900!important;font-family:Tahoma,Arial,sans-serif!important;touch-action:manipulation!important;}
/* Bigger filter text in leaks screen */
.s2e-v173-pill{min-height:68px!important;padding:10px 8px!important;}
.s2e-v173-pill-main{font-size:18px!important;line-height:1.2!important;font-weight:900!important;}
.s2e-v173-pill-sub{font-size:12px!important;line-height:1.2!important;font-weight:900!important;white-space:normal!important;}
.s2e-v173-top-btn{font-size:20px!important;min-height:58px!important;font-weight:900!important;}
.s2e-v173-search-input{font-size:18px!important;min-height:58px!important;}
@media(max-width:760px){
  #s2e-v185-stable-tools.s2e-v188-tools{width:calc(100% - 20px)!important;gap:8px!important;margin:8px auto 12px!important;}
  #s2e-v185-stable-tools.s2e-v188-tools button{min-height:50px!important;border-radius:18px!important;font-size:17px!important;}
  .s2e-v188-gate-box{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 18px)!important;overflow:auto!important;border-radius:22px!important;padding:14px!important;}
  .s2e-v188-date-parts{grid-template-columns:1fr!important;}
  .s2e-v188-days-scroll{max-height:280px!important;gap:8px!important;padding:10px!important;}
  .s2e-v188-day-choice{min-height:46px!important;font-size:16px!important;}
  .s2e-v173-filters{gap:8px!important;}
  .s2e-v173-pill{min-height:64px!important;padding:9px 6px!important;}
  .s2e-v173-pill-main{font-size:16px!important;}
  .s2e-v173-pill-sub{font-size:11px!important;}
  .s2e-v173-top-btn{font-size:18px!important;min-height:56px!important;}
  .s2e-v173-search-input{font-size:17px!important;min-height:56px!important;}
}

/* =========================================================
   STEP2ENGLISH v190 COURSE CONTENT HEADER + ANTI SHAKE CSS
========================================================= */
html, body{overscroll-behavior-y:none!important;}
#s2e-plan-root.s2e-v190-no-shake,
#s2e-plan-root.s2e-v190-no-shake .s2e-setup-only,
#s2e-plan-root.s2e-v190-no-shake .s2e-setup-box-final,
#s2e-plan-root.s2e-v190-no-shake .s2e-days-wrap,
#s2e-plan-root.s2e-v190-no-shake .s2e-plan-running-box,
#s2e-plan-root.s2e-v190-no-shake .s2e-day-card,
#s2e-plan-root.s2e-v190-no-shake .s2e-selected-plan-card,
#s2e-plan-root.s2e-v190-no-shake .s2e-flex-wrap{
  transform:none!important;
  animation:none!important;
  will-change:auto!important;
  transition:border-color .15s ease, background-color .15s ease, box-shadow .15s ease!important;
}
#s2e-plan-root .s2e-v172-tools,
#s2e-plan-root .s2e-v173-tools,
#s2e-plan-root .s2e-v86-tools,
#s2e-plan-root .s2e-search-course-actions,
#s2e-plan-root .s2e-v145-main-tools{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
#s2e-v185-course-overlay.s2e-v185-overlay{
  padding:0!important;
  align-items:stretch!important;
  justify-content:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
#s2e-v185-course-overlay .s2e-v185-course-box{
  width:min(980px,100vw)!important;
  max-width:100vw!important;
  height:100dvh!important;
  max-height:100dvh!important;
  margin:0 auto!important;
  border-radius:0!important;
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
  background:#fff!important;
}
#s2e-v185-course-overlay .s2e-v185-close:not(.s2e-v190-course-close){display:none!important;}
#s2e-v185-course-overlay .s2e-v185-course-head{display:none!important;}
#s2e-v185-course-overlay .s2e-v190-course-toolbar{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:30!important;
  display:grid!important;
  grid-template-columns:120px 1fr 120px!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:74px!important;
  padding:12px 16px!important;
  box-sizing:border-box!important;
  background:linear-gradient(135deg,#0d4aa4 0%,#1e90ff 100%)!important;
  box-shadow:0 8px 22px rgba(13,85,198,.18)!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back,
#s2e-v185-course-overlay .s2e-v190-course-close{
  min-height:52px!important;
  border:0!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#073f96!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:18px!important;
  font-weight:900!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  box-shadow:0 8px 18px rgba(0,0,0,.12)!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back{
  grid-column:1!important;
  justify-self:start!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
#s2e-v185-course-overlay .s2e-v190-course-box.s2e-v190-course-has-back .s2e-v190-course-back{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#s2e-v185-course-overlay .s2e-v190-course-close{
  grid-column:3!important;
  justify-self:end!important;
}
#s2e-v185-course-overlay .s2e-v185-search{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:20!important;
  margin:0!important;
  padding:12px 16px!important;
  border-radius:0!important;
  border:0!important;
  border-bottom:1px solid #dbeeff!important;
  background:#f7fbff!important;
  box-sizing:border-box!important;
}
#s2e-v185-course-overlay .s2e-v185-search input{
  width:100%!important;
  min-height:58px!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
  font-size:19px!important;
}
#s2e-v185-course-overlay .s2e-v185-course-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding:12px 18px 22px!important;
  box-sizing:border-box!important;
}
#s2e-v185-course-overlay .s2e-v185-course-section{scroll-margin-top:12px!important;}
#s2e-v185-course-overlay .s2e-v185-course-section > summary{
  position:sticky!important;
  top:0!important;
  z-index:4!important;
}
#s2e-v185-course-overlay .s2e-v185-course-section[open] > summary{
  border-bottom:1px solid #dbeeff!important;
  background:linear-gradient(180deg,#f7fbff,#fff)!important;
}
@media(max-width:760px){
  #s2e-v185-course-overlay .s2e-v190-course-toolbar{
    grid-template-columns:96px 1fr 96px!important;
    min-height:66px!important;
    padding:9px 10px!important;
    gap:6px!important;
  }
  #s2e-v185-course-overlay .s2e-v190-course-back,
  #s2e-v185-course-overlay .s2e-v190-course-close{
    min-height:48px!important;
    border-radius:16px!important;
    font-size:16px!important;
  }
  #s2e-v185-course-overlay .s2e-v185-search{padding:9px 10px!important;}
  #s2e-v185-course-overlay .s2e-v185-search input{min-height:54px!important;font-size:17px!important;}
  #s2e-v185-course-overlay .s2e-v185-course-body{padding:10px 10px 18px!important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v190.4
   Unified clean popup for plan/course/leaks.
========================================================= */
#s2e-item-actions-popup.s2e-v1904-action-popup{
  z-index:2147483632!important;
  position:fixed!important;
  inset:0!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:22px 10px!important;
  background:rgba(15,23,42,.55)!important;
  overflow:auto!important;
  direction:rtl!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-modal-box{
  width:min(900px,calc(100vw - 24px))!important;
  max-height:none!important;
  min-height:auto!important;
  margin:0 auto 24px!important;
  padding:14px 18px 22px!important;
  border-radius:26px!important;
  background:#fff!important;
  border:1px solid #dbeafe!important;
  box-shadow:0 28px 70px rgba(2,23,73,.28)!important;
  overflow:visible!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-close-btn{
  position:sticky!important;
  top:8px!important;
  right:auto!important;
  left:10px!important;
  margin:0 auto 8px 0!important;
  min-width:104px!important;
  min-height:46px!important;
  border:0!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#0b57c7 0%,#0a45a8 100%)!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
  box-shadow:0 12px 24px rgba(10,69,168,.22)!important;
  z-index:20!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title{
  position:relative!important;
  top:auto!important;
  width:100%!important;
  margin:4px auto 18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-align:center!important;
  color:#073f91!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title .ar{
  display:block!important;
  color:#073f91!important;
  font-size:32px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title .en{
  display:block!important;
  color:#64748b!important;
  font-size:19px!important;
  line-height:1.25!important;
  font-weight:900!important;
  margin-top:4px!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-body{
  display:block!important;
  padding:0!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-section{
  border:2px solid #dbeeff!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  border-radius:22px!important;
  padding:18px!important;
  margin:14px 0!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-section-title{
  text-align:center!important;
  margin:0 0 14px!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-section-title b{
  display:block!important;
  color:#073f91!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:27px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-section-title span{
  display:block!important;
  color:#64748b!important;
  font-size:18px!important;
  font-weight:900!important;
  margin-top:4px!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-action-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-action-btn{
  width:100%!important;
  min-height:68px!important;
  border:0!important;
  border-radius:19px!important;
  background:linear-gradient(135deg,#0d3f9c 0%,#1e91ff 100%)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  font-family:Tahoma,Arial,sans-serif!important;
  text-align:center!important;
  cursor:pointer!important;
  box-shadow:0 12px 28px rgba(13,91,198,.22)!important;
  transition:transform .12s ease, filter .12s ease!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-action-btn:active{
  transform:scale(.985)!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-action-btn.done{
  filter:saturate(1.05) brightness(.96)!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-icon{
  font-size:25px!important;
  line-height:1!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-txt{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-txt strong{
  color:#fff!important;
  font-size:24px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-txt em{
  display:block!important;
  font-style:normal!important;
  color:rgba(255,255,255,.88)!important;
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:900!important;
  margin-top:2px!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-note{
  border:1.5px solid #dbeafe!important;
  border-radius:18px!important;
  background:#f8fbff!important;
  color:#073f91!important;
  padding:16px!important;
  text-align:center!important;
  font-size:17px!important;
  line-height:1.8!important;
  font-weight:900!important;
  margin:10px 0!important;
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-action-done{
  display:none!important;
}

#s2e-v1904-course-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:2147483631!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px 10px!important;
  background:rgba(15,23,42,.55)!important;
  overflow:auto!important;
  direction:rtl!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-box{
  width:min(940px,calc(100vw - 20px))!important;
  background:#f6f9fd!important;
  border-radius:26px!important;
  overflow:hidden!important;
  box-shadow:0 28px 70px rgba(2,23,73,.28)!important;
  border:1px solid #dbeafe!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-head{
  min-height:76px!important;
  background:#0c2f70!important;
  color:#fff!important;
  display:grid!important;
  grid-template-columns:120px 1fr 120px!important;
  align-items:center!important;
  text-align:center!important;
  font-family:Tahoma,Arial,sans-serif!important;
  font-size:24px!important;
  font-weight:900!important;
  padding:10px!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-close{
  grid-column:1!important;
  justify-self:start!important;
  min-width:100px!important;
  min-height:44px!important;
  border:0!important;
  border-radius:15px!important;
  background:#1e4b8f!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:15px!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-head>div{
  grid-column:2!important;
}
#s2e-v1904-course-overlay .s2e-v1904-search{
  margin:14px!important;
  min-height:58px!important;
  border:1.5px solid #dbeafe!important;
  border-radius:18px!important;
  background:#fff!important;
  display:grid!important;
  grid-template-columns:42px 1fr 42px!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 12px!important;
}
#s2e-v1904-course-overlay .s2e-v1904-search input{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  min-height:54px!important;
  width:100%!important;
  color:#073f91!important;
  font-size:18px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
  text-align:right!important;
}
#s2e-v1904-course-overlay .s2e-v1904-search button{
  border:0!important;
  background:#eef7ff!important;
  color:#073f91!important;
  border-radius:12px!important;
  width:34px!important;
  height:34px!important;
  font-size:24px!important;
  font-weight:900!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-body{
  padding:0 14px 18px!important;
}
#s2e-v1904-course-overlay .s2e-v1904-acc{
  border:1.5px solid #dbeafe!important;
  border-radius:18px!important;
  background:#fff!important;
  margin:10px 0!important;
  overflow:hidden!important;
}
#s2e-v1904-course-overlay .s2e-v1904-acc summary{
  list-style:none!important;
  cursor:pointer!important;
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:12px 16px!important;
  color:#073f91!important;
  font-size:20px!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
  background:#f8fbff!important;
}
#s2e-v1904-course-overlay .s2e-v1904-acc summary::-webkit-details-marker{display:none!important;}
#s2e-v1904-course-overlay .s2e-v1904-acc summary b{
  background:#0d55c6!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:4px 11px!important;
  font-size:14px!important;
}
#s2e-v1904-course-overlay .s2e-v1904-acc-body{
  padding:10px!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-card{
  width:100%!important;
  display:block!important;
  text-align:right!important;
  border:1px solid #dbeafe!important;
  border-right:6px solid #0b3d91!important;
  border-radius:18px!important;
  background:#fff!important;
  padding:14px 16px!important;
  margin:8px 0!important;
  cursor:pointer!important;
  font-family:Tahoma,Arial,sans-serif!important;
  color:#073f91!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-card strong{
  display:block!important;
  font-size:19px!important;
  line-height:1.35!important;
  font-weight:900!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-card span,
#s2e-v1904-course-overlay .s2e-v1904-course-card em{
  display:block!important;
  font-size:13px!important;
  line-height:1.35!important;
  color:#64748b!important;
  font-weight:900!important;
  font-style:normal!important;
  margin-top:4px!important;
}
#s2e-v1904-course-overlay .s2e-v1904-results-title,
#s2e-v1904-course-overlay .s2e-v1904-empty{
  padding:16px!important;
  border-radius:18px!important;
  color:#64748b!important;
  background:#fff!important;
  border:1px solid #dbeafe!important;
  text-align:center!important;
  font-weight:900!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
@media(max-width:700px){
  #s2e-item-actions-popup.s2e-v1904-action-popup{padding:8px!important;}
  #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-modal-box{width:calc(100vw - 16px)!important;border-radius:22px!important;padding:12px 12px 18px!important;}
  #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title .ar{font-size:27px!important;}
  #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title .en{font-size:16px!important;}
  #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-section{padding:14px!important;border-radius:20px!important;}
  #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-section-title b{font-size:23px!important;}
  #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-action-btn{min-height:64px!important;border-radius:18px!important;}
  #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-txt strong{font-size:21px!important;}
  #s2e-v1904-course-overlay{padding:0!important;}
  #s2e-v1904-course-overlay .s2e-v1904-course-box{width:100vw!important;min-height:100dvh!important;border-radius:0!important;}
  #s2e-v1904-course-overlay .s2e-v1904-course-head{grid-template-columns:100px 1fr 100px!important;font-size:22px!important;}
  #s2e-v1904-course-overlay .s2e-v1904-course-close{min-width:86px!important;font-size:14px!important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v190.6 STABILITY + HEADER FIX
========================================================= */
html, body{overscroll-behavior-y:none!important;}
#s2e-plan-root.s2e-v1906-stable,
#s2e-plan-root.s2e-v1906-stable .s2e-setup-only,
#s2e-plan-root.s2e-v1906-stable .s2e-setup-box-final,
#s2e-plan-root.s2e-v1906-stable .s2e-days-wrap,
#s2e-plan-root.s2e-v1906-stable .s2e-plan-running-box,
#s2e-plan-root.s2e-v1906-stable .s2e-day-card,
#s2e-plan-root.s2e-v1906-stable .s2e-selected-plan-card,
#s2e-plan-root.s2e-v1906-stable .s2e-flex-wrap,
#s2e-plan-root.s2e-v1906-stable .s2e-flex-days-scroll-card{
  animation:none!important;
  transform:none!important;
  will-change:auto!important;
}
#s2e-plan-root.s2e-v1906-stable .s2e-flex-attention{
  animation:none!important;
  transform:none!important;
}
#s2e-plan-root.s2e-v1906-stable .s2e-flex-day-btn.active{
  transform:none!important;
}

/* close/back: x on the right, arrow on the left, no words */
#s2e-v185-course-overlay .s2e-v190-course-toolbar{
  direction:ltr!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back,
#s2e-v185-course-overlay .s2e-v190-course-close,
#s2e-v1904-course-overlay .s2e-v1904-course-close,
#s2e-item-actions-popup .s2e-close-btn{
  font-size:0!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back::before{
  content:"←"!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
}
#s2e-v185-course-overlay .s2e-v190-course-close::before,
#s2e-v1904-course-overlay .s2e-v1904-course-close::before,
#s2e-item-actions-popup .s2e-close-btn::before{
  content:"×"!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back{grid-column:1!important;justify-self:start!important;}
#s2e-v185-course-overlay .s2e-v190-course-close{grid-column:3!important;justify-self:end!important;}

/* content list must not jump under the fixed header/search */
#s2e-v1904-course-overlay .s2e-v1904-course-body,
#s2e-v185-course-overlay .s2e-v185-course-body{
  scroll-behavior:auto!important;
  overscroll-behavior:contain!important;
}
#s2e-v1904-course-overlay .s2e-v1904-acc,
#s2e-v185-course-overlay .s2e-v185-course-section{
  scroll-margin-top:14px!important;
}

/* v190.6b: old-layer close buttons, x only */
#s2e-plan-root ~ .s2e-overlay .s2e-close-btn,
.s2e-v86-overlay .s2e-v86-close,
#s2e-v185-course-overlay .s2e-v185-close,
.s2e-v71-close,
.s2e-v72-generic-close,
.s2e-v71-info-close{
  font-size:0!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#s2e-plan-root ~ .s2e-overlay .s2e-close-btn::before,
.s2e-v86-overlay .s2e-v86-close::before,
#s2e-v185-course-overlay .s2e-v185-close::before,
.s2e-v71-close::before,
.s2e-v72-generic-close::before,
.s2e-v71-info-close::before{
  content:"×"!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
}


/* =========================================================
   STEP2ENGLISH SMART PLAN v190.8 SAFE POLISH
   Modern arrow/X without v190.7 JS scrolling side effects
========================================================= */
#s2e-v1904-course-overlay .s2e-v1904-course-head,
#s2e-v185-course-overlay .s2e-v190-course-toolbar{
  direction:ltr!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-close,
#s2e-v185-course-overlay .s2e-v190-course-close,
#s2e-v185-course-overlay .s2e-v190-course-back,
#s2e-item-actions-popup .s2e-close-btn,
.s2e-v190-course-back,
.s2e-v190-course-close{
  width:56px!important;
  min-width:56px!important;
  height:56px!important;
  min-height:56px!important;
  padding:0!important;
  border-radius:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1.5px solid rgba(255,255,255,.70)!important;
  background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%)!important;
  color:#073f91!important;
  -webkit-text-fill-color:#073f91!important;
  box-shadow:0 10px 24px rgba(2,48,122,.18), inset 0 1px 0 rgba(255,255,255,.92)!important;
  font-size:0!important;
  line-height:1!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back::before,
.s2e-v190-course-back::before{
  content:"›"!important;
  font-size:38px!important;
  font-weight:900!important;
  line-height:.8!important;
  transform:translateY(-1px)!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-close::before,
#s2e-v185-course-overlay .s2e-v190-course-close::before,
#s2e-item-actions-popup .s2e-close-btn::before,
.s2e-v190-course-close::before{
  content:"×"!important;
  font-size:36px!important;
  font-weight:900!important;
  line-height:.8!important;
  transform:translateY(-1px)!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back,
.s2e-v190-course-back{
  justify-self:start!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-close,
#s2e-v185-course-overlay .s2e-v190-course-close,
.s2e-v190-course-close{
  justify-self:end!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-body,
#s2e-v185-course-overlay .s2e-v185-course-body,
.s2e-v86-overlay .s2e-v86-course-body{
  scroll-behavior:auto!important;
  scroll-padding-top:18px!important;
}
#s2e-v1904-course-overlay .s2e-v1904-acc,
#s2e-v185-course-overlay .s2e-v185-course-section,
.s2e-v86-overlay details{
  scroll-margin-top:18px!important;
}


/* =========================================================
   STEP2ENGLISH SMART PLAN v190.9 HEADER + COURSE OPEN POLISH
   Tiny safe fix on top of v190.8
========================================================= */
#s2e-v185-course-overlay .s2e-v190-course-toolbar{
  grid-template-columns:64px 1fr 64px!important;
  min-height:64px!important;
  padding:8px 12px!important;
  gap:8px!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back,
#s2e-v185-course-overlay .s2e-v190-course-close,
#s2e-v1904-course-overlay .s2e-v1904-course-close,
#s2e-item-actions-popup .s2e-close-btn,
.s2e-v190-course-back,
.s2e-v190-course-close{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  padding:0!important;
  border-radius:14px!important;
  border:1px solid rgba(255,255,255,.75)!important;
  background:linear-gradient(180deg,#ffffff 0%,#edf6ff 100%)!important;
  color:#073f91!important;
  -webkit-text-fill-color:#073f91!important;
  box-shadow:0 7px 16px rgba(2,48,122,.15), inset 0 1px 0 rgba(255,255,255,.9)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:0!important;
  line-height:1!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back::before,
.s2e-v190-course-back::before{
  content:"‹"!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
#s2e-v1904-course-overlay .s2e-v1904-course-close::before,
#s2e-v185-course-overlay .s2e-v190-course-close::before,
#s2e-item-actions-popup .s2e-close-btn::before,
.s2e-v190-course-close::before{
  content:"×"!important;
  font-size:28px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
#s2e-v185-course-overlay .s2e-v190-course-back,
.s2e-v190-course-back{
  grid-column:1!important;
  justify-self:start!important;
}
#s2e-v185-course-overlay .s2e-v190-course-close,
.s2e-v190-course-close{
  grid-column:3!important;
  justify-self:end!important;
}
#s2e-v185-course-overlay .s2e-v185-course-body,
#s2e-v1904-course-overlay .s2e-v1904-course-body{
  scroll-behavior:auto!important;
  scroll-padding-top:84px!important;
  padding-top:18px!important;
  overscroll-behavior:contain!important;
}
#s2e-v185-course-overlay .s2e-v185-course-section,
#s2e-v1904-course-overlay .s2e-v1904-acc{
  scroll-margin-top:84px!important;
}
#s2e-v185-course-overlay .s2e-v185-course-section[open] > div,
#s2e-v1904-course-overlay .s2e-v1904-acc[open] .s2e-v1904-acc-body{
  padding-top:14px!important;
}
@media(max-width:760px){
  #s2e-v185-course-overlay .s2e-v190-course-toolbar{
    grid-template-columns:54px 1fr 54px!important;
    min-height:58px!important;
    padding:7px 9px!important;
  }
  #s2e-v185-course-overlay .s2e-v190-course-back,
  #s2e-v185-course-overlay .s2e-v190-course-close,
  #s2e-v1904-course-overlay .s2e-v1904-course-close,
  #s2e-item-actions-popup .s2e-close-btn,
  .s2e-v190-course-back,
  .s2e-v190-course-close{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    border-radius:13px!important;
  }
  #s2e-v185-course-overlay .s2e-v190-course-back::before,
  .s2e-v190-course-back::before{font-size:28px!important;}
  #s2e-v185-course-overlay .s2e-v190-course-close::before,
  #s2e-v1904-course-overlay .s2e-v1904-course-close::before,
  #s2e-item-actions-popup .s2e-close-btn::before,
  .s2e-v190-course-close::before{font-size:26px!important;}
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v1910 - LEAKS HEADER MATCH
   Make leaks back/close buttons match the modern course header buttons.
========================================================= */
#s2e-v173-leaks-overlay .s2e-v173-header{
  direction:ltr!important;
  display:grid!important;
  grid-template-columns:54px 1fr 54px!important;
  align-items:center!important;
  min-height:58px!important;
  padding:7px 10px!important;
  gap:8px!important;
}
#s2e-v173-leaks-overlay .s2e-v173-title{
  grid-column:2!important;
  text-align:center!important;
  min-width:0!important;
}
#s2e-v173-leaks-overlay .s2e-v173-back,
#s2e-v173-leaks-overlay .s2e-v173-close{
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  padding:0!important;
  border-radius:13px!important;
  border:1px solid rgba(255,255,255,.75)!important;
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 7px 16px rgba(2,20,60,.18), inset 0 1px 0 rgba(255,255,255,.16)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:0!important;
  line-height:1!important;
  font-family:Tahoma,Arial,sans-serif!important;
}
#s2e-v173-leaks-overlay .s2e-v173-back{
  grid-column:1!important;
  justify-self:start!important;
}
#s2e-v173-leaks-overlay .s2e-v173-close{
  grid-column:3!important;
  justify-self:end!important;
}
#s2e-v173-leaks-overlay .s2e-v173-back::before{
  content:"‹"!important;
  font-size:28px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
#s2e-v173-leaks-overlay .s2e-v173-close::before{
  content:"×"!important;
  font-size:26px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
@media(min-width:761px){
  #s2e-v173-leaks-overlay .s2e-v173-header{
    grid-template-columns:64px 1fr 64px!important;
    min-height:64px!important;
    padding:8px 12px!important;
  }
  #s2e-v173-leaks-overlay .s2e-v173-back,
  #s2e-v173-leaks-overlay .s2e-v173-close{
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:14px!important;
  }
  #s2e-v173-leaks-overlay .s2e-v173-back::before{font-size:30px!important;}
  #s2e-v173-leaks-overlay .s2e-v173-close::before{font-size:28px!important;}
}

/* =========================================================
   S2E v1910-startup-antishake CSS
   تثبيت بداية الخطة ومنع التحريك البصري وقت التحميل فقط
========================================================= */
html body #s2e-plan-root,
html body .s2e-plan-root,
html body .s2e-smart-plan,
html body .s2e-plan-wrap{
  scroll-behavior:auto !important;
  overflow-anchor:none !important;
}

html body #s2e-plan-root *,
html body .s2e-plan-root *,
html body .s2e-smart-plan *,
html body .s2e-plan-wrap *{
  scroll-margin-top:0 !important;
}

/* منع النبض الذي يغيّر الحجم داخل كارت الخطة فقط */
html body #s2e-plan-root .s2e-plan-start-btn,
html body #s2e-plan-root .s2e-plan-start-btn-strong,
html body #s2e-plan-root .s2e-v86-tools button,
html body #s2e-plan-root .s2e-v145-main-tools button,
html body #s2e-plan-root .s2e-v172-tool-btn,
html body #s2e-plan-root .s2e-v173-tool-btn,
html body #s2e-plan-root #s2e-v146-open-leaks,
html body #s2e-plan-root #s2e-v172-open-leaks,
html body #s2e-plan-root #s2e-v173-open-leaks{
  transform:none !important;
  animation:none !important;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease !important;
  will-change:auto !important;
}

/* تثبيت منطقة أدوات الخطة حتى لا تظهر الأزرار فتزق الجدول فوق/تحت */
html body #s2e-plan-root #s2e-v185-stable-tools,
html body #s2e-plan-root .s2e-v185-stable-tools,
html body #s2e-plan-root .s2e-v188-tools,
html body #s2e-plan-root .s2e-v86-tools,
html body #s2e-plan-root .s2e-v145-main-tools{
  min-height:64px !important;
  transform:none !important;
  animation:none !important;
  transition:none !important;
  will-change:auto !important;
  contain:layout paint !important;
}

@media(max-width:640px){
  html body #s2e-plan-root #s2e-v185-stable-tools,
  html body #s2e-plan-root .s2e-v185-stable-tools,
  html body #s2e-plan-root .s2e-v188-tools,
  html body #s2e-plan-root .s2e-v86-tools,
  html body #s2e-plan-root .s2e-v145-main-tools{
    min-height:118px !important;
  }
}

/* =========================================================
   STEP2ENGLISH SMART PLAN v1912 - UNIFIED FEED + NO SHAKE
   Keep laptop stable; no auto-scroll jump when sections open.
========================================================= */
html body #s2e-plan-root,
html body .s2e-plan-root,
html body .s2e-smart-plan,
html body .s2e-plan-wrap,
html body #s2e-v185-course-overlay,
html body #s2e-v173-leaks-overlay{
  scroll-behavior:auto !important;
  overflow-anchor:none !important;
}

#s2e-v185-course-overlay .s2e-v185-course-body,
#s2e-v1904-course-overlay .s2e-v1904-course-body{
  scroll-behavior:auto !important;
  overflow-anchor:none !important;
  padding-top:8px !important;
}

#s2e-v185-course-overlay .s2e-v185-course-section,
#s2e-v1904-course-overlay .s2e-v1904-acc{
  scroll-margin-top:120px !important;
}

#s2e-v185-course-overlay .s2e-v185-course-section[open] > summary,
#s2e-v1904-course-overlay .s2e-v1904-acc[open] > summary{
  position:relative !important;
  z-index:2 !important;
}

#s2e-v185-course-overlay .s2e-v190-course-toolbar,
#s2e-v173-leaks-overlay .s2e-v173-header{
  direction:ltr !important;
}

#s2e-v185-course-overlay .s2e-v190-course-back,
#s2e-v185-course-overlay .s2e-v190-course-close,
#s2e-v173-leaks-overlay .s2e-v173-back,
#s2e-v173-leaks-overlay .s2e-v173-close{
  width:38px !important;
  min-width:38px !important;
  max-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  padding:0 !important;
  border-radius:13px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:0 !important;
  line-height:1 !important;
  transform:none !important;
  animation:none !important;
}

#s2e-v185-course-overlay .s2e-v190-course-back::before,
#s2e-v173-leaks-overlay .s2e-v173-back::before{
  content:"‹" !important;
  font-size:25px !important;
  line-height:1 !important;
  font-weight:900 !important;
  transform:translateY(-1px) !important;
}

#s2e-v185-course-overlay .s2e-v190-course-close::before,
#s2e-v173-leaks-overlay .s2e-v173-close::before{
  content:"×" !important;
  font-size:24px !important;
  line-height:1 !important;
  font-weight:900 !important;
  transform:translateY(-1px) !important;
}

@media(min-width:761px){
  #s2e-v185-course-overlay .s2e-v190-course-back,
  #s2e-v185-course-overlay .s2e-v190-course-close,
  #s2e-v173-leaks-overlay .s2e-v173-back,
  #s2e-v173-leaks-overlay .s2e-v173-close{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
  }
  #s2e-v185-course-overlay .s2e-v190-course-back::before,
  #s2e-v173-leaks-overlay .s2e-v173-back::before{font-size:26px !important;}
  #s2e-v185-course-overlay .s2e-v190-course-close::before,
  #s2e-v173-leaks-overlay .s2e-v173-close::before{font-size:25px !important;}
}


/* =========================================================
   S2E v1913 - safer gate popup + no admin leakage
   ========================================================= */
.s2e-v86-gate-box,
.s2e-v100-gate-box,
.s2e-v185-gate-box{
  max-width: 760px !important;
  border-radius: 26px !important;
  padding: 22px 20px !important;
  background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  border: 2px solid #d7e8ff !important;
  box-shadow: 0 24px 54px rgba(13,31,92,.18) !important;
}
.s2e-v86-gate-title,
.s2e-v100-gate-box .s2e-v86-gate-title,
.s2e-v185-gate-box h2{
  font-size: 34px !important;
  line-height: 1.25 !important;
  color: #0b4595 !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
}
.s2e-v86-gate-sub,
.s2e-v100-gate-box .s2e-v86-gate-sub,
.s2e-v185-gate-sub{
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: #627892 !important;
  background: #f7fbff !important;
  border: 1px solid #dcecff !important;
  border-radius: 14px !important;
  padding: 8px 12px !important;
  margin-bottom: 10px !important;
}
.s2e-v86-picked-item{
  font-size: 20px !important;
  color: #0b4595 !important;
  background: #ffffff !important;
  border: 2px solid #d7e8ff !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
}
.s2e-v86-gate-option,
.s2e-v86-gate-details summary,
.s2e-v185-plan-card{
  min-height: 64px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg,#ffffff 0%,#f6faff 100%) !important;
  border: 2px solid #d7e8ff !important;
  color: #0b4595 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 20px rgba(13,31,92,.06) !important;
}
.s2e-v86-gate-option small,
.s2e-v185-plan-card em{
  display: block !important;
  margin-top: 5px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #6a7f9b !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}
.s2e-v185-panel-note{
  font-size: 15px !important;
  color: #607892 !important;
  font-weight: 900 !important;
}
@media (max-width:768px){
  .s2e-v86-gate-box,.s2e-v100-gate-box,.s2e-v185-gate-box{padding:16px 12px !important;border-radius:22px !important;}
  .s2e-v86-gate-title,.s2e-v100-gate-box .s2e-v86-gate-title,.s2e-v185-gate-box h2{font-size:28px !important;}
  .s2e-v86-gate-sub,.s2e-v100-gate-box .s2e-v86-gate-sub,.s2e-v185-gate-sub{font-size:14px !important;}
  .s2e-v86-gate-option,.s2e-v86-gate-details summary,.s2e-v185-plan-card{font-size:19px !important;min-height:58px !important;}
}

/* =========================================================
   S2E v1929 sticky open bars
   تثبيت شريط الغلق وشريط القسم المفتوح داخل محتوى الدورة/التسريبات.
========================================================= */
#s2e-v1904-course-overlay .s2e-v1904-course-head,
#s2e-v185-course-overlay .s2e-v190-course-toolbar,
#s2e-v173-leaks-overlay .s2e-v173-header{
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
}

#s2e-v1904-course-overlay .s2e-v1904-acc[open] > summary,
#s2e-v185-course-overlay .s2e-v185-course-section[open] > summary{
  position: sticky !important;
  top: 76px !important;
  z-index: 50 !important;
  box-shadow: 0 8px 18px rgba(13,31,92,.08) !important;
}

@media (max-width: 768px){
  #s2e-v1904-course-overlay .s2e-v1904-acc[open] > summary,
  #s2e-v185-course-overlay .s2e-v185-course-section[open] > summary{
    top: 70px !important;
  }
}
/* =========================================================
   باتش آمن لإخفاء زر "ابدأ الآن" وزر "X" من نافذة الخطة
========================================================= */

/* إخفاء زر الإغلاق X */
button#s2e-close-setup-popup {
    display: none !important;
}

/* إخفاء حاوية زر "ابدأ الآن" داخل البوب أب */
#s2e-setup-popup-overlay .s2e-start-bottom-wrap {
    display: none !important;
}
/* =========================================================
   تدمير البوب أب الأزرق القديم للخطة الذكية
========================================================= */
#s2e-v188-start-gate,
#s2e-v186-plan-gate,
#s2e-v185-plan-gate,
.s2e-v86-plan-gate-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}
/* =========================================================
   تغبيش أسماء الدروس المغلقة (v1975 + قائمة الأيام)
========================================================= */
.s2e-v1975-card.locked strong, 
.s2e-prevday-row .s2e-prevday-label {
    color: transparent !important;
    text-shadow: 0 0 10px rgba(11, 61, 145, 0.4) !important;
}

.s2e-v1975-card.locked strong span {
    display: none !important;
}

/* الحفاظ على وضوح شريط للمشتركين والقفل */
.s2e-v1975-card.locked strong::after {
    color: #b45309 !important;
    text-shadow: none !important;
    filter: none !important;
}

.s2e-v1975-card.locked small {
    filter: blur(4px) !important;
    opacity: 0.3 !important;
}
/* =========================================================
   الإصلاح الجذري لمشكلة تداخل الهيدر واتجاه الأزرار (v1975)
========================================================= */

/* 1. تحويل الصندوق بالكامل لنظام مقسم يمنع التداخل نهائياً */
.s2e-v1975-box {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-height: calc(100vh - 20px) !important; /* ضمان عدم خروج الصندوق عن الشاشة */
}

/* 2. الهيدر ثابت في الأعلى (لا يتمدد ولا يمرر) */
.s2e-v1975-head {
    flex: 0 0 auto !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    direction: ltr !important; /* LTR يضع زر الرجوع يسار والإغلاق يمين */
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-bottom: 2px solid #eef2f7 !important;
    z-index: 100 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. توسيط عنوان "محتوى الدورة" */
.s2e-v1975-head > .s2e-v1975-title {
    flex: 1 1 auto !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #0b3d91 !important;
    margin: 0 10px !important;
}

/* 4. إعادة تصميم الأزرار (إخفاء المحتوى القديم وتوسيط الأيقونات الجديدة) */
.s2e-v1975-head > button {
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #0d55c6, #073f91) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important; /* إخفاء النص أو السهم القديم */
    padding: 0 !important;
}

/* 5. زر الرجوع (اليسار): سهم يشير لليسار */
.s2e-v1975-head > .s2e-v1975-back::before {
    content: "‹" !important;
    font-size: 38px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: translateY(-2px) !important;
}

/* إصلاح اختفاء علامة الإغلاق (X) في الزر الأيمن */
.s2e-v1975-head > .s2e-close-btn::before,
.s2e-v1975-head > .s2e-v1975-close::before,
.s2e-v173-header > .s2e-v173-close::before,
.s2e-v190-course-toolbar > .s2e-v190-course-close::before {
    content: "×" !important;
    font-size: 34px !important; /* تكبير العلامة لتكون واضحة */
    color: #ffffff !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: block !important;
    transform: translateY(-2px) !important;
}

/* 7. شريط البحث ثابت تحت الهيدر */
.s2e-v1975-search {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f7 !important;
    z-index: 10 !important;
}

/* 8. جسم المحتوى (هنا يحدث التمرير فقط ولن يمس الهيدر أبداً) */
.s2e-v1975-course-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important; /* لتمرير سلس جداً في الآيفون */
    padding: 14px !important;
    background: #f8fbff !important;
}


/* =========================================================
   STEP2ENGLISH v2005 - TWO PLAN OPTIONS ONLY
   عدد الأيام أو موعد الاختبار
========================================================= */
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-setup.has-selected{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  max-width:720px !important;
  gap:12px !important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child,
#s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) .s2e-plan-tab:last-child{
  grid-column:auto !important;
  min-height:104px !important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  font-size:21px !important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{
  display:block !important;
  margin-top:5px !important;
  color:#617895 !important;
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1.35 !important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab.active .s2e-plan-tab-desc{
  color:rgba(255,255,255,.82) !important;
}
@media(max-width:520px){
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-setup.has-selected{
    grid-template-columns:1fr !important;
    gap:9px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab:last-child{
    grid-column:1 !important;
    min-height:82px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
    font-size:19px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{
    font-size:13px !important;
  }
}


/* =========================================================
   STEP2ENGLISH v2006 - CLEAN TWO OPTIONS
========================================================= */
#s2e-plan-root .s2e-setup-box-final,
#s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
  width:min(680px,100%) !important;
  padding:22px 18px 20px !important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-title{
  font-size:32px !important;
  margin:0 0 3px !important;
}
#s2e-plan-root .s2e-setup-only .s2e-plan-sub{
  font-size:15px !important;
  margin:0 0 14px !important;
  line-height:1.35 !important;
}
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-setup.has-selected,
#s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected){
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  width:100% !important;
  max-width:620px !important;
  gap:10px !important;
  margin:0 auto !important;
}
#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab:first-child,
#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab:last-child,
#s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) > .s2e-plan-tab:last-child{
  grid-column:auto !important;
  grid-row:auto !important;
  width:100% !important;
  min-height:88px !important;
  padding:12px 10px !important;
  border-radius:18px !important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{
  display:block !important;
  font-size:22px !important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  font-size:20px !important;
  line-height:1.15 !important;
}
#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{
  display:block !important;
  margin-top:2px !important;
  font-size:13px !important;
  line-height:1.25 !important;
}
@media(max-width:520px){
  #s2e-plan-root .s2e-setup-box-final,
  #s2e-plan-root .s2e-plan-topbox.s2e-setup-only{
    padding:18px 12px 16px !important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-title{
    font-size:27px !important;
  }
  #s2e-plan-root .s2e-setup-only .s2e-plan-sub{
    font-size:14px !important;
    margin-bottom:11px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-setup.has-selected,
  #s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected){
    grid-template-columns:1fr 1fr !important;
    gap:7px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab:last-child{
    grid-column:auto !important;
    min-height:76px !important;
    padding:9px 5px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{
    font-size:19px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
    font-size:16px !important;
  }
  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{
    font-size:11px !important;
  }
}

/* =========================================================
   STEP2ENGLISH v2007 - EQUAL FULL WIDTH PLAN CARDS
   الخياران فوق بعض وبنفس المقاس
========================================================= */
#s2e-plan-root .s2e-plan-tabs-setup,
#s2e-plan-root .s2e-plan-tabs-setup.has-selected,
#s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected){
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-auto-flow:row !important;
  width:100% !important;
  max-width:620px !important;
  gap:10px !important;
  margin:0 auto !important;
}

#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab:first-child,
#s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab:last-child,
#s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) > .s2e-plan-tab:first-child,
#s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected) > .s2e-plan-tab:last-child{
  grid-column:1 / -1 !important;
  grid-row:auto !important;
  justify-self:stretch !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:122px !important;
  height:122px !important;
  margin:0 !important;
  padding:14px 16px !important;
  border-radius:22px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{
  display:block !important;
  font-size:25px !important;
  line-height:1 !important;
  margin:0 !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
  display:block !important;
  font-size:22px !important;
  line-height:1.15 !important;
  text-align:center !important;
  margin:0 !important;
}

#s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{
  display:block !important;
  font-size:15px !important;
  line-height:1.25 !important;
  text-align:center !important;
  margin:0 !important;
}

@media(max-width:520px){
  #s2e-plan-root .s2e-plan-tabs-setup,
  #s2e-plan-root .s2e-plan-tabs-setup.has-selected,
  #s2e-plan-root .s2e-plan-tabs-setup:not(.has-selected){
    grid-template-columns:1fr !important;
    width:100% !important;
    gap:8px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab,
  #s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab:first-child,
  #s2e-plan-root .s2e-plan-tabs-setup > .s2e-plan-tab:last-child{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-height:104px !important;
    height:104px !important;
    padding:12px 10px !important;
    border-radius:19px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-icon{
    font-size:22px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-main{
    font-size:20px !important;
  }

  #s2e-plan-root .s2e-plan-tabs-setup .s2e-plan-tab-desc{
    font-size:13px !important;
  }
}

/* STEP2ENGLISH v2009 - generated two cards final guard */
#s2e-plan-root .s2e-two-plan-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-auto-flow:row !important;
  width:100% !important;
  max-width:620px !important;
  gap:10px !important;
  margin:0 auto !important;
}
#s2e-plan-root .s2e-two-plan-grid > .s2e-two-plan-card{
  grid-column:1 / -1 !important;
  grid-row:auto !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:112px !important;
  min-height:112px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
@media(max-width:520px){
  #s2e-plan-root .s2e-two-plan-grid > .s2e-two-plan-card{
    height:96px !important;
    min-height:96px !important;
  }
}

/* =========================================================
   إصلاح وتحسين بوب أب اختيار الخطة على شاشات اللاب توب
========================================================= */
@media (min-width: 768px) {
    #s2e-setup-popup-overlay .s2e-plan-tab-main {
        font-size: 24px !important;
    }
    #s2e-setup-popup-overlay .s2e-plan-tab-desc {
        font-size: 16px !important;
        margin-top: 6px !important;
    }
    #s2e-setup-popup-overlay .s2e-plan-tab {
        padding: 20px !important;
    }
}
/* =========================================================
   S2E UNIFIED STEP PRICE CARD
   Same appearance, wording and order as the STEP home card.
========================================================= */
.s2e-package-modal-ref .s2e-price-box,
#s2e-unified-price-overlay .s2e-price-box,
#s2e-package-popup .s2e-price-box{
  background:linear-gradient(180deg,#fff8f1 0%,#fffdf9 100%) !important;
  border:1px solid #f5d8bb !important;
  border-radius:24px !important;
  padding:16px 14px !important;
  text-align:center !important;
  margin-bottom:14px !important;
}
.s2e-egp-equivalent{
  display:block !important;
  width:100% !important;
  margin:4px auto 8px !important;
  color:#d97706 !important;
  font-size:18px !important;
  line-height:1.5 !important;
  font-weight:900 !important;
  text-align:center !important;
}
.s2e-package-modal-ref .s2e-price-note,
#s2e-unified-price-overlay .s2e-price-note,
#s2e-package-popup .s2e-price-note{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  margin-top:2px !important;
  padding:6px 12px !important;
  border-radius:8px !important;
  background:#fef3c7 !important;
  color:#d97706 !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1.5 !important;
}
@media (max-width:768px){
  .s2e-egp-equivalent{font-size:16px !important;}
}

/* =========================================================
   S2E LEAKS - UNIFIED STEP PRICE CARD
========================================================= */
#s2e-leaks-page-root .s2e-price-box{
  background:linear-gradient(180deg,#fff8f1 0%,#fffdf9 100%) !important;
  border:1px solid #f5d8bb !important;
  border-radius:24px !important;
  padding:16px 14px !important;
  gap:6px !important;
}
#s2e-leaks-page-root .s2e-discount-badge,
#s2e-leaks-page-root .s2e-offer{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:8px 14px !important;
  border:2px solid #f1b37c !important;
  border-radius:999px !important;
  background:#fff7f4 !important;
  color:#e23a5d !important;
  font-size:14px !important;
  font-weight:900 !important;
}
#s2e-leaks-page-root .s2e-old-price{
  color:#94a3b8 !important;
  text-decoration:line-through !important;
  font-size:17px !important;
  font-weight:700 !important;
}
#s2e-leaks-page-root .s2e-new-price{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  color:#b85a00 !important;
  font-size:38px !important;
  font-weight:900 !important;
  line-height:1.15 !important;
  margin:0 auto 4px !important;
}
#s2e-leaks-page-root .s2e-new-price img{
  width:24px !important;
  height:26px !important;
  object-fit:contain !important;
}
#s2e-leaks-page-root .s2e-egp-equivalent{
  color:#d97706 !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.5 !important;
  text-align:center !important;
}
#s2e-leaks-page-root .s2e-price-note,
#s2e-leaks-page-root .s2e-currency-text{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:6px 12px !important;
  border-radius:8px !important;
  background:#fef3c7 !important;
  color:#d97706 !important;
  font-size:12px !important;
  font-weight:900 !important;
  opacity:1 !important;
}

/* =========================================================
   S2E LEAKS DIRECT PRICE CARD v2011
========================================================= */
.s2e-v2011-overlay{position:fixed!important;inset:0!important;z-index:2147483646!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(1,8,25,.92)!important;backdrop-filter:blur(5px)!important;overflow:auto!important}
.s2e-v2011-card,.s2e-v2011-card *{box-sizing:border-box!important;font-family:'Cairo','Tajawal',Tahoma,Arial,sans-serif!important}
.s2e-v2011-card{position:relative!important;width:min(760px,calc(100vw - 36px))!important;max-height:calc(100dvh - 36px)!important;overflow:auto!important;padding:72px 24px 24px!important;border-radius:28px!important;background:#fff!important;color:#334155!important;direction:rtl!important;text-align:center!important;box-shadow:0 26px 90px rgba(0,0,0,.34)!important}
.s2e-v2011-close{position:absolute!important;top:16px!important;left:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;width:120px!important;height:46px!important;padding:0!important;border:0!important;border-radius:16px!important;background:#103a78!important;color:#fff!important;font-size:22px!important;font-weight:900!important;cursor:pointer!important}
.s2e-v2011-title{padding:16px!important;margin-bottom:18px!important;border-radius:20px!important;background:#eef2f7!important;color:#17458d!important;font-size:25px!important;font-weight:900!important}
.s2e-v2011-features{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-bottom:18px!important}
.s2e-v2011-features div{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:54px!important;padding:9px 12px!important;border:1px solid #e3eaf4!important;border-radius:16px!important;background:#fbfdff!important;font-size:16px!important;font-weight:900!important}
.s2e-v2011-pricebox{display:block!important;padding:18px 14px!important;margin-bottom:15px!important;border:1px solid #f5d8bb!important;border-radius:24px!important;background:linear-gradient(180deg,#fff8f1,#fffdf9)!important}
.s2e-v2011-offer{display:inline-flex!important;padding:8px 15px!important;margin-bottom:10px!important;border:2px solid #f1b37c!important;border-radius:999px!important;background:#fff7f4!important;color:#e23a5d!important;font-size:15px!important;font-weight:900!important}
.s2e-v2011-old{display:block!important;color:#94a3b8!important;text-decoration:line-through!important;font-size:17px!important;font-weight:800!important}
.s2e-v2011-sar{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:8px 0!important;color:#b85a00!important;font-size:38px!important;font-weight:900!important;line-height:1!important}
.s2e-v2011-sar span{display:inline!important;color:#b85a00!important;font-size:38px!important;font-weight:900!important}
.s2e-v2011-sar img{display:block!important;width:27px!important;height:auto!important;max-width:27px!important;opacity:1!important;visibility:visible!important}
.s2e-v2011-egp{display:block!important;margin:5px 0 8px!important;color:#d97706!important;font-size:19px!important;font-weight:900!important}
.s2e-v2011-note{display:inline-flex!important;padding:6px 12px!important;border-radius:8px!important;background:#fef3c7!important;color:#d97706!important;font-size:12px!important;font-weight:900!important}
.s2e-v2011-payment-label{margin:3px 0 9px!important;color:#64748b!important;font-size:13px!important;font-weight:900!important}
.s2e-v2011-payments{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important;margin-bottom:15px!important}
.s2e-v2011-payments span{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:7px 11px!important;border:1px solid #dbe5f2!important;border-radius:12px!important;background:#f8fbff!important;color:#334155!important;font-size:12px!important;font-weight:900!important}
.s2e-v2011-subscribe,.s2e-v2011-whatsapp{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:58px!important;padding:12px!important;border:0!important;border-radius:18px!important;color:#fff!important;text-decoration:none!important;font-size:21px!important;font-weight:900!important;cursor:pointer!important}
.s2e-v2011-subscribe{margin-bottom:12px!important;background:linear-gradient(135deg,#f6a000,#cf6e00)!important;box-shadow:0 10px 22px rgba(217,119,6,.22)!important}
.s2e-v2011-whatsapp{background:linear-gradient(135deg,#35d56e,#1fbd56)!important;box-shadow:0 10px 22px rgba(37,211,102,.18)!important}
@media(max-width:600px){.s2e-v2011-overlay{padding:8px!important}.s2e-v2011-card{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:66px 12px 14px!important;border-radius:22px!important}.s2e-v2011-features{grid-template-columns:1fr!important;gap:7px!important}.s2e-v2011-features div{min-height:45px!important;font-size:14px!important}.s2e-v2011-title{font-size:21px!important}.s2e-v2011-subscribe,.s2e-v2011-whatsapp{min-height:52px!important;font-size:18px!important}}

/* =========================================================
   S2E LEAKS CARD FIT WITHOUT INTERNAL SCROLL v2012
========================================================= */
.s2e-v2011-overlay{
  padding:8px !important;
  overflow:hidden !important;
}
.s2e-v2011-card{
  width:min(760px,calc(100vw - 16px)) !important;
  height:auto !important;
  max-height:calc(100dvh - 16px) !important;
  overflow:hidden !important;
  padding:clamp(54px,7vh,68px) clamp(12px,2.2vw,22px) clamp(12px,2vh,20px) !important;
  border-radius:24px !important;
}
.s2e-v2011-close{
  top:10px !important;
  left:14px !important;
  width:108px !important;
  height:40px !important;
  min-height:40px !important;
}
.s2e-v2011-title{
  padding:clamp(10px,1.8vh,14px) !important;
  margin-bottom:clamp(8px,1.6vh,14px) !important;
  font-size:clamp(20px,2.5vw,24px) !important;
}
.s2e-v2011-features{
  gap:clamp(6px,1vh,9px) !important;
  margin-bottom:clamp(8px,1.5vh,14px) !important;
}
.s2e-v2011-features div{
  min-height:clamp(40px,6vh,50px) !important;
  padding:6px 9px !important;
  font-size:clamp(13px,1.7vw,15px) !important;
}
.s2e-v2011-pricebox{
  padding:clamp(10px,1.5vh,15px) 12px !important;
  margin-bottom:clamp(7px,1.2vh,11px) !important;
  border-radius:20px !important;
}
.s2e-v2011-offer{
  padding:6px 12px !important;
  margin-bottom:5px !important;
  font-size:clamp(12px,1.5vw,14px) !important;
}
.s2e-v2011-old{
  font-size:14px !important;
  line-height:1.2 !important;
}
.s2e-v2011-sar{
  margin:4px 0 !important;
  font-size:clamp(30px,4vw,36px) !important;
  min-height:36px !important;
}
.s2e-v2011-sar span{
  font-size:clamp(30px,4vw,36px) !important;
}
.s2e-v2011-sar img{
  width:24px !important;
  max-width:24px !important;
}
.s2e-v2011-egp{
  margin:2px 0 5px !important;
  font-size:clamp(15px,2vw,18px) !important;
}
.s2e-v2011-note{
  padding:5px 10px !important;
  font-size:11px !important;
}
.s2e-v2011-payment-label{
  margin:1px 0 5px !important;
  font-size:12px !important;
}
.s2e-v2011-payments{
  gap:6px !important;
  margin-bottom:clamp(7px,1.2vh,11px) !important;
}
.s2e-v2011-payments span{
  min-height:32px !important;
  padding:5px 9px !important;
  font-size:11px !important;
}
.s2e-v2011-subscribe,
.s2e-v2011-whatsapp{
  min-height:clamp(43px,6vh,52px) !important;
  padding:8px 10px !important;
  font-size:clamp(17px,2.3vw,20px) !important;
}
.s2e-v2011-subscribe{
  margin-bottom:8px !important;
}
@media(max-height:760px){
  .s2e-v2011-card{padding-top:50px !important;padding-bottom:10px !important;}
  .s2e-v2011-close{top:7px !important;height:36px !important;min-height:36px !important;}
  .s2e-v2011-title{padding:8px !important;margin-bottom:7px !important;font-size:19px !important;}
  .s2e-v2011-features{gap:5px !important;margin-bottom:7px !important;}
  .s2e-v2011-features div{min-height:36px !important;padding:4px 7px !important;font-size:12.5px !important;}
  .s2e-v2011-pricebox{padding:8px 10px !important;margin-bottom:6px !important;}
  .s2e-v2011-offer{padding:4px 10px !important;margin-bottom:3px !important;font-size:12px !important;}
  .s2e-v2011-old{font-size:13px !important;}
  .s2e-v2011-sar,.s2e-v2011-sar span{font-size:28px !important;}
  .s2e-v2011-sar{min-height:30px !important;margin:2px 0 !important;}
  .s2e-v2011-sar img{width:21px !important;max-width:21px !important;}
  .s2e-v2011-egp{font-size:15px !important;margin:1px 0 3px !important;}
  .s2e-v2011-note{padding:4px 8px !important;font-size:10.5px !important;}
  .s2e-v2011-payment-label{margin:0 0 3px !important;font-size:11px !important;}
  .s2e-v2011-payments{margin-bottom:5px !important;}
  .s2e-v2011-payments span{min-height:27px !important;padding:3px 7px !important;font-size:10px !important;}
  .s2e-v2011-subscribe,.s2e-v2011-whatsapp{min-height:39px !important;padding:6px !important;font-size:16px !important;}
  .s2e-v2011-subscribe{margin-bottom:5px !important;}
}
@media(max-width:600px){
  .s2e-v2011-card{width:calc(100vw - 12px) !important;max-height:calc(100dvh - 12px) !important;padding-inline:9px !important;}
  .s2e-v2011-features{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .s2e-v2011-features div{font-size:11.5px !important;gap:4px !important;}
  .s2e-v2011-payments{flex-wrap:nowrap !important;}
  .s2e-v2011-payments span{white-space:nowrap !important;padding-inline:5px !important;}
}

/* =========================================================
   S2E SMART TIMETABLE MOCK EXAM MOBILE WARNING v2020
========================================================= */
body.s2e-v2020-warning-open{overflow:hidden!important;}
.s2e-v2020-warning-overlay{position:fixed!important;inset:0!important;z-index:2147483647!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;background:rgba(1,8,25,.92)!important;backdrop-filter:blur(5px)!important;direction:rtl!important;}
.s2e-v2020-warning-card,.s2e-v2020-warning-card *{box-sizing:border-box!important;font-family:'Cairo','Tajawal',Tahoma,Arial,sans-serif!important;}
.s2e-v2020-warning-card{position:relative!important;width:min(520px,calc(100vw - 32px))!important;padding:28px 22px 22px!important;border-radius:26px!important;background:#fff!important;text-align:center!important;color:#334155!important;box-shadow:0 28px 90px rgba(0,0,0,.38)!important;}
.s2e-v2020-warning-x{position:absolute!important;top:12px!important;left:12px!important;width:42px!important;height:42px!important;border:0!important;border-radius:13px!important;background:#08285f!important;color:#fff!important;font-size:25px!important;font-weight:900!important;cursor:pointer!important;}
.s2e-v2020-warning-icon{width:72px!important;height:72px!important;margin:0 auto 12px!important;border-radius:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#eaf6ff,#f7fbff)!important;border:1px solid #cfe7ff!important;font-size:36px!important;}
.s2e-v2020-warning-card h2{margin:0 0 12px!important;color:#073d8e!important;font-size:clamp(22px,5vw,28px)!important;font-weight:900!important;}
.s2e-v2020-warning-card p{margin:7px 0!important;color:#51627a!important;font-size:16px!important;font-weight:800!important;line-height:1.75!important;}
.s2e-v2020-warning-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin-top:18px!important;}
.s2e-v2020-warning-actions button{width:100%!important;min-height:50px!important;border:0!important;border-radius:15px!important;padding:10px 14px!important;font-size:16px!important;font-weight:900!important;cursor:pointer!important;}
.s2e-v2020-return{background:#eef7ff!important;color:#073d8e!important;border:1px solid #cfe6ff!important;}
.s2e-v2020-proceed{background:linear-gradient(135deg,#0962dd,#20b9ef)!important;color:#fff!important;box-shadow:0 10px 24px rgba(10,115,220,.22)!important;}
@media(max-width:600px){.s2e-v2020-warning-overlay{padding:8px!important}.s2e-v2020-warning-card{width:calc(100vw - 16px)!important;padding:24px 14px 14px!important;border-radius:22px!important}.s2e-v2020-warning-icon{width:62px!important;height:62px!important;font-size:31px!important}.s2e-v2020-warning-card p{font-size:14px!important}.s2e-v2020-warning-actions button{min-height:46px!important;font-size:14px!important}}
/* S2E TIMETABLE FINAL UI START */
#ccn-main-region{padding-top:15px!important}
#s2e-compact-timer{margin-top:6px!important;margin-bottom:8px!important}
#s2e-v185-stable-tools{margin-bottom:10px!important}
#s2e-plan-root .s2e-days-wrap{margin-bottom:8px!important}
#s2e-plan-root .s2e-day-card.current{background:#fff!important;border:1px solid #f0a1a1!important;border-radius:18px!important;box-shadow:0 6px 18px rgba(20,60,110,.07)!important}
#s2e-plan-root .s2e-day-card.current .s2e-day-head{padding:9px 14px 6px!important;background:#f8fbff!important}
#s2e-plan-root .s2e-day-weekday{color:#0b55b7!important;font-size:20px!important;line-height:1.2!important;font-weight:900!important}
#s2e-plan-root .s2e-day-date{margin:1px 0!important;color:#60789a!important;font-size:13px!important}
#s2e-plan-root .s2e-day-label{margin:4px auto!important;padding:3px 11px!important;border-radius:999px!important;background:#eaf2fd!important;color:#0b55b7!important;font-size:13px!important;font-weight:900!important}
#s2e-plan-root .s2e-day-state,#s2e-plan-root .s2e-day-progress-mini{display:none!important}
#s2e-plan-root .s2e-day-actions{padding:6px 10px 9px!important;background:#fff!important}
#s2e-plan-root .s2e-open-btn{min-height:40px!important;padding:6px 14px!important;border:0!important;border-radius:13px!important;background:#0b55b7!important;background-image:none!important;color:#fff!important;font-size:17px!important;font-weight:900!important;box-shadow:none!important}
#s2e-plan-root .s2e-open-btn:hover{background:#09499d!important}
#s2e-plan-root .s2e-open-btn::after{content:" ▼";font-size:11px!important}
#s2e-plan-root .s2e-after-day-panel{padding:8px!important;margin-bottom:5px!important}
#s2e-plan-root .s2e-day-nav-actions{gap:8px!important;margin-bottom:7px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
#s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn,#s2e-plan-root .s2e-view-plan-btn,#s2e-plan-root .s2e-prevdays-btn{min-width:0!important;min-height:42px!important;padding-inline:8px!important;border:1px solid #bfd4ec!important;border-radius:13px!important;background:#f4f8fd!important;background-image:none!important;color:#0b55b7!important;font-size:15px!important;box-shadow:none!important}
#s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn strong{min-width:30px!important;height:26px!important;padding-inline:7px!important;border:1px solid #d4e2f1!important;border-radius:999px!important;background:#fff!important;color:#0b55b7!important;font-size:14px!important;box-shadow:none!important}
#s2e-plan-root .s2e-progress-title,#s2e-plan-root .s2e-progress-meta,#s2e-days-done-text{display:none!important}
#s2e-plan-root .s2e-progress-below-day{min-height:0!important;padding:7px 10px!important;margin:0 0 5px!important;border-radius:14px!important}
#s2e-plan-root .s2e-progress-line{min-height:0!important;margin:0 0 5px!important}
#s2e-plan-root .s2e-progress-pill{min-width:50px!important;min-height:26px!important;padding:2px 9px!important;border:0!important;border-radius:999px!important;background:#0b55b7!important;background-image:none!important;color:#fff!important;font-size:13px!important;box-shadow:none!important}
#s2e-plan-root .s2e-progress-bar{height:6px!important;margin:0!important;border-radius:999px!important;background:#e8eef7!important}
#s2e-plan-root .s2e-progress-bar span,#s2e-progress-fill{background:#0b55b7!important;background-image:none!important}
#s2e-plan-root .s2e-plan-settings-bottom{padding:2px!important;margin:0!important;border:0!important;background:transparent!important}
#s2e-plan-root .s2e-reset-plan-btn{min-height:31px!important;padding:4px 13px!important;border:1px solid #f0aaaa!important;border-radius:999px!important;background:#fff4f4!important;color:#d53030!important;font-size:12px!important;box-shadow:none!important}
html,body{max-width:100%!important;overflow-x:hidden!important}
@media(max-width:900px){#s2e-smart-universal-container{width:100%!important;padding-inline:8px!important}#s2e-plan-root,#s2e-v185-stable-tools,#s2e-plan-root .s2e-days-wrap,#s2e-plan-root .s2e-after-day-panel,#s2e-plan-root .s2e-day-card{width:100%!important;max-width:100%!important}#s2e-v185-stable-tools{gap:8px!important;padding-inline:4px!important}#s2e-v185-stable-tools button{min-width:0!important;padding-inline:8px!important;font-size:clamp(16px,4vw,22px)!important}#s2e-compact-timer{max-width:calc(100% - 16px)!important;white-space:normal!important}}
@media(max-width:480px){#ccn-main-region{padding-top:12px!important}#s2e-smart-universal-container{padding-inline:5px!important}#s2e-v185-stable-tools{gap:6px!important}#s2e-v185-stable-tools button{min-height:50px!important;font-size:16px!important}#s2e-plan-root .s2e-day-card.current .s2e-day-head{padding:8px 10px 5px!important}#s2e-plan-root .s2e-day-weekday{font-size:19px!important}#s2e-plan-root .s2e-open-btn{min-height:38px!important;font-size:16px!important}#s2e-plan-root .s2e-day-nav-actions{gap:7px!important}#s2e-plan-root .s2e-day-nav-actions .s2e-top-secondary-btn{min-height:39px!important;padding-inline:5px!important;font-size:14px!important;gap:5px!important}}
/* S2E TIMETABLE FINAL UI END */
/* S2E POPUP CLOSE CENTER START */
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-close-btn{
 position:absolute!important;top:16px!important;left:16px!important;right:auto!important;
 width:44px!important;min-width:44px!important;max-width:44px!important;
 height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 border:1px solid rgba(255,255,255,.45)!important;border-radius:13px!important;
 background:#0b55b7!important;background-image:none!important;color:transparent!important;
 font-size:0!important;line-height:1!important;overflow:hidden!important;z-index:20!important;
 box-shadow:0 7px 18px rgba(11,85,183,.22)!important
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-close-btn::before{
 content:"×"!important;position:static!important;display:block!important;width:auto!important;height:auto!important;
 margin:0!important;padding:0!important;background:none!important;color:#fff!important;
 -webkit-text-fill-color:#fff!important;opacity:1!important;font:900 30px/1 Arial,sans-serif!important;
 text-shadow:none!important;transform:none!important;filter:none!important
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-close-btn::after{content:none!important;display:none!important}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-modal-box{text-align:center!important;position:relative!important;padding-top:70px!important}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title,
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title .ar,
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-title .en,
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-body,
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-empty{
 width:100%!important;text-align:center!important;margin-inline:auto!important
}
#s2e-item-actions-popup.s2e-v1904-action-popup .s2e-v1904-empty{
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-height:70px!important;padding:12px!important;direction:rtl!important;color:#64748b!important;
 font-size:17px!important;font-weight:800!important
}
@media(max-width:600px){
 #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-close-btn{top:12px!important;left:12px!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important}
 #s2e-item-actions-popup.s2e-v1904-action-popup .s2e-item-action-modal-box{padding-top:62px!important}
}
/* S2E POPUP CLOSE CENTER END */
/* S2E UNIFIED CONTENT POPUP CSS START */
.s2eu-overlay{position:fixed!important;inset:0!important;z-index:2147483600!important;background:rgba(1,14,38,.82)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;direction:rtl!important}.s2eu-box{position:relative!important;width:min(980px,100%)!important;max-height:calc(100vh - 36px)!important;overflow:auto!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;border:1px solid #cfe4ff!important;border-radius:28px!important;padding:74px 22px 24px!important;box-shadow:0 20px 60px rgba(0,0,0,.28)!important;font-family:"Almarai","Segoe UI",Tahoma,Arial,sans-serif!important}.s2eu-close{position:absolute!important;top:16px!important;left:16px!important;right:auto!important;width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;border:0!important;border-radius:14px!important;background:#0b55b7!important;color:#fff!important;font:900 32px/1 Arial,sans-serif!important;display:flex!important;align-items:center!important;justify-content:center!important}.s2eu-title{text-align:center!important;background:linear-gradient(180deg,#f2f8ff,#fff)!important;border:1px solid #cfe4ff!important;border-radius:22px!important;padding:20px 14px!important;margin-bottom:16px!important}.s2eu-title strong{display:block!important;color:#0b4aa6!important;font-size:32px!important;font-weight:950!important}.s2eu-title small{display:block!important;color:#6a7890!important;font-size:20px!important;font-weight:900!important;direction:ltr!important;margin-top:3px!important}.s2eu-section{background:#fff!important;border:1px solid #d7e8fb!important;border-radius:24px!important;padding:18px!important;margin-top:16px!important}.s2eu-section header{text-align:center!important;padding-bottom:14px!important;margin-bottom:12px!important;border-bottom:1px dashed #cfe4ff!important}.s2eu-section header strong{display:block!important;color:#0b4aa6!important;font-size:29px!important;font-weight:950!important}.s2eu-section header small{display:block!important;color:#6a7890!important;font-size:17px!important;font-weight:900!important;direction:ltr!important}.s2eu-list{display:flex!important;flex-direction:column!important;gap:11px!important}.s2eu-row{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important}.s2eu-open,.s2eu-done{border:2px solid #cfe4ff!important;background:#fff!important;color:#0b4aa6!important;border-radius:18px!important;cursor:pointer!important}.s2eu-open{min-height:80px!important;display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;align-items:center!important;text-align:right!important;padding:10px 16px!important}.s2eu-icon{width:52px!important;height:52px!important;border-radius:16px!important;background:#eef7ff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:25px!important}.s2eu-text strong{display:block!important;font-size:23px!important;font-weight:950!important;color:#0b4aa6!important}.s2eu-text small{display:block!important;font-size:14px!important;font-weight:900!important;color:#64748b!important;direction:ltr!important}.s2eu-done{font-size:18px!important;font-weight:950!important}.s2eu-row.done .s2eu-open{background:#effcf4!important;border-color:#16a34a!important}.s2eu-row.done .s2eu-open strong,.s2eu-done.done{color:#16a34a!important}.s2eu-done.done{background:#16a34a!important;color:#fff!important;border-color:#16a34a!important}.s2eu-empty{text-align:center!important;color:#64748b!important;font-size:18px!important;font-weight:900!important;padding:28px!important}@media(max-width:640px){.s2eu-overlay{padding:8px!important}.s2eu-box{max-height:calc(100vh - 16px)!important;border-radius:22px!important;padding:66px 12px 16px!important}.s2eu-close{top:12px!important;left:12px!important;width:44px!important;height:44px!important;min-width:44px!important}.s2eu-title strong{font-size:27px!important}.s2eu-title small{font-size:17px!important}.s2eu-section{padding:12px!important;border-radius:20px!important}.s2eu-section header strong{font-size:25px!important}.s2eu-row{grid-template-columns:60px minmax(0,1fr)!important;gap:8px!important}.s2eu-open{min-height:70px!important;grid-template-columns:50px minmax(0,1fr)!important;padding:8px 10px!important}.s2eu-icon{width:44px!important;height:44px!important;font-size:22px!important}.s2eu-text strong{font-size:19px!important}.s2eu-text small{font-size:12px!important}.s2eu-done{font-size:16px!important}}
/* S2E UNIFIED CONTENT POPUP CSS END */


body#page-mod-page-view .singlebutton a[href*="/course/view.php"],
body#page-mod-page-view .singlebutton input[value*="Back to course"],
body#page-mod-page-view .singlebutton input[value*="العودة للدورة"]{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-width:190px !important;
  min-height:46px !important;
  padding:8px 18px !important;
  border:2px solid #ffffff !important;
  border-radius:24px !important;
  background:#0b4aa6 !important;
  color:#ffffff !important;
  box-shadow:0 7px 16px rgba(11,74,166,.22) !important;
  font-family:Almarai,Tahoma,Arial,sans-serif !important;
  font-size:16px !important;
  font-weight:900 !important;
  line-height:1.1 !important;
  text-decoration:none !important;
}

/* =========================================================
   S2E RETURN NAVIGATION VISIBILITY GUARD v2
   Never hide Return to timetable / Return to course controls.
========================================================= */
body#page-mod-page-view .singlebutton:has(a[href*="/course/view.php"]),
body#page-mod-page-view .singlebutton:has(input[value*="Back to course"]),
body#page-mod-page-view .singlebutton:has(input[value*="العودة للدورة"]),
#s2e-return-to-table,
#s2e-return-to-timetable,
#s2e-back-to-table,
#s2e-back-to-timetable,
.s2e-return-to-table,
.s2e-return-to-timetable,
.s2e-back-to-table,
.s2e-back-to-timetable,
.s2e-table-return,
.s2e-timetable-return{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  width:auto !important;
  height:auto !important;
  min-width:190px !important;
  min-height:46px !important;
  overflow:visible !important;
  transform:none !important;
}
body#page-mod-page-view .singlebutton:has(a[href*="/course/view.php"]),
body#page-mod-page-view .singlebutton:has(input[value*="Back to course"]),
body#page-mod-page-view .singlebutton:has(input[value*="العودة للدورة"]){
  margin:18px auto 12px !important;
  padding:0 !important;
  text-align:center !important;
}
body#page-mod-page-view .singlebutton a[href*="/course/view.php"],
body#page-mod-page-view .singlebutton input[value*="Back to course"],
body#page-mod-page-view .singlebutton input[value*="العودة للدورة"]{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:190px !important;
  min-height:46px !important;
  padding:8px 18px !important;
  border:2px solid #ffffff !important;
  border-radius:24px !important;
  background:#0b4aa6 !important;
  color:#ffffff !important;
  box-shadow:0 7px 16px rgba(11,74,166,.22) !important;
  font-family:Almarai,Tahoma,Arial,sans-serif !important;
  font-size:16px !important;
  font-weight:900 !important;
  line-height:1.1 !important;
  text-decoration:none !important;
}


/* v20260817 compact professional plan selector */
#s2e-custom-plan-popup>div{width:min(500px,calc(100% - 20px))!important;max-height:86vh!important;border-radius:22px!important}
#s2e-custom-plan-popup .s2e-popup-day-btn{min-height:46px!important;border-radius:12px!important;font-size:16px!important}
#s2e-custom-plan-popup select{min-height:48px!important;border-radius:12px!important;font-size:16px!important}
#s2e-custom-plan-popup #s2e-pop-start{animation:s2eStartIn .18s ease-out}
@keyframes s2eStartIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* v20260817 modern duration and dual-calendar picker */
.s2e-modern-label{text-align:center;color:#0b4595;font-size:18px;font-weight:900;margin-bottom:14px}
.s2e-modern-days{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.s2e-modern-days .s2e-popup-day-btn{min-height:48px;border:2px solid #d6e6fb;border-radius:14px;background:#fff;color:#0b4595;font-weight:900;font-size:16px;cursor:pointer}
.s2e-modern-days .s2e-popup-day-btn.active{background:linear-gradient(135deg,#0d55c6,#1e90ff);color:#fff;border-color:#0d55c6;box-shadow:0 8px 18px rgba(13,85,198,.2)}
.s2e-custom-days-row{margin-top:14px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:#f5f9ff;border:1px solid #dbeaff;border-radius:15px;padding:10px 14px;color:#0b4595;font-weight:900}
.s2e-custom-days-row input{min-width:0;height:44px;border:2px solid #cfe1fa;border-radius:11px;text-align:center;font-size:18px;font-weight:900;color:#0b4595;background:#fff}
.s2e-modern-hint{text-align:center;color:#687a95;font-size:13px;font-weight:800;margin-top:12px}
.s2e-calendar-switch{display:flex;justify-content:center;gap:7px;margin-bottom:12px}.s2e-calendar-switch button{border:1px solid #cfe1fa;background:#f4f8ff;color:#0b4595;border-radius:999px;padding:9px 18px;font-weight:900;cursor:pointer}.s2e-calendar-switch button.active{background:#0d55c6;color:#fff}
.s2e-calendar{border:1px solid #dbe8f8;background:#fff;border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(16,71,145,.08)}
.s2e-calendar-head{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px}.s2e-calendar-head strong{text-align:center;color:#0b4595;font-size:19px}.s2e-calendar-head button{height:40px;border:0;border-radius:11px;background:#edf5ff;color:#0b4595;font-size:25px;font-weight:900;cursor:pointer}.s2e-calendar-head button:disabled{opacity:.3}
.s2e-calendar-week,.s2e-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.s2e-calendar-week{margin:12px 0 6px;color:#70809a;text-align:center;font-size:12px;font-weight:900}.s2e-calendar-grid button,.s2e-calendar-grid span{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:0;border-radius:10px}.s2e-calendar-grid button{background:#f6f9fd;color:#153f79;font-weight:900;cursor:pointer}.s2e-calendar-grid button:hover{background:#e5f1ff}.s2e-calendar-grid button.selected{background:#0d55c6;color:#fff;box-shadow:0 5px 12px rgba(13,85,198,.25)}.s2e-calendar-grid button:disabled{opacity:.25;cursor:not-allowed}
.s2e-selected-date{text-align:center;margin-top:12px;color:#0b4595;min-height:42px}.s2e-selected-date b,.s2e-selected-date small{display:block}.s2e-selected-date small{margin-top:4px;color:#6c7d96;font-weight:800}
@media(max-width:560px){.s2e-modern-days{grid-template-columns:repeat(2,1fr)}.s2e-calendar{padding:10px}.s2e-calendar-grid button{border-radius:8px;font-size:13px}}

/* v20260817 final visual picker refinements */
.s2e-modern-days{grid-template-columns:repeat(3,1fr)!important}
.s2e-custom-days-row[hidden]{display:none!important}
.s2e-other-days-btn{background:#f2f6fc!important;border-style:dashed!important}
.s2e-other-days-btn.active{background:linear-gradient(135deg,#0d55c6,#1e90ff)!important;border-style:solid!important}
.s2e-calendar-grid button:disabled{background:#f5f6f8!important;color:#aeb7c4!important;opacity:.48!important;text-decoration:line-through;text-decoration-thickness:1px}
@media(max-width:560px){.s2e-modern-days{grid-template-columns:repeat(2,1fr)!important}}

/* v20260817 clean days input only */
.s2e-days-clean-icon{width:58px;height:58px;margin:0 auto 14px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0d55c6,#1e90ff);font-size:28px;box-shadow:0 10px 22px rgba(13,85,198,.2)}
.s2e-days-clean-input{width:min(300px,100%);margin:0 auto;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;background:#f6f9fe;border:1px solid #dbe8f8;border-radius:17px;padding:12px 16px;color:#0b4595;font-size:18px;font-weight:900}
.s2e-days-clean-input input{width:100%;height:54px;box-sizing:border-box;border:2px solid #cfe1fa;border-radius:13px;background:#fff;color:#0b4595;text-align:center;font-size:21px;font-weight:900;outline:none}
.s2e-days-clean-input input:focus{border-color:#1e90ff;box-shadow:0 0 0 3px rgba(30,144,255,.12)}

/* v20260817 polished chooser: exam first, no repeated copy */
.s2e-setup-box-final{padding:22px 20px!important;overflow:visible!important}
.s2e-setup-box-final .s2e-plan-title{margin-bottom:18px!important}
.s2e-two-plan-grid{gap:12px!important}
.s2e-two-plan-card{border:1px solid #d8e6f7!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 24px rgba(24,67,130,.08)!important;gap:7px!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
.s2e-two-plan-card:hover{transform:translateY(-2px)!important;border-color:#9fc9ff!important;box-shadow:0 12px 28px rgba(24,67,130,.13)!important}
.s2e-two-plan-card .s2e-plan-tab-icon{width:42px;height:42px;border-radius:13px;display:flex!important;align-items:center!important;justify-content:center!important;background:#edf5ff;color:#0d55c6;font-size:22px!important;line-height:1!important}
.s2e-two-plan-card .s2e-plan-tab-main{font-size:20px!important;color:#0b4595!important;font-weight:950!important}
.s2e-two-plan-card.active .s2e-plan-tab-main{color:#fff!important}
.s2e-two-plan-card.active .s2e-plan-tab-icon{background:rgba(255,255,255,.18);color:#fff}


/* =========================================================
   S2E v2000 - PLAN DURATION + WEEKLY STUDY DAYS
========================================================= */
#s2e-custom-plan-popup .s2e-custom-plan-box{
  width:min(560px,100%)!important;max-height:90vh!important;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;
  border-radius:26px!important;border:2px solid #d7e8ff!important;box-shadow:0 24px 54px rgba(13,31,92,.18)!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
#s2e-custom-plan-popup .s2e-custom-plan-head{display:grid!important;grid-template-columns:44px 1fr 44px!important;align-items:center!important;padding:15px 18px!important;border-bottom:1px solid #eef6ff!important;background:#fbfdff!important}
#s2e-custom-plan-popup .s2e-custom-plan-head h2{grid-column:2!important;margin:0!important;color:#0b4595!important;font-size:25px!important;font-weight:900!important;text-align:center!important;line-height:1.25!important}
#s2e-custom-plan-popup #s2e-pop-close{grid-column:1!important;grid-row:1!important;width:44px!important;height:44px!important;border:0!important;border-radius:14px!important;background:linear-gradient(180deg,#0d55c6 0%,#073f91 100%)!important;color:#fff!important;font-size:27px!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;box-shadow:0 8px 18px rgba(13,80,180,.18)!important}
#s2e-custom-plan-popup .s2e-custom-plan-body{padding:18px!important;flex:1 1 auto!important;overflow-y:auto!important;overscroll-behavior:contain!important}
#s2e-custom-plan-popup .s2e-custom-plan-foot{padding:12px 18px 16px!important;border-top:1px solid #eef6ff!important;background:#fff!important;flex:0 0 auto!important}
#s2e-custom-plan-popup #s2e-pop-error{text-align:center!important;color:#c62828!important;font-weight:900!important;min-height:20px!important;font-size:14px!important;line-height:1.5!important;margin-bottom:6px!important}
#s2e-custom-plan-popup #s2e-pop-start{width:100%!important;min-height:52px!important;border:0!important;border-radius:16px!important;background:linear-gradient(135deg,#0b3d91,#1e90ff)!important;color:#fff!important;font-size:20px!important;font-weight:900!important;cursor:pointer!important;box-shadow:0 10px 20px rgba(13,85,198,.20)!important}
#s2e-custom-plan-popup #s2e-pop-start:disabled{opacity:.65!important;cursor:wait!important}

.s2e-duration-intro{text-align:center;color:#526b91;font-size:17px;font-weight:900;line-height:1.65;margin:0 0 10px}
.s2e-duration-scroll{width:100%;max-height:210px;overflow-y:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;background:#f5f9ff;border:2px solid #dbe9fb;border-radius:18px;scrollbar-width:thin;overscroll-behavior:contain}
.s2e-duration-day{min-height:44px;border:2px solid #d7e7fb;border-radius:13px;background:#fff;color:#0b4595;font:900 16px Tahoma,Arial,sans-serif;cursor:pointer;transition:.12s ease}
.s2e-duration-day:hover{border-color:#8dbcf5;background:#f0f7ff}
.s2e-duration-day.active{background:linear-gradient(135deg,#0b3d91,#1e90ff);color:#fff;border-color:transparent;box-shadow:0 7px 15px rgba(13,85,198,.20)}
.s2e-duration-selected{text-align:center;margin:9px 0 0;color:#0b4595;font-size:16px;font-weight:900;min-height:24px}

.s2e-week-plan-step{margin-top:16px;padding:15px 12px 13px;background:#fff;border:2px solid #d9e8fb;border-radius:20px;box-shadow:0 8px 18px rgba(13,31,92,.05)}
.s2e-week-plan-title{text-align:center;color:#073f91;font-size:20px;font-weight:900;line-height:1.4}
.s2e-week-plan-sub{text-align:center;color:#6a7f9b;font-size:13px;font-weight:800;line-height:1.5;margin:3px 0 11px}
.s2e-week-counts{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;direction:ltr}
.s2e-week-counts button{min-width:0;min-height:42px;padding:0;border:2px solid #d7e7fb;border-radius:12px;background:#f8fbff;color:#0b4595;font:900 16px Verdana,Tahoma,Arial,sans-serif;cursor:pointer}
.s2e-week-counts button.active{background:#0d55c6;color:#fff;border-color:#0d55c6;box-shadow:0 5px 12px rgba(13,85,198,.20)}
.s2e-weekdays-area{margin-top:12px}
.s2e-weekdays-hint{text-align:center;color:#526b91;font-size:14px;font-weight:900;margin-bottom:8px}
.s2e-weekdays-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.s2e-weekdays-grid button{min-height:44px;border:2px solid #d7e7fb;border-radius:13px;background:#fff;color:#174f9f;font:900 15px Tahoma,Arial,sans-serif;cursor:pointer;padding:7px 5px}
.s2e-weekdays-grid button.active{background:linear-gradient(180deg,#e8f4ff 0%,#d9ebff 100%);border-color:#1e90ff;color:#073f91;box-shadow:inset 0 0 0 1px #1e90ff}
.s2e-week-selection-summary{text-align:center;color:#14653b;font-size:14px;font-weight:900;line-height:1.5;margin-top:9px;min-height:20px}
.s2e-study-schedule-summary{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:8px;padding:8px 10px;border:1px solid #d8e9fb;border-radius:14px;background:#f8fbff;color:#4d678b;font-size:13px;font-weight:900;text-align:center}
.s2e-study-schedule-summary strong{color:#0b4595}.s2e-study-schedule-summary span{color:#526b91}

@media(max-width:560px){
  #s2e-custom-plan-popup{padding:8px!important}
  #s2e-custom-plan-popup .s2e-custom-plan-head{grid-template-columns:40px 1fr 40px!important;padding:12px 12px!important}
  #s2e-custom-plan-popup .s2e-custom-plan-head h2{font-size:21px!important}
  #s2e-custom-plan-popup #s2e-pop-close{width:40px!important;height:40px!important;font-size:25px!important}
  #s2e-custom-plan-popup .s2e-custom-plan-body{padding:13px!important}
  .s2e-duration-scroll{grid-template-columns:repeat(4,minmax(0,1fr));max-height:200px;padding:8px;gap:6px}
  .s2e-duration-day{min-height:42px;font-size:15px}
  .s2e-week-plan-title{font-size:18px}
  .s2e-week-counts{gap:4px}.s2e-week-counts button{min-height:39px;font-size:14px;border-radius:10px}
  .s2e-weekdays-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .s2e-weekdays-grid button{min-height:42px;font-size:14px}
}

/* =========================================================
   S2E v2002 - FINAL DURATION ORDER + DAY OPEN BUTTON CLEANUP
   - Duration numbers always read 7,8,9... from left to right.
   - Remove the misleading accordion arrow from the day-open button.
========================================================= */
#s2e-custom-plan-popup .s2e-duration-scroll{
  direction:ltr !important;
}
#s2e-custom-plan-popup .s2e-duration-day{
  direction:ltr !important;
  unicode-bidi:isolate !important;
}
#s2e-plan-root .s2e-open-btn::after{
  content:none !important;
  display:none !important;
}


/* =========================================================
   S2E v2010 - AUTO STEP SCROLL POLISH
========================================================= */
#s2e-custom-plan-popup .s2e-week-plan-step{scroll-margin-top:10px!important;}
#s2e-custom-plan-popup .s2e-weekdays-area{scroll-margin-top:10px!important;}
#s2e-custom-plan-popup .s2e-custom-plan-body{scroll-behavior:smooth!important;}

/* =========================================================
   S2E v2010 - FREE DAY ROOT OWNERSHIP
========================================================= */
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn{
  pointer-events:auto!important;
  cursor:pointer!important;
  opacity:1!important;
}
#s2e-day-popup{z-index:2147483000!important;}

/* =========================================================
   S2E v2013 - ACTIVE / FREE DAY PRIMARY CARD
   The card students should enter is unmistakably the primary action.
========================================================= */
#s2e-plan-root .s2e-day-card.s2e-primary-study-card,
#s2e-plan-root .s2e-day-card[data-primary-card="1"],
#s2e-plan-root .s2e-day-card[data-day-status="free_open"]{
  background:linear-gradient(135deg,#0b3d91 0%,#0b63ce 100%)!important;
  border:2px solid #0b3d91!important;
  box-shadow:0 16px 34px rgba(11,61,145,.24)!important;
  border-radius:22px!important;
  overflow:hidden!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-head,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-head,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-head{
  background:transparent!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-weekday,
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-date,
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-label,
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-state,
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-progress-mini,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-weekday,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-date,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-label,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-state,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-progress-mini,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-weekday,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-date,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-label{
  color:#fff!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-label,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-label,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-label{
  background:rgba(255,255,255,.14)!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-badge-free,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-badge-free,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-badge-free{
  background:#fff!important;
  color:#0b3d91!important;
  border-color:#fff!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-actions,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-actions,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-actions{
  background:transparent!important;
  padding:9px 12px 13px!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-open-btn,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-open-btn,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn{
  min-height:48px!important;
  background:#fff!important;
  background-image:none!important;
  color:#0b3d91!important;
  border:2px solid #fff!important;
  border-radius:15px!important;
  font-size:18px!important;
  font-weight:900!important;
  box-shadow:0 8px 20px rgba(0,0,0,.12)!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-open-btn:hover,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-open-btn:hover,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn:hover{
  background:#f4f8ff!important;
  color:#07377f!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card:focus,
#s2e-plan-root .s2e-day-card[data-primary-card="1"]:focus{
  outline:3px solid rgba(11,99,206,.28)!important;
  outline-offset:4px!important;
}
@media(max-width:480px){
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-open-btn,
  #s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-open-btn,
  #s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn{
    min-height:46px!important;
    font-size:17px!important;
  }
}

/* =========================================================
   S2E v2014 - COMPACT PRIMARY STUDY CARD
   Fixes old high-specificity current/prev-missing styles and keeps the
   active/free card clear without making it oversized.
========================================================= */
#s2e-plan-root .s2e-day-card.current.s2e-primary-study-card:not(.done),
#s2e-plan-root .s2e-day-card.prev-missing.s2e-primary-study-card,
#s2e-plan-root .s2e-day-card.current[data-primary-card="1"]:not(.done),
#s2e-plan-root .s2e-day-card.prev-missing[data-primary-card="1"],
#s2e-plan-root .s2e-day-card.current[data-day-status="free_open"]:not(.done),
#s2e-plan-root .s2e-day-card.prev-missing[data-day-status="free_open"]{
  background:#0b55b7!important;
  border:2px solid #0b55b7!important;
  box-shadow:0 7px 18px rgba(11,85,183,.16)!important;
  border-radius:18px!important;
  padding:0!important;
  overflow:hidden!important;
}

#s2e-plan-root .s2e-day-card.s2e-primary-study-card,
#s2e-plan-root .s2e-day-card[data-primary-card="1"],
#s2e-plan-root .s2e-day-card[data-day-status="free_open"]{
  padding:0!important;
  min-height:0!important;
}

#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-head,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-head,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-head,
#s2e-plan-root .s2e-day-card.current.s2e-primary-study-card .s2e-day-head{
  min-height:0!important;
  padding:11px 12px 7px!important;
  gap:2px!important;
  background:transparent!important;
  border-bottom:0!important;
}

#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-weekday,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-weekday,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-weekday{
  margin:0!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1.15!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-date,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-date,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-date{
  margin:1px 0!important;
  color:rgba(255,255,255,.84)!important;
  font-size:12px!important;
  line-height:1.2!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-label,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-label,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-label{
  min-height:25px!important;
  margin:3px auto 1px!important;
  padding:2px 10px!important;
  background:rgba(255,255,255,.16)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  color:#fff!important;
  font-size:12px!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-badge-free,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-badge-free,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-badge-free{
  min-height:24px!important;
  margin:2px auto 0!important;
  padding:2px 9px!important;
  background:#fff4cf!important;
  color:#9a6200!important;
  border:1px solid #f3d47d!important;
  font-size:12px!important;
}

#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-actions,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-actions,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-actions{
  padding:6px 9px 9px!important;
  gap:0!important;
  background:transparent!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-open-btn,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-open-btn,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn{
  min-height:39px!important;
  padding:5px 12px!important;
  border:0!important;
  border-radius:12px!important;
  background:#fff!important;
  background-image:none!important;
  color:#0b55b7!important;
  font-size:16px!important;
  font-weight:900!important;
  box-shadow:none!important;
}

@media(max-width:480px){
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-head,
  #s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-head,
  #s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-head{padding:9px 9px 6px!important}
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-weekday,
  #s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-weekday,
  #s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-weekday{font-size:18px!important}
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-open-btn,
  #s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-open-btn,
  #s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn{min-height:37px!important;font-size:15px!important}
}

/* =========================================================
   S2E v2015 - BALANCED ACTIVE STUDY CARD
   Compact, readable active/free card without oversized whitespace.
========================================================= */
#s2e-plan-root .s2e-day-card.s2e-primary-study-card,
#s2e-plan-root .s2e-day-card[data-primary-card="1"],
#s2e-plan-root .s2e-day-card[data-day-status="free_open"]{
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  margin-top:0!important;
  background:#0b55b7!important;
  background-image:linear-gradient(135deg,#0b4fa7 0%,#1268cf 100%)!important;
  border:1px solid #0b55b7!important;
  border-radius:18px!important;
  box-shadow:0 7px 18px rgba(11,85,183,.16)!important;
  overflow:hidden!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-head,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-head,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-head{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:0!important;
  height:auto!important;
  padding:12px 12px 8px!important;
  gap:3px!important;
  background:transparent!important;
  background-image:none!important;
  border:0!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-weekday,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-weekday,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-weekday{
  margin:0!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1.15!important;
  font-weight:900!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-date,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-date,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-date{
  margin:0!important;
  color:rgba(255,255,255,.88)!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-label,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-label,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-label{
  min-height:0!important;
  height:auto!important;
  margin:3px auto 0!important;
  padding:4px 10px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.15)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1.15!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-badge-free,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-badge-free,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-badge-free{
  min-height:0!important;
  height:auto!important;
  margin:4px auto 0!important;
  padding:4px 10px!important;
  border-radius:999px!important;
  background:#fff4cf!important;
  color:#8b5a00!important;
  border:1px solid #f1d16f!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:900!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-actions,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-actions,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-actions{
  min-height:0!important;
  height:auto!important;
  padding:7px 10px 10px!important;
  gap:0!important;
  background:transparent!important;
  background-image:none!important;
  border:0!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-open-btn,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-open-btn,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn{
  width:100%!important;
  min-height:40px!important;
  height:40px!important;
  padding:5px 12px!important;
  border:0!important;
  border-radius:12px!important;
  background:#fff!important;
  background-image:none!important;
  color:#0b4fa7!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:none!important;
}
#s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-progress-mini,
#s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-progress-mini,
#s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-progress-mini{
  color:#fff!important;
  font-size:12px!important;
  margin-top:2px!important;
}
@media(max-width:480px){
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-head,
  #s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-head,
  #s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-head{padding:10px 10px 7px!important}
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-day-weekday,
  #s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-day-weekday,
  #s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-day-weekday{font-size:18px!important}
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card .s2e-open-btn,
  #s2e-plan-root .s2e-day-card[data-primary-card="1"] .s2e-open-btn,
  #s2e-plan-root .s2e-day-card[data-day-status="free_open"] .s2e-open-btn{height:38px!important;min-height:38px!important;font-size:15px!important}
}

/* =========================================================
   S2E v2016 - REAL TODAY REST CARD
========================================================= */
#s2e-plan-root .s2e-rest-day-card .s2e-day-state{
  margin:4px auto 0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  color:rgba(255,255,255,.92)!important;
  font-size:12px!important;
  font-weight:800!important;
}
#s2e-plan-root .s2e-rest-day-card .s2e-day-label{
  background:rgba(255,255,255,.18)!important;
}

/* =========================================================
   S2E v2017 - REST DAY LABEL VISIBILITY
========================================================= */
#s2e-plan-root .s2e-rest-day-card .s2e-day-label{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  margin:6px auto 2px!important;
  padding:6px 18px!important;
  background:#ffffff!important;
  border:0!important;
  color:#0b55b7!important;
  font-size:16px!important;
  line-height:1.15!important;
  font-weight:900!important;
  opacity:1!important;
}
#s2e-plan-root .s2e-rest-day-card .s2e-day-state{
  color:#ffffff!important;
  opacity:1!important;
  font-size:13px!important;
}
@media(max-width:480px){
  #s2e-plan-root .s2e-rest-day-card .s2e-day-label{font-size:15px!important;padding:5px 15px!important;}
}

/* =========================================================
   V13 — Smart-plan rebuild choices
========================================================= */
.s2e-rebuild-dialog{max-width:680px}
.s2e-rebuild-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 10px}
.s2e-rebuild-choice{appearance:none;border:2px solid #d8e5f7;background:#fff;border-radius:20px;padding:16px 14px;cursor:pointer;text-align:right;direction:rtl;display:flex;flex-direction:column;gap:6px;min-height:118px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.s2e-rebuild-choice strong{font-size:19px;line-height:1.45;color:#153f88;font-weight:900}
.s2e-rebuild-choice span{font-size:14px;line-height:1.7;color:#60769a;font-weight:800}
.s2e-rebuild-choice.fresh{border-color:#b9d1f1;background:#f8fbff}
.s2e-rebuild-choice.resume{border-color:#bfe3ca;background:#f7fcf8}
.s2e-rebuild-choice:hover,.s2e-rebuild-choice:focus-visible{transform:translateY(-1px);box-shadow:0 10px 22px rgba(20,60,120,.12);outline:none}
.s2e-rebuild-choice.fresh:hover,.s2e-rebuild-choice.fresh:focus-visible{border-color:#5c8fd5}
.s2e-rebuild-choice.resume:hover,.s2e-rebuild-choice.resume:focus-visible{border-color:#68ae7b}
.s2e-rebuild-note{font-size:13px;line-height:1.7;color:#6b7f98;background:#f6f8fb;border-radius:14px;padding:9px 11px;font-weight:800}
@media (max-width:640px){
  .s2e-rebuild-choices{grid-template-columns:1fr}
  .s2e-rebuild-choice{min-height:0;padding:14px 12px}
  .s2e-rebuild-choice strong{font-size:17px}
  .s2e-rebuild-choice span{font-size:13px}
}

/* =========================================================
   V14 — Pedagogical plan + compact rebuild dialog
========================================================= */
.s2e-rebuild-dialog{
  position:relative!important;
  max-width:620px!important;
  padding-top:58px!important;
}
.s2e-rebuild-dialog .s2e-close-mini{
  position:absolute!important;
  top:12px!important;
  left:12px!important;
  right:auto!important;
  margin:0!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:13px!important;
}
.s2e-rebuild-dialog .s2e-dialog-title{margin:0 0 12px!important}
.s2e-rebuild-dialog .s2e-dialog-text,
.s2e-rebuild-dialog .s2e-rebuild-note{display:none!important}
.s2e-rebuild-choices{margin:6px 0 0!important;gap:12px!important}
.s2e-rebuild-choice{min-height:88px!important;padding:14px!important;justify-content:center!important}
.s2e-rebuild-choice strong{font-size:19px!important}
.s2e-rebuild-choice span{font-size:13px!important;line-height:1.45!important}

/* Unified close location: LEFT side in timetable popups. */
#s2e-plan-root ~ .s2e-overlay .s2e-close-mini,
#s2e-plan-root ~ .s2e-overlay .s2e-close-btn,
.s2e-overlay .s2e-close-mini,
.s2e-overlay .s2e-close-btn{
  left:12px!important;
  right:auto!important;
  margin-left:0!important;
  margin-right:auto!important;
}
#s2e-basic-unified-popup .s2eb-close{
  left:14px!important;
  right:auto!important;
}
@media(max-width:640px){
  .s2e-rebuild-dialog{padding-top:54px!important}
  .s2e-rebuild-choices{grid-template-columns:1fr!important}
  .s2e-rebuild-choice{min-height:74px!important}
}

/* =========================================================
   S2E V15.6 - Simple plan setup wizard
   موعد اختبار؟ نعم/لا -> مدة/تاريخ -> أيام الأسبوع
========================================================= */
#s2e-custom-plan-popup .s2e-simple-plan-box{max-width:620px!important;width:min(620px,calc(100vw - 24px))!important;max-height:min(86vh,760px)!important;border-radius:24px!important;overflow:hidden!important}
#s2e-custom-plan-popup .s2e-custom-plan-head{min-height:74px!important;padding:14px 20px!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important}
#s2e-custom-plan-popup .s2e-custom-plan-head h2{margin:0!important;font-size:26px!important;line-height:1.25!important;color:#0b4da2!important;text-align:center!important}
#s2e-custom-plan-popup #s2e-pop-close{position:absolute!important;left:14px!important;right:auto!important;top:14px!important;width:46px!important;height:46px!important;border-radius:14px!important}
#s2e-custom-plan-popup .s2e-custom-plan-body{padding:18px 20px 24px!important;max-height:calc(86vh - 150px)!important;overflow:auto!important}
#s2e-custom-plan-popup .s2e-simple-duration-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
#s2e-custom-plan-popup .s2e-simple-duration-btn{min-height:64px!important;border:1.5px solid #cfe0f8!important;border-radius:16px!important;background:#fff!important;color:#0b4da2!important;font-size:19px!important;font-weight:900!important;cursor:pointer!important}
#s2e-custom-plan-popup .s2e-simple-duration-btn.active{border-color:#1769d4!important;background:#edf5ff!important;box-shadow:0 0 0 2px rgba(23,105,212,.08)!important}
#s2e-custom-plan-popup .s2e-custom-duration-row{margin-top:12px!important;padding:14px!important;border:1px solid #d7e5f7!important;border-radius:16px!important;background:#f8fbff!important;text-align:center!important}
#s2e-custom-plan-popup .s2e-custom-duration-row label{display:block!important;font-weight:900!important;color:#0b4da2!important;margin-bottom:8px!important}
#s2e-custom-plan-popup .s2e-custom-duration-controls{display:grid!important;grid-template-columns:48px 1fr 48px!important;gap:8px!important;align-items:center!important}
#s2e-custom-plan-popup .s2e-custom-duration-controls button,#s2e-custom-plan-popup #s2e-custom-duration-apply{min-height:44px!important;border:1px solid #bcd5f4!important;border-radius:12px!important;background:#fff!important;color:#0b4da2!important;font-weight:900!important}
#s2e-custom-plan-popup .s2e-custom-duration-controls input{height:46px!important;border:1px solid #bcd5f4!important;border-radius:12px!important;text-align:center!important;font-size:18px!important;font-weight:900!important;color:#0b4da2!important;background:#fff!important}
#s2e-custom-plan-popup #s2e-custom-duration-apply{margin-top:8px!important;padding:0 18px!important;background:#1769d4!important;color:#fff!important;border-color:#1769d4!important}
#s2e-custom-plan-popup .s2e-duration-picked{min-height:24px!important;margin-top:10px!important;text-align:center!important;color:#0b4da2!important;font-size:17px!important}
#s2e-custom-plan-popup .s2e-week-plan-step{margin-top:18px!important;padding-top:18px!important;border-top:1px solid #dbe7f5!important}
#s2e-custom-plan-popup .s2e-week-plan-title{font-size:22px!important;font-weight:900!important;color:#0b4da2!important;text-align:center!important;margin-bottom:12px!important}
#s2e-custom-plan-popup .s2e-week-counts{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:7px!important}
#s2e-custom-plan-popup .s2e-week-counts button,#s2e-custom-plan-popup .s2e-weekdays-grid button{min-height:46px!important;border:1.5px solid #cfe0f8!important;border-radius:12px!important;background:#fff!important;color:#0b4da2!important;font-weight:900!important}
#s2e-custom-plan-popup .s2e-week-counts button.active,#s2e-custom-plan-popup .s2e-weekdays-grid button.active{background:#1769d4!important;color:#fff!important;border-color:#1769d4!important}
#s2e-custom-plan-popup .s2e-weekdays-area{margin-top:14px!important}
#s2e-custom-plan-popup .s2e-weekdays-hint{text-align:center!important;font-weight:800!important;color:#60738d!important;margin-bottom:8px!important}
#s2e-custom-plan-popup .s2e-weekdays-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#s2e-custom-plan-popup .s2e-friday-choice-note{margin-top:12px!important;padding:10px 12px!important;border-radius:12px!important;background:#f4f0ff!important;color:#6a42b8!important;text-align:center!important;font-weight:850!important;line-height:1.45!important}
#s2e-custom-plan-popup .s2e-friday-choice-note:empty{display:none!important}
#s2e-custom-plan-popup .s2e-friday-choice-note small{display:block!important;margin-top:4px!important;font-size:12px!important;color:#6d7480!important;font-weight:700!important}
#s2e-custom-plan-popup .s2e-week-selection-summary{text-align:center!important;margin-top:8px!important;color:#0b4da2!important;font-weight:800!important;font-size:14px!important}
#s2e-custom-plan-popup .s2e-custom-plan-foot{padding:12px 18px 16px!important}
#s2e-custom-plan-popup #s2e-pop-start{min-height:50px!important;border-radius:14px!important;font-size:18px!important;font-weight:900!important}
@media(max-width:600px){
  #s2e-custom-plan-popup .s2e-custom-plan-head h2{font-size:22px!important;padding-inline:48px!important}
  #s2e-custom-plan-popup .s2e-simple-duration-grid{grid-template-columns:1fr 1fr!important}
  #s2e-custom-plan-popup .s2e-week-counts{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  #s2e-custom-plan-popup .s2e-weekdays-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* =========================================================
   S2E V15.7 - UI refinement only
   Wizard steps + compact day card + bilingual section labels
========================================================= */
#s2e-custom-plan-popup .s2e-custom-plan-head{position:relative!important;justify-content:center!important;min-height:72px!important;padding:12px 118px 12px 20px!important}
#s2e-custom-plan-popup #s2e-pop-close{position:absolute!important;left:14px!important;right:auto!important;top:13px!important;width:46px!important;height:46px!important;border-radius:14px!important}
#s2e-custom-plan-popup .s2e-wizard-back{position:absolute!important;left:68px!important;right:auto!important;top:13px!important;width:46px!important;height:46px!important;border:1.5px solid #bfd6f4!important;border-radius:14px!important;background:#f7fbff!important;color:#0b4da2!important;font:900 34px/1 Tahoma,Arial,sans-serif!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;padding:0 0 4px!important}
#s2e-custom-plan-popup .s2e-wizard-back:hover{background:#eef6ff!important}
#s2e-custom-plan-popup .s2e-custom-plan-head h2{padding:0!important;min-width:0!important}
#s2e-custom-plan-popup .s2e-wizard-selected{margin:0 auto 18px!important;max-width:360px!important;min-height:70px!important;padding:12px 16px!important;border:2px solid #1769d4!important;border-radius:18px!important;background:#edf5ff!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;color:#0b4da2!important;box-shadow:0 6px 18px rgba(23,105,212,.08)!important}
#s2e-custom-plan-popup .s2e-wizard-selected-main{font-size:23px!important;font-weight:900!important;line-height:1.3!important}
#s2e-custom-plan-popup .s2e-wizard-selected-sub{margin-top:3px!important;font-size:13px!important;font-weight:800!important;color:#657b98!important}
#s2e-custom-plan-popup .s2e-week-counts-step{max-width:470px!important;margin:0 auto!important}
#s2e-custom-plan-popup .s2e-weekdays-grid-step{max-width:480px!important;margin:0 auto!important}
#s2e-custom-plan-popup .s2e-weekdays-hint{font-size:17px!important;margin-bottom:12px!important}
#s2e-custom-plan-popup .s2e-week-selection-summary{min-height:24px!important;font-size:15px!important;margin-top:12px!important}
#s2e-custom-plan-popup .s2e-friday-choice-note{display:none!important}

/* compact current-day card: weekday + date + numeric day on one line */
#s2e-plan-root .s2e-day-head.s2e-day-head-compact{padding:9px 12px 7px!important}
#s2e-plan-root .s2e-day-meta-line{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important;line-height:1.2!important}
#s2e-plan-root .s2e-day-meta-line .s2e-day-weekday,#s2e-plan-root .s2e-day-meta-line .s2e-day-date,#s2e-plan-root .s2e-day-meta-line .s2e-day-label{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;min-height:0!important;width:auto!important}
#s2e-plan-root .s2e-day-meta-line .s2e-day-weekday{font-size:18px!important;color:#0b55b7!important;font-weight:900!important}
#s2e-plan-root .s2e-day-meta-line .s2e-day-date{font-size:14px!important;color:#60789a!important;font-weight:850!important}
#s2e-plan-root .s2e-day-meta-line .s2e-day-label{font-size:14px!important;color:#0b55b7!important;font-weight:900!important}
#s2e-plan-root .s2e-day-meta-dot{color:#9aabc0!important;font-size:13px!important;font-weight:900!important}
#s2e-plan-root .s2e-day-head-compact .s2e-day-state{margin-top:5px!important}
#s2e-plan-root .s2e-day-head-compact .s2e-day-progress-mini{margin-top:2px!important}

/* compact day-study popup */
#s2e-day-popup .s2e-popup-head-compact{padding:11px 14px!important}
#s2e-day-popup .s2e-popup-meta-line{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;flex-wrap:wrap!important;color:#174c9f!important;font-size:18px!important;font-weight:900!important;line-height:1.35!important}
#s2e-day-popup .s2e-popup-meta-dot{color:#9aaac0!important;font-size:13px!important}
#s2e-day-popup .s2e-day-study-heading{padding:8px 12px!important;margin:3px 0 7px!important;font-size:18px!important;min-height:0!important}
#s2e-day-popup .s2e-day-study-heading-en{font-family:Verdana,Arial,sans-serif!important;font-size:.82em!important;font-weight:800!important;direction:ltr!important;display:inline-block!important}
#s2e-day-popup .s2e-day-study-heading-sep{opacity:.45!important;margin-inline:5px!important}
#s2e-day-popup .s2e-popup-body{gap:6px!important;padding:9px 11px!important}
#s2e-day-popup .s2e-item-row{gap:7px!important}
#s2e-day-popup .s2e-item-link{padding:8px 9px!important;border-radius:14px!important;gap:7px!important;min-height:44px!important}
#s2e-day-popup .s2e-item-done{flex-basis:66px!important;width:66px!important;min-width:66px!important;max-width:66px!important;min-height:42px!important;padding:5px 3px!important;border-radius:13px!important;font-size:14px!important}
#s2e-day-popup .s2e-item-ar{font-size:18px!important;line-height:1.25!important}
#s2e-day-popup .s2e-item-en{font-size:11px!important;margin-top:2px!important}
#s2e-day-popup .s2e-item-go{min-width:58px!important;min-height:38px!important;padding:6px 7px!important;border-radius:12px!important;font-size:14px!important}
#s2e-day-popup .s2e-day-study-separator{margin:4px 0 7px!important;height:1px!important;background:#dfe8f4!important}

/* hide the global return-to-course button only while Study Day is open */
html.s2e-study-day-open #s2e-independent-return-nav-v1{display:none!important;visibility:hidden!important;pointer-events:none!important}
html.s2e-study-day-open #s2e-table-return-course,
html.s2e-study-day-open .s2e-return-to-course,
html.s2e-study-day-open .s2e-back-to-course{display:none!important;visibility:hidden!important}

@media(max-width:600px){
  #s2e-custom-plan-popup .s2e-custom-plan-head{padding-inline:112px 14px!important}
  #s2e-custom-plan-popup .s2e-wizard-selected-main{font-size:20px!important}
  #s2e-custom-plan-popup .s2e-week-counts-step{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  #s2e-custom-plan-popup .s2e-weekdays-grid-step{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #s2e-plan-root .s2e-day-meta-line{gap:6px!important}
  #s2e-plan-root .s2e-day-meta-line .s2e-day-weekday{font-size:17px!important}
  #s2e-plan-root .s2e-day-meta-line .s2e-day-date,#s2e-plan-root .s2e-day-meta-line .s2e-day-label{font-size:13px!important}
  #s2e-day-popup .s2e-popup-meta-line{font-size:15px!important;gap:6px!important}
  #s2e-day-popup .s2e-day-study-heading{font-size:16px!important;padding:7px 10px!important}
  #s2e-day-popup .s2e-item-ar{font-size:15px!important}
  #s2e-day-popup .s2e-item-done{width:58px!important;min-width:58px!important;max-width:58px!important;font-size:12px!important}
  #s2e-day-popup .s2e-item-go{min-width:54px!important;font-size:13px!important}
}


/* =========================================================
   S2E V15.8 - UI micro polish only
   - First question = Yes / No only
   - Back arrow replaces X in wizard steps
   - Duration title right aligned
   - Study section headings centered
   - Day number highlighted and shown before date
========================================================= */
#s2e-plan-root .s2e-yesno-grid .s2e-plan-tab-icon,
#s2e-plan-root .s2e-yesno-grid .s2e-plan-tab-desc{display:none!important}
#s2e-plan-root .s2e-yesno-grid .s2e-plan-tab-main{font-size:24px!important;font-weight:900!important;line-height:1!important}
#s2e-plan-root .s2e-yesno-grid .s2e-plan-tab{padding:0 16px!important;border-radius:18px!important}

#s2e-custom-plan-popup #s2e-pop-close{display:none!important}
#s2e-custom-plan-popup .s2e-wizard-back{
  left:14px!important;
  right:auto!important;
  top:13px!important;
  width:46px!important;
  height:46px!important;
}
#s2e-custom-plan-popup .s2e-custom-plan-head{
  padding-left:72px!important;
  padding-right:18px!important;
}
#s2e-custom-plan-popup .s2e-custom-plan-head h2{
  width:100%!important;
  text-align:center!important;
}
#s2e-custom-plan-popup .s2e-custom-plan-head h2.s2e-wizard-title-right{
  text-align:right!important;
}

#s2e-day-popup .s2e-day-study-heading{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

#s2e-plan-root .s2e-day-meta-line{
  direction:rtl!important;
}
#s2e-plan-root .s2e-day-meta-line .s2e-day-label{
  padding:5px 11px!important;
  border-radius:999px!important;
  background:#e7f1ff!important;
  color:#0757bd!important;
  border:1px solid #c6ddfb!important;
  font-size:14px!important;
  font-weight:900!important;
}

#s2e-day-popup .s2e-popup-meta-line{
  direction:rtl!important;
}
#s2e-day-popup .s2e-popup-day-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  background:#e7f1ff!important;
  color:#0757bd!important;
  border:1px solid #c6ddfb!important;
  font-weight:900!important;
}
#s2e-day-popup .s2e-popup-date{color:#174c9f!important;font-weight:900!important}
#s2e-day-popup .s2e-popup-weekday{color:#5d7393!important;font-weight:900!important}

@media(max-width:600px){
  #s2e-plan-root .s2e-yesno-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  #s2e-plan-root .s2e-yesno-grid .s2e-plan-tab-main{font-size:21px!important}
  #s2e-custom-plan-popup .s2e-custom-plan-head{padding-left:68px!important;padding-right:12px!important}
  #s2e-custom-plan-popup .s2e-custom-plan-head h2.s2e-wizard-title-right{font-size:24px!important}
}


/* S2E V15.9 UI micro fixes */
#s2e-plan-root .s2e-yesno-grid,
#s2e-plan-root .s2e-plan-tabs-setup.s2e-yesno-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
#s2e-plan-root .s2e-yesno-grid>.s2e-plan-tab,
#s2e-plan-root .s2e-yesno-grid>.s2e-plan-tab:first-child,
#s2e-plan-root .s2e-yesno-grid>.s2e-plan-tab:last-child{
  grid-column:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:76px!important;
}
#s2e-custom-plan-popup .s2e-wizard-back,
#s2e-plan-root .s2e-back-plan-btn{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  text-align:center!important;
}
@media(max-width:520px){
  #s2e-plan-root .s2e-yesno-grid,
  #s2e-plan-root .s2e-plan-tabs-setup.s2e-yesno-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  #s2e-plan-root .s2e-yesno-grid>.s2e-plan-tab{min-height:68px!important;padding:10px 8px!important}
}
/* S2E V15.9 UI micro fixes END */


/* S2E V15.10 yes/no equal cards */
#s2e-plan-root .s2e-yesno-grid,
#s2e-plan-root .s2e-plan-tabs-setup.s2e-yesno-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;max-width:460px!important;margin-inline:auto!important}
#s2e-plan-root .s2e-yesno-grid>.s2e-plan-tab{grid-column:auto!important;grid-row:auto!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:72px!important;margin:0!important}
/* S2E V15.10 END */


/* =========================================================
   S2E V15.13 - TODAY FIRST + VOCAB PROGRESS UI
   UI only: keep timetable distribution/route logic unchanged.
========================================================= */
/* Yes / No must look identical; only the selected state changes. */
#s2e-plan-root .s2e-yesno-grid > .s2e-plan-tab,
#s2e-plan-root .s2e-yesno-grid > .s2e-plan-tab.s2e-plan-color-flex,
#s2e-plan-root .s2e-yesno-grid > .s2e-plan-tab.s2e-plan-color-exam{
  background:#fff!important;
  border:1.5px solid #cfe0f5!important;
  color:#0b4595!important;
  box-shadow:0 7px 18px rgba(11,69,149,.07)!important;
}
#s2e-plan-root .s2e-yesno-grid > .s2e-plan-tab.active,
#s2e-plan-root .s2e-yesno-grid > .s2e-plan-tab.s2e-plan-color-flex.active,
#s2e-plan-root .s2e-yesno-grid > .s2e-plan-tab.s2e-plan-color-exam.active{
  background:linear-gradient(180deg,#0d55c6 0%,#1e90ff 100%)!important;
  border-color:#0d55c6!important;
  color:#fff!important;
}
#s2e-plan-root .s2e-yesno-grid > .s2e-plan-tab.active .s2e-plan-tab-main{color:#fff!important}

/* Today's study is visible without opening the day popup. */
#s2e-plan-root .s2e-today-study-inline{
  width:100%!important;box-sizing:border-box!important;margin:7px 0 8px!important;
  padding:9px!important;border:1px solid #d7e6f7!important;border-radius:18px!important;
  background:#fff!important;box-shadow:0 6px 18px rgba(27,72,132,.055)!important;
}
#s2e-plan-root .s2e-today-study-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
  padding:2px 4px 8px!important;border-bottom:1px solid #e8eef7!important;
}
#s2e-plan-root .s2e-today-study-head strong{font-size:19px!important;color:#0b55b7!important;font-weight:950!important}
#s2e-plan-root .s2e-today-study-head span{font-size:11px!important;color:#7587a0!important;font-weight:850!important;white-space:nowrap!important}
#s2e-plan-root .s2e-today-study-body{padding-top:7px!important}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-section{margin:0!important;padding:0!important}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-heading{
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
  min-height:0!important;margin:2px 0 6px!important;padding:6px 9px!important;border-radius:11px!important;
  background:#f3f7fc!important;color:#174f9f!important;font-size:14px!important;font-weight:900!important;
}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-heading-en{font-family:Verdana,Arial,sans-serif!important;font-size:.78em!important}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-heading-sep{opacity:.4!important;margin-inline:4px!important}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-items{display:grid!important;gap:6px!important}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-separator{height:1px!important;background:#e5edf7!important;margin:7px 0!important}
#s2e-plan-root .s2e-today-study-inline .s2e-item-row{gap:6px!important}
#s2e-plan-root .s2e-today-study-inline .s2e-item-link{min-height:42px!important;padding:7px 8px!important;border-radius:13px!important;gap:6px!important}
#s2e-plan-root .s2e-today-study-inline .s2e-item-ar{font-size:15px!important;line-height:1.25!important}
#s2e-plan-root .s2e-today-study-inline .s2e-item-en{font-size:10px!important;margin-top:1px!important}
#s2e-plan-root .s2e-today-study-inline .s2e-item-go{min-width:50px!important;min-height:34px!important;padding:5px 6px!important;border-radius:10px!important;font-size:12px!important}
#s2e-plan-root .s2e-today-study-inline .s2e-item-done{
  flex:0 0 52px!important;width:52px!important;min-width:52px!important;max-width:52px!important;
  min-height:38px!important;padding:4px 2px!important;border-radius:11px!important;font-size:11px!important;
}

/* Progress and study-days become tiny secondary metadata. */
#s2e-plan-root .s2e-compact-plan-meta{padding:6px 8px!important;margin:4px 0 6px!important;border-radius:14px!important;box-shadow:none!important}
#s2e-plan-root .s2e-mini-plan-stats{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;margin:0!important}
#s2e-plan-root .s2e-mini-stat{
  display:inline-flex!important;align-items:baseline!important;gap:4px!important;min-height:24px!important;
  padding:2px 8px!important;border:1px solid #d9e5f3!important;border-radius:999px!important;background:#f7faff!important;color:#667b96!important;
}
#s2e-plan-root .s2e-mini-stat b{font-size:12px!important;color:#0b55b7!important;font-weight:950!important}
#s2e-plan-root .s2e-mini-stat small{font-size:9px!important;font-weight:850!important}
#s2e-plan-root .s2e-progress-bar-mini{height:3px!important;margin:5px 2px 0!important;background:#e8eef7!important;border-radius:999px!important}
#s2e-plan-root .s2e-study-schedule-summary-mini{
  min-height:0!important;margin:4px 0 0!important;padding:2px 5px!important;border:0!important;background:transparent!important;
  font-size:9px!important;line-height:1.2!important;color:#8290a5!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#s2e-plan-root .s2e-reset-only-row{margin-top:4px!important}
#s2e-plan-root .s2e-reset-only-row #s2e-reset-plan{min-height:30px!important;padding:3px 10px!important;font-size:11px!important;border-radius:10px!important}

/* Previous / upcoming days live at the bottom of the timetable. */
#s2e-plan-root .s2e-bottom-day-nav{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
  width:100%!important;margin:7px 0 0!important;padding:0!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn{
  min-height:36px!important;padding:5px 8px!important;border-radius:11px!important;font-size:11px!important;box-shadow:none!important;
}
#s2e-plan-root .s2e-bottom-day-nav strong{font-size:10px!important;min-width:20px!important}

@media(max-width:600px){
  #s2e-plan-root .s2e-day-card.s2e-primary-study-card{margin-bottom:4px!important}
  #s2e-plan-root .s2e-today-study-inline{margin-top:4px!important;padding:7px!important;border-radius:15px!important}
  #s2e-plan-root .s2e-today-study-head strong{font-size:17px!important}
  #s2e-plan-root .s2e-today-study-head span{font-size:9px!important}
  #s2e-plan-root .s2e-today-study-inline .s2e-item-ar{font-size:14px!important}
  #s2e-plan-root .s2e-today-study-inline .s2e-item-done{width:48px!important;min-width:48px!important;max-width:48px!important;font-size:10px!important}
  #s2e-plan-root .s2e-today-study-inline .s2e-item-go{min-width:46px!important;font-size:11px!important}
  #s2e-plan-root .s2e-compact-plan-meta{padding:5px 6px!important}
}
/* S2E V15.13 END */

/* =========================================================
   S2E V15.14 - MOBILE CLEAN TODAY CONTENT
   - no duplicate blue "today" card on active study days
   - today content starts immediately after course tools
   - compact, correct heading
   - keep progress/settings secondary and day navigation at bottom
========================================================= */

/* Safety: if a legacy renderer inserts the old active-day card, hide only that
   duplicate. A genuine rest-day card remains visible. */
#s2e-plan-root .s2e-day-card.s2e-primary-study-card:not(.s2e-rest-day-card){
  display:none!important;
}

/* Pull the actual timetable content up under Course Content / STEP Leaks. */
#s2e-v185-stable-tools.s2e-v188-tools,
#s2e-v185-stable-tools{
  margin-bottom:5px!important;
}
#s2e-plan-root{
  margin-top:0!important;
  padding-top:0!important;
}
#s2e-plan-root .s2e-today-study-inline{
  margin:0 0 7px!important;
  padding:8px!important;
}

/* One clear title for the visible study content. */
#s2e-plan-root .s2e-today-study-head{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:center!important;
  justify-items:center!important;
  gap:2px!important;
  padding:7px 8px 8px!important;
  margin:0!important;
  border-bottom:1px solid #e5edf7!important;
  text-align:center!important;
}
#s2e-plan-root .s2e-today-study-head strong{
  display:block!important;
  margin:0!important;
  color:#0b55b7!important;
  font:950 20px/1.25 Tahoma,Arial,sans-serif!important;
}
#s2e-plan-root .s2e-today-study-head span{
  display:block!important;
  margin:0!important;
  color:#6f8199!important;
  font:850 11px/1.3 Tahoma,Arial,sans-serif!important;
  white-space:normal!important;
}
#s2e-plan-root .s2e-today-study-body{
  padding-top:6px!important;
}

/* Keep the course rows tight so the student sees more of today immediately. */
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-heading{
  margin:1px 0 5px!important;
  padding:5px 8px!important;
  font-size:14px!important;
}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-items{
  gap:5px!important;
}
#s2e-plan-root .s2e-today-study-inline .s2e-day-study-separator{
  margin:6px 0!important;
}
#s2e-plan-root .s2e-today-study-inline .s2e-item-link{
  min-height:40px!important;
}
#s2e-plan-root .s2e-today-study-inline .s2e-item-done{
  min-height:36px!important;
}

/* Progress / study days stay small and below today's content. */
#s2e-plan-root .s2e-compact-plan-meta{
  margin:5px 0 4px!important;
  padding:5px 7px!important;
}
#s2e-plan-root .s2e-bottom-day-nav{
  margin:5px 0 0!important;
}

@media(max-width:600px){
  #s2e-smart-universal-container{
    padding-top:0!important;
  }
  #s2e-v185-stable-tools.s2e-v188-tools,
  #s2e-v185-stable-tools{
    margin-top:6px!important;
    margin-bottom:4px!important;
  }
  #s2e-plan-root{
    margin-top:0!important;
    padding-top:0!important;
  }
  #s2e-plan-root .s2e-today-study-inline{
    margin-top:0!important;
    padding:6px!important;
    border-radius:14px!important;
  }
  #s2e-plan-root .s2e-today-study-head{
    padding:5px 6px 6px!important;
  }
  #s2e-plan-root .s2e-today-study-head strong{
    font-size:18px!important;
  }
  #s2e-plan-root .s2e-today-study-head span{
    font-size:10px!important;
  }
  #s2e-plan-root .s2e-today-study-body{
    padding-top:5px!important;
  }
  #s2e-plan-root .s2e-compact-plan-meta{
    margin-top:4px!important;
  }
}
/* S2E V15.14 END */

/* =========================================================
   S2E V15.15 - clearer session navigation + compact footer
========================================================= */
#s2e-plan-root .s2e-compact-plan-meta{
  border:1px solid #d6e5f5!important;
  background:#fbfdff!important;
  padding:6px 8px!important;
}
#s2e-plan-root .s2e-bottom-day-nav{
  gap:10px!important;
  margin-top:8px!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn{
  min-height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:8px 12px!important;
  border:1px solid #b9d5f4!important;
  border-radius:14px!important;
  background:#f8fbff!important;
  color:#0b4fae!important;
  font-size:14px!important;
  font-weight:950!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn strong{
  min-width:28px!important;
  height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #cfe0f3!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0b4fae!important;
  font-size:13px!important;
}
#s2e-plan-root .s2e-reset-only-row{display:flex!important;justify-content:center!important}
#s2e-plan-root .s2e-reset-only-row #s2e-reset-plan{min-width:112px!important}
/* Old full-width subscription rows must not reserve empty space. A real lock
   still opens the subscription flow from the locked activity itself. */
#s2e-plan-root .s2e-top-actions-row2:empty,
#s2e-plan-root .s2e-plan-subscribe-row:empty{display:none!important;margin:0!important;padding:0!important;min-height:0!important}
@media(max-width:600px){
  #s2e-plan-root .s2e-bottom-day-nav{gap:7px!important}
  #s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn{min-height:44px!important;padding:7px 7px!important;font-size:13px!important}
}
/* S2E V15.15 END */
\n\n/* =========================================================\n   S2E V15.20 - timetable footer clarity + direct asset UI\n   ========================================================= */\n#s2e-plan-root .s2e-bottom-day-nav{\n  margin:8px 0 7px!important;gap:10px!important;position:relative!important;z-index:2!important;\n}\n#s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn{\n  min-height:52px!important;padding:9px 14px!important;border:2px solid #c9def5!important;border-radius:16px!important;\n  background:#fff!important;color:#0b4fae!important;font-size:15px!important;font-weight:950!important;\n  box-shadow:0 6px 16px rgba(16,73,145,.07)!important;\n}\n#s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn:hover{background:#f4f9ff!important;border-color:#91bff0!important}\n#s2e-plan-root .s2e-bottom-day-nav strong{\n  min-width:30px!important;height:30px!important;border-radius:999px!important;border:1px solid #cfe0f3!important;\n  background:#eef6ff!important;color:#0b4fae!important;font-size:13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;\n}\n#s2e-plan-root .s2e-compact-plan-meta{\n  margin:0 0 8px!important;padding:10px 12px!important;border:1px solid #d7e6f5!important;border-radius:16px!important;\n  background:linear-gradient(180deg,#fbfdff,#f7faff)!important;box-shadow:none!important;\n}\n#s2e-plan-root .s2e-mini-plan-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}\n#s2e-plan-root .s2e-mini-stat{\n  min-height:38px!important;padding:6px 10px!important;border:1px solid #d6e5f5!important;border-radius:12px!important;background:#fff!important;\n  display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;\n}\n#s2e-plan-root .s2e-mini-stat b{font-size:15px!important}#s2e-plan-root .s2e-mini-stat small{font-size:10px!important}\n#s2e-plan-root .s2e-progress-bar-mini{height:5px!important;margin:8px 1px 0!important}\n#s2e-plan-root .s2e-study-schedule-summary-mini{\n  margin:7px 0 0!important;padding:7px 10px!important;border:1px solid #dce9f7!important;border-radius:12px!important;background:#fff!important;\n  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;text-align:center!important;line-height:1.4!important;\n}\n#s2e-plan-root .s2e-study-schedule-summary-mini small{display:block!important;color:#7890ad!important;font-size:9px!important;font-weight:900!important;margin-bottom:2px!important}\n#s2e-plan-root .s2e-study-schedule-summary-mini span{display:block!important;color:#315b8e!important;font-size:10px!important;font-weight:900!important}\n#s2e-plan-root .s2e-reset-only-row{margin-top:7px!important}\n#s2e-plan-root .s2e-reset-only-row #s2e-reset-plan{\n  min-width:155px!important;min-height:36px!important;padding:6px 14px!important;border:1px solid #aacbed!important;border-radius:12px!important;\n  background:#fff!important;color:#0b55b7!important;font-size:12px!important;font-weight:950!important;box-shadow:none!important;\n}\n.s2e-open-loader{backdrop-filter:blur(1.5px)!important}\n.s2e-open-loader-box.s2e-quick-open-box{\n  width:min(86vw,320px)!important;min-height:74px!important;padding:15px 18px!important;border-radius:18px!important;\n  font-size:16px!important;justify-content:center!important;box-shadow:0 14px 36px rgba(15,45,110,.14)!important;\n}\n@media(max-width:600px){\n  #s2e-plan-root .s2e-bottom-day-nav{gap:7px!important;margin:7px 0!important}\n  #s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn{min-height:48px!important;padding:7px 8px!important;font-size:13px!important}\n  #s2e-plan-root .s2e-compact-plan-meta{padding:8px!important}\n  #s2e-plan-root .s2e-mini-stat{min-height:35px!important;padding:5px 7px!important}\n}\n/* S2E V15.20 END */\n

/* =========================================================
   S2E V15.23 SAFE FOOTER POLISH
   CSS-only footer hierarchy; does not affect timetable rendering.
========================================================= */
#s2e-plan-root .s2e-bottom-day-nav{
  width:min(100%,760px)!important;max-width:760px!important;margin:10px auto 8px!important;gap:10px!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;align-items:stretch!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn{
  min-width:0!important;min-height:54px!important;border-radius:15px!important;padding:9px 14px!important;
  font-size:15px!important;font-weight:950!important;box-shadow:none!important;transition:filter .15s ease,transform .15s ease!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-prevdays-btn{
  background:#f3f6fa!important;border:1.5px solid #cad7e6!important;color:#49617e!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-prevdays-btn strong{
  background:#fff!important;border-color:#cbd8e7!important;color:#49617e!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-view-plan-btn{
  background:#0b55bd!important;border:1.5px solid #0b55bd!important;color:#fff!important;
}
#s2e-plan-root .s2e-bottom-day-nav .s2e-view-plan-btn strong{
  background:#fff!important;border-color:#fff!important;color:#0b55bd!important;
}
@media(hover:hover) and (pointer:fine){
  #s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn:hover{filter:brightness(.98)!important;transform:translateY(-1px)!important}
}
#s2e-plan-root .s2e-compact-plan-meta{
  width:min(100%,690px)!important;max-width:690px!important;margin:0 auto 12px!important;padding:12px 14px 11px!important;
  border:1px solid #d9e5f2!important;border-radius:16px!important;background:#fbfdff!important;box-shadow:none!important;box-sizing:border-box!important;
}
#s2e-plan-root .s2e-mini-plan-stats{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;margin:0 0 8px!important;
}
#s2e-plan-root .s2e-mini-stat{
  flex:0 1 180px!important;min-height:38px!important;padding:5px 10px!important;border:1px solid #d9e5f2!important;border-radius:12px!important;background:#fff!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;box-sizing:border-box!important;
}
#s2e-plan-root .s2e-mini-stat b{font-size:15px!important;color:#0b4fae!important}
#s2e-plan-root .s2e-mini-stat small{font-size:10px!important;color:#71849d!important;font-weight:900!important}
#s2e-plan-root .s2e-progress-bar-mini{
  width:100%!important;height:6px!important;margin:0 0 8px!important;border-radius:999px!important;background:#e8eef7!important;overflow:hidden!important;
}
#s2e-plan-root .s2e-progress-bar-mini>span{display:block!important;height:100%!important;border-radius:inherit!important}
#s2e-plan-root .s2e-study-schedule-summary-mini{
  margin:0!important;padding:2px 6px 7px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:normal!important;text-align:center!important;
}
#s2e-plan-root .s2e-study-schedule-summary-mini small{
  display:inline!important;margin:0!important;font-size:10px!important;color:#8392a7!important;font-weight:900!important;
}
#s2e-plan-root .s2e-study-schedule-summary-mini span{
  display:inline!important;font-size:11px!important;color:#3f5f87!important;font-weight:900!important;line-height:1.5!important;
}
#s2e-plan-root .s2e-reset-only-row{margin:2px 0 0!important;text-align:center!important}
#s2e-plan-root .s2e-reset-only-row #s2e-reset-plan{
  min-width:168px!important;min-height:36px!important;padding:6px 14px!important;border:1px solid #e6a9a4!important;border-radius:11px!important;
  background:#fff8f7!important;color:#c43c32!important;font-size:12px!important;font-weight:950!important;box-shadow:none!important;
}
@media(max-width:600px){
  #s2e-plan-root .s2e-bottom-day-nav{width:100%!important;gap:7px!important;margin:8px auto 7px!important}
  #s2e-plan-root .s2e-bottom-day-nav .s2e-top-secondary-btn{min-height:48px!important;padding:7px 8px!important;font-size:13px!important}
  #s2e-plan-root .s2e-compact-plan-meta{width:100%!important;padding:10px!important;margin-bottom:9px!important}
  #s2e-plan-root .s2e-mini-plan-stats{gap:7px!important}
  #s2e-plan-root .s2e-mini-stat{min-height:36px!important;padding:5px 7px!important}
  #s2e-plan-root .s2e-study-schedule-summary-mini{display:block!important;padding-bottom:6px!important}
  #s2e-plan-root .s2e-study-schedule-summary-mini small,#s2e-plan-root .s2e-study-schedule-summary-mini span{display:block!important}
}
/* S2E V15.23 END */

/* =========================================================
   S2E V15.24 - previous backlog alert + quick actions
   ========================================================= */
#s2e-plan-root .s2e-prevdays-btn.has-backlog{
  border-color:#efb15e!important;
  background:linear-gradient(180deg,#fffaf1 0%,#fff4df 100%)!important;
  color:#915414!important;
  position:relative!important;
  padding-bottom:25px!important;
}
#s2e-plan-root .s2e-prevdays-btn.has-backlog strong{
  background:#fff2d5!important;border-color:#efc98d!important;color:#8b5418!important;
}
#s2e-plan-root .s2e-backlog-alert{
  position:absolute!important;left:10px!important;right:10px!important;bottom:5px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  font-size:10px!important;font-weight:950!important;line-height:1.2!important;color:#9a5a12!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#s2e-plan-root .s2e-backlog-alert[hidden]{display:none!important}
#s2e-plan-root .s2e-backlog-alert b{font-size:10px!important;min-width:auto!important;height:auto!important;background:transparent!important;border:0!important;color:inherit!important}
.s2e-backlog-box{width:min(720px,100%)!important}
.s2e-backlog-body{display:flex;flex-direction:column;gap:10px;padding:0 14px 16px}
.s2e-backlog-item{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:12px;border:1px solid #d9e6f4;border-radius:16px;background:#fff;text-align:right;
}
.s2e-backlog-item.is-skipped{opacity:.72;background:#f8fafc}
.s2e-backlog-copy{min-width:0}.s2e-backlog-title{font-size:15px;font-weight:950;color:#123f7b;line-height:1.45}
.s2e-backlog-en{font-size:11px;font-weight:800;color:#7a8ba2;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2e-backlog-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:7px}
.s2e-backlog-meta>span{font-size:10px;font-weight:900;color:#60758f;background:#f3f7fb;border-radius:999px;padding:3px 7px}
.s2e-backlog-meta .s2e-backlog-skip-chip{color:#8a5a18;background:#fff2d9}
.s2e-backlog-actions{display:flex;align-items:center;gap:7px;position:relative}
.s2e-backlog-continue{min-height:38px;padding:7px 13px;border:0;border-radius:11px;background:#0b55b7;color:#fff;font-size:12px;font-weight:950;cursor:pointer;white-space:nowrap}
.s2e-backlog-more{position:relative}.s2e-backlog-more summary{list-style:none;width:38px;height:38px;border:1px solid #d5e2f0;border-radius:11px;background:#f8fbff;color:#355f91;font-size:20px;font-weight:950;display:flex;align-items:center;justify-content:center;cursor:pointer}
.s2e-backlog-more summary::-webkit-details-marker{display:none}
.s2e-backlog-menu{position:absolute;z-index:30;left:0;top:44px;width:190px;padding:6px;border:1px solid #d6e3f0;border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(28,62,105,.16);display:flex;flex-direction:column;gap:4px}
.s2e-backlog-menu button{border:0;background:#f7faff;color:#234d80;border-radius:9px;padding:8px 9px;text-align:right;font-size:11px;font-weight:900;cursor:pointer}
.s2e-backlog-menu button:hover{background:#edf5ff}.s2e-backlog-menu button.danger{color:#a32f2f;background:#fff5f5}
.s2e-backlog-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 12px;color:#55708d}
.s2e-backlog-empty span{font-size:28px;color:#2e9c58}.s2e-backlog-empty strong{font-size:16px;color:#24527f;margin-top:5px}.s2e-backlog-empty small{font-size:11px;margin-top:3px}
@media(max-width:600px){
  .s2e-backlog-item{grid-template-columns:1fr;gap:9px}.s2e-backlog-actions{justify-content:space-between}.s2e-backlog-continue{flex:1}.s2e-backlog-menu{left:0;right:auto}
  #s2e-plan-root .s2e-prevdays-btn.has-backlog{padding-bottom:24px!important}.s2e-backlog-alert{font-size:9px!important}
}
/* S2E V15.24 END */


/* =========================================================
   S2E V15.25 - grouped backlog + ultra compact plan footer
   ========================================================= */
/* Backlog popup: day groups, visible quick actions, no horizontal spill. */
.s2e-backlog-box{
  width:min(760px,calc(100vw - 24px))!important;
  max-width:760px!important;
  overflow:hidden!important;
}
.s2e-backlog-body{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  padding:0 14px 16px!important;
  overflow-x:hidden!important;
}
.s2e-backlog-day{
  border:1px solid #d8e5f3!important;
  border-radius:17px!important;
  background:#fbfdff!important;
  overflow:visible!important;
}
.s2e-backlog-day-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:10px 12px!important;
  border-bottom:1px solid #e3edf7!important;
  background:#f3f8ff!important;
  text-align:right!important;
}
.s2e-backlog-day-head>div{min-width:0!important;display:flex!important;align-items:baseline!important;gap:7px!important;flex-wrap:wrap!important}
.s2e-backlog-day-head strong{font-size:15px!important;color:#0b4fae!important;font-weight:950!important}
.s2e-backlog-day-head span{font-size:10px!important;color:#71849d!important;font-weight:850!important}
.s2e-backlog-day-head em{
  flex:0 0 auto!important;
  font-style:normal!important;
  font-size:10px!important;
  font-weight:950!important;
  color:#915414!important;
  background:#fff0d5!important;
  border:1px solid #f0cb91!important;
  border-radius:999px!important;
  padding:4px 8px!important;
}
.s2e-backlog-day-items{display:flex!important;flex-direction:column!important;gap:8px!important;padding:9px!important}
.s2e-backlog-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  padding:10px!important;
  border:1px solid #e1eaf4!important;
  border-radius:13px!important;
  background:#fff!important;
  overflow:visible!important;
}
.s2e-backlog-item.is-skipped{opacity:.76!important;background:#fafbfd!important}
.s2e-backlog-meta{margin-top:5px!important}
.s2e-backlog-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  position:relative!important;
  max-width:320px!important;
}
.s2e-backlog-continue,.s2e-backlog-skip,.s2e-backlog-more>summary{
  min-height:36px!important;
  border-radius:10px!important;
  padding:6px 11px!important;
  font-size:11px!important;
  font-weight:950!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}
.s2e-backlog-continue{border:0!important;background:#0b55b7!important;color:#fff!important}
.s2e-backlog-skip{border:1px solid #d6e2ef!important;background:#f7faff!important;color:#456787!important}
.s2e-backlog-more{position:relative!important;margin:0!important}
.s2e-backlog-more>summary{
  list-style:none!important;
  width:auto!important;
  height:auto!important;
  border:1px solid #d6e2ef!important;
  background:#fff!important;
  color:#456787!important;
}
.s2e-backlog-more>summary::-webkit-details-marker{display:none!important}
.s2e-backlog-more[open]{flex:1 0 100%!important;width:100%!important}
.s2e-backlog-more[open]>summary{margin-inline-start:auto!important;width:max-content!important}
.s2e-backlog-menu{
  position:static!important;
  width:100%!important;
  margin:6px 0 0!important;
  padding:6px!important;
  border:1px solid #d6e3f0!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:6px!important;
  box-sizing:border-box!important;
}
.s2e-backlog-menu button{
  min-height:34px!important;
  border:0!important;
  border-radius:9px!important;
  padding:7px 9px!important;
  background:#f7faff!important;
  color:#234d80!important;
  text-align:center!important;
  font-size:10px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.s2e-backlog-menu button.danger{color:#a32f2f!important;background:#fff2f2!important}

/* Footer: remove the large card and keep one compact information strip. */
#s2e-plan-root .s2e-bottom-day-nav{margin-bottom:5px!important}
#s2e-plan-root .s2e-compact-plan-meta.s2e-after-day-panel.s2e-plan-running-box{
  width:min(100%,760px)!important;
  max-width:760px!important;
  min-height:0!important;
  margin:0 auto 7px!important;
  padding:4px 2px 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  grid-template-areas:"stats schedule reset" "progress progress progress"!important;
  align-items:center!important;
  gap:5px 10px!important;
}
#s2e-plan-root .s2e-compact-plan-meta .s2e-mini-plan-stats{
  grid-area:stats!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  margin:0!important;
}
#s2e-plan-root .s2e-compact-plan-meta .s2e-mini-stat{
  flex:0 0 auto!important;
  min-height:28px!important;
  padding:3px 9px!important;
  border:1px solid #d8e5f2!important;
  border-radius:999px!important;
  background:#fff!important;
  gap:4px!important;
}
#s2e-plan-root .s2e-compact-plan-meta .s2e-mini-stat b{font-size:12px!important}
#s2e-plan-root .s2e-compact-plan-meta .s2e-mini-stat small{font-size:9px!important}
#s2e-plan-root .s2e-compact-plan-meta .s2e-study-schedule-summary-mini{
  grid-area:schedule!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#s2e-plan-root .s2e-compact-plan-meta .s2e-study-schedule-summary-mini small{display:none!important}
#s2e-plan-root .s2e-compact-plan-meta .s2e-study-schedule-summary-mini span{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  color:#5f7693!important;
  font-weight:850!important;
}
#s2e-plan-root .s2e-compact-plan-meta .s2e-reset-only-row{
  grid-area:reset!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  justify-content:flex-end!important;
}
#s2e-plan-root .s2e-compact-plan-meta .s2e-reset-only-row #s2e-reset-plan{
  min-width:0!important;
  min-height:28px!important;
  padding:3px 8px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#bd5149!important;
  font-size:10px!important;
  font-weight:900!important;
  box-shadow:none!important;
}
#s2e-plan-root .s2e-compact-plan-meta .s2e-reset-only-row #s2e-reset-plan:hover{background:#fff2f1!important}
#s2e-plan-root .s2e-compact-plan-meta .s2e-progress-bar-mini{
  grid-area:progress!important;
  width:100%!important;
  height:3px!important;
  margin:0!important;
  border-radius:999px!important;
  background:#e5edf6!important;
  overflow:hidden!important;
}

@media(max-width:700px){
  .s2e-backlog-day-head{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}
  .s2e-backlog-item{grid-template-columns:1fr!important;gap:8px!important}
  .s2e-backlog-actions{max-width:none!important;width:100%!important;justify-content:stretch!important}
  .s2e-backlog-continue,.s2e-backlog-skip{flex:1 1 0!important}
  .s2e-backlog-more{flex:0 0 auto!important}
  .s2e-backlog-more[open]{flex:1 0 100%!important}
  .s2e-backlog-menu{grid-template-columns:1fr!important}
  #s2e-plan-root .s2e-compact-plan-meta.s2e-after-day-panel.s2e-plan-running-box{
    width:100%!important;
    grid-template-columns:1fr auto!important;
    grid-template-areas:"stats reset" "schedule schedule" "progress progress"!important;
    gap:4px 7px!important;
    padding:3px 1px 1px!important;
  }
  #s2e-plan-root .s2e-compact-plan-meta .s2e-mini-plan-stats{gap:4px!important}
  #s2e-plan-root .s2e-compact-plan-meta .s2e-mini-stat{padding:3px 7px!important}
  #s2e-plan-root .s2e-compact-plan-meta .s2e-study-schedule-summary-mini{justify-content:flex-start!important}
  #s2e-plan-root .s2e-compact-plan-meta .s2e-study-schedule-summary-mini span{font-size:9px!important;text-align:right!important}
}
/* S2E V15.25 END */


/* S2E V59: Scroll only the missed-lessons dialog on touch devices.
 * Backdrop body remains overflow:hidden, so background never scrolls.
 * The overlay is appended to document.body (not #s2e-plan-root).
 */
body.s2e-no-scroll:has(> #s2e-backlog-popup),
body.s2e-no-scroll:has(> #s2e-dayslist-popup){touch-action:auto!important}
#s2e-backlog-popup .s2e-backlog-box{
  display:flex!important;
  flex-direction:column!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:hidden!important;
}
#s2e-backlog-popup .s2e-backlog-body{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
#s2e-dayslist-popup .s2e-prevdays-box{
  max-height:calc(100dvh - 24px)!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}

/* S2E V87: Full-page scroll-lock repair + always-accessible return control.
 * Scoped to Moodle study-plan page. This rule does not touch the homepage. */
html.s2e-v87-free-scroll{overflow-y:auto!important;overflow-x:hidden!important;height:auto!important;touch-action:pan-y!important}
body#page-mod-page-view.s2e-v87-free-scroll{overflow:visible!important;overflow-x:hidden!important;height:auto!important;min-height:100%!important;position:static!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
body#page-mod-page-view.s2e-v87-free-scroll #page,
body#page-mod-page-view.s2e-v87-free-scroll #page-wrapper,
body#page-mod-page-view.s2e-v87-free-scroll #page-content,
body#page-mod-page-view.s2e-v87-free-scroll #region-main,
body#page-mod-page-view.s2e-v87-free-scroll #region-main-box{height:auto!important;max-height:none!important;overflow-y:visible!important}
body#page-mod-page-view.s2e-v87-free-scroll #s2e-plan-root{height:auto!important;max-height:none!important;overflow-y:visible!important;padding-bottom:85px!important}
/* Global button is the existing authorized course link; never create a new URL. */
body#page-mod-page-view.s2e-smart-plan-nav-page #s2e-smart-plan-course-return-wrap{
 position:fixed!important;left:14px!important;right:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
 z-index:9000!important;width:auto!important;max-width:calc(100vw - 28px)!important;
 display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 margin:0!important;padding:0!important;transform:none!important;background:transparent!important;
}
body#page-mod-page-view.s2e-smart-plan-nav-page #s2e-smart-plan-course-return-wrap .s2e-global-course-btn{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 min-height:50px!important;max-width:100%!important;padding:12px 18px!important;
 border:0!important;border-radius:18px!important;background:#0955c4!important;color:#fff!important;
 font:900 17px/1.35 Tahoma,Arial,sans-serif!important;text-decoration:none!important;
 box-shadow:0 9px 28px rgba(9,49,119,.24)!important;box-sizing:border-box!important;
}
/* Both previous-day dialogs scroll their own full-screen backdrop on iOS.
 * No nested or split scrollers; a locked background remains locked. */
#s2e-backlog-popup.s2e-overlay,#s2e-dayslist-popup.s2e-overlay{
 display:block!important;position:fixed!important;inset:0!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 max-height:100dvh!important;-webkit-overflow-scrolling:touch!important;
 touch-action:pan-y!important;overscroll-behavior-y:contain!important;
 padding:12px 12px calc(22px + env(safe-area-inset-bottom,0px))!important;
}
#s2e-backlog-popup.s2e-overlay > .s2e-backlog-box,
#s2e-dayslist-popup.s2e-overlay > .s2e-prevdays-box{
 display:block!important;position:relative!important;
 width:min(760px,100%)!important;height:auto!important;min-height:0!important;max-height:none!important;
 margin:0 auto!important;overflow:visible!important;touch-action:auto!important;
}
#s2e-backlog-popup.s2e-overlay .s2e-backlog-body,
#s2e-dayslist-popup.s2e-overlay .s2e-prevdays-body{
 display:flex!important;flex-direction:column!important;
 height:auto!important;max-height:none!important;min-height:0!important;flex:none!important;
 overflow:visible!important;touch-action:auto!important;
}
#s2e-backlog-popup.s2e-overlay .s2e-close-btn,
#s2e-dayslist-popup.s2e-overlay .s2e-close-btn{position:sticky!important;top:0!important;z-index:33!important}
/* Keep the underlying return control below modals. */
body#page-mod-page-view:has(> .s2e-overlay) #s2e-smart-plan-course-return-wrap{pointer-events:none!important}
/* S2E V87 END */

/* S2E V89 - surgical iOS previous-days scroll fix.
   Only the two previous-days dialogs are affected. Main plan, return control,
   course navigation, progress, and homepage remain untouched. */
html:has(body > #s2e-backlog-popup),
html:has(body > #s2e-dayslist-popup){
  touch-action:auto!important;
}
body.s2e-no-scroll:has(> #s2e-backlog-popup),
body.s2e-no-scroll:has(> #s2e-dayslist-popup){
  overflow:hidden!important;
  touch-action:auto!important;
}
#s2e-backlog-popup.s2e-overlay,
#s2e-dayslist-popup.s2e-overlay{
  position:fixed!important;
  inset:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  padding:12px!important;
  touch-action:pan-y!important;
}
#s2e-backlog-popup.s2e-overlay > .s2e-backlog-box{
  display:flex!important;
  flex-direction:column!important;
  flex:0 1 auto!important;
  width:min(760px,100%)!important;
  min-height:0!important;
  height:auto!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}
#s2e-backlog-popup.s2e-overlay .s2e-backlog-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
#s2e-backlog-popup.s2e-overlay > .s2e-backlog-box > .s2e-close-btn,
#s2e-backlog-popup.s2e-overlay > .s2e-backlog-box > .s2e-popup-head{
  flex:0 0 auto!important;
}
#s2e-dayslist-popup.s2e-overlay > .s2e-prevdays-box{
  display:block!important;
  flex:0 1 auto!important;
  width:min(760px,100%)!important;
  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 24px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
#s2e-dayslist-popup.s2e-overlay .s2e-prevdays-body{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}


/* S2E V91: EXACT scrolling topology of the working upcoming-days popup.
   A constrained .s2e-backlog-box scrolls; overlay/background is locked.
   No nested scrolling of backlog-body. Only #s2e-backlog-popup affected. */
#s2e-backlog-popup.s2e-overlay {
  position: fixed !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  padding: 12px !important;
  touch-action: pan-y !important;
}
#s2e-backlog-popup.s2e-overlay > .s2e-backlog-box {
  display: block !important;
  flex: 0 1 auto !important;
  width: min(760px, 100%) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}
#s2e-backlog-popup.s2e-overlay .s2e-backlog-body {
  display: flex !important;
  flex-direction: column !important;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: auto !important;
}
#s2e-backlog-popup.s2e-overlay .s2e-close-btn {
  position: sticky !important;
  top: 0 !important;
  z-index: 33 !important;
}
/* S2E V91 END */
