/* EL-Haddad v37.0.0 — Student dashboard redesign (additive layer; loads after v3682) */
:root{
  --d7-red:#bf1425; --d7-red-2:#e11d2e; --d7-deep:#7a0b17; --d7-navy:#17263b;
  --d7-ink:#17263b; --d7-muted:#5a6b82; --d7-line:#e3e9f1; --d7-soft:#f5f7fb;
  --d7-green:#a30f1f; --d7-green-bg:#fdecee; --d7-amber:#b45309; --d7-amber-bg:#fff4e0;
  --d7-radius:22px; --d7-shadow:0 1px 2px #17263b0a,0 10px 30px -12px #17263b24;
  --d7-shadow-hover:0 2px 4px #17263b0d,0 18px 40px -14px #17263b38;
  --d7-ease:cubic-bezier(.16,1,.3,1);
}

/* ---------- Page canvas & welcome ---------- */
.eh67-portal{position:relative}
.eh67-portal::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(900px 420px at 85% -5%,#bf14250f,transparent 60%),
             radial-gradient(700px 380px at 5% 10%,#17263b0b,transparent 60%),#f6f8fb}
.eh67-welcome{align-items:flex-end;gap:16px;padding:6px 2px 2px}
.eh67-welcome .eh67-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--d7-red);
  font-weight:800;font-size:13px;letter-spacing:.2px;background:#bf14250f;padding:5px 12px;border-radius:999px}
.eh67-welcome h1{font-size:clamp(26px,4vw,38px)!important;font-weight:800;color:var(--d7-ink);margin-top:10px!important;line-height:1.25}
.eh67-program-badge{background:#fff;border:1px solid var(--d7-line);border-radius:999px;padding:8px 16px 8px 10px;box-shadow:var(--d7-shadow);font-weight:700}
.eh67-welcome>div{min-width:0;max-width:100%}.eh67-welcome h1,.eh7-sub{overflow-wrap:anywhere}
.eh7-sub{margin:8px 0 0;color:var(--d7-muted);font-size:15px;font-weight:500}
.eh7-sub b{color:var(--d7-red);font-weight:800}

/* ---------- Tabs ---------- */
.eh56-tabs{position:relative;z-index:2;display:flex;gap:6px;padding:6px!important;background:#ffffffd9;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--d7-line)!important;
  border-radius:999px!important;box-shadow:var(--d7-shadow)}
.eh56-tab{border-radius:999px!important;border:0!important;transition:background .25s var(--d7-ease),color .25s,transform .2s,box-shadow .25s}
.eh56-tab:hover{background:var(--d7-soft)}
.eh56-tab:active{transform:scale(.97)}
.eh56-tab.active{background:linear-gradient(135deg,var(--d7-red-2),var(--d7-red))!important;color:#fff!important;
  box-shadow:0 8px 18px -8px #bf1425a8}

/* ---------- Cards ---------- */
.eh68-home .eh67-next-card,.eh68-home .eh67-schedule-card,.eh68-home .eh67-surface,.eh68-home .eh67-upcoming{
  border-radius:var(--d7-radius)!important;border:1px solid var(--d7-line)!important;box-shadow:var(--d7-shadow)!important;
  transition:transform .25s var(--d7-ease),box-shadow .25s var(--d7-ease)}
.eh68-home .eh67-schedule-card:hover,.eh68-home .eh67-surface:hover,.eh68-home .eh67-upcoming:hover{
  box-shadow:var(--d7-shadow-hover)!important;transform:translateY(-1px)}
.eh67-section-title h2{font-size:19px!important;font-weight:800;color:var(--d7-ink)}

/* Entrance animation (staggered) */
@keyframes d7-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.eh68-home.eh7-enter>*,.eh68-home.eh7-enter .eh68-top>*{animation:d7-rise .45s var(--d7-ease) both}
.eh68-home.eh7-enter .eh68-top>*:nth-child(2){animation-delay:.08s}
.eh68-home.eh7-enter>*:nth-child(2){animation-delay:.14s}
.eh68-home.eh7-enter>*:nth-child(3){animation-delay:.2s}
.eh68-home.eh7-enter>*:nth-child(4){animation-delay:.26s}

/* ---------- Hero ("continue studying") ---------- */
.eh68-home .eh68-continue{position:relative;overflow:hidden;isolation:isolate;border:0!important;
  color:#fff;padding:30px!important;gap:28px;
  background:radial-gradient(520px 260px at 100% 0%,#ff5a6a55,transparent 60%),
             linear-gradient(135deg,#1b2b44 0%,#3a1530 48%,var(--d7-red) 130%)!important;
  box-shadow:0 24px 50px -22px #bf1425b0,0 2px 6px #17263b22!important}
.eh68-continue::after{content:"";position:absolute;inset:auto auto -90px -70px;width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle,#ffffff1f,transparent 70%);z-index:-1}
.eh68-continue h2{color:#fff!important;font-size:clamp(23px,3vw,31px)!important}
.eh68-continue p,.eh68-continue .eh67-muted{color:#ffffffc7!important}
.eh68-continue .eh67-kicker{color:#ffd9de!important;background:#ffffff1f;padding:4px 12px;border-radius:999px}
.eh68-continue .eh57c-app{box-shadow:0 6px 16px -6px #0006}
.eh68-continue .eh67-primary{background:#fff!important;color:var(--d7-red)!important;border:0!important;border-radius:14px;
  padding:12px 24px;box-shadow:0 12px 24px -10px #0009;transition:transform .25s var(--d7-ease),box-shadow .25s}
.eh68-continue .eh67-primary:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 18px 28px -10px #000a}
.eh68-continue .eh67-primary:active{transform:scale(.98)}

/* progress ring */
.eh68-continue .eh68-progress-copy{color:#ffffffd0}
.eh68-continue .eh68-progress{width:132px;height:132px;filter:drop-shadow(0 10px 18px #0005)}
.eh68-continue .eh68-progress b{color:#fff;font-size:30px;font-weight:800}
.eh68-continue .eh68-ring-track{stroke:#ffffff2e!important}
.eh68-continue .eh68-ring-value{stroke:#fff!important;stroke-linecap:round;transition:stroke-dasharray 1.3s var(--d7-ease)}
.eh68-continue .eh70-state-counts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}
.eh68-continue .eh70-state-counts>span{background:#ffffff1c;border:1px solid #ffffff26;color:#fff;border-radius:999px;
  padding:6px 14px;font-size:13px;backdrop-filter:blur(4px)}
.eh68-continue .eh70-state-counts b{font-weight:800;margin-inline-end:4px;color:#fff!important}

/* ---------- Weekly schedule ---------- */
.eh67-weekdays{gap:6px}
.eh67-weekday{border-radius:12px!important;transition:transform .2s var(--d7-ease),background .2s}
.eh67-weekday:hover{transform:translateY(-2px)}
.eh67-next-date{background:var(--d7-soft);border-radius:14px;padding:14px 16px!important;border:0!important}
.eh67-text-button{border-radius:12px!important;transition:background .2s,transform .2s}
.eh67-text-button:hover{background:#bf14250f;transform:translateX(-2px)}

/* ---------- Programs journey ---------- */
.eh68-program{border-radius:16px!important;border:1px solid var(--d7-line)!important;background:#fff!important;
  transition:transform .3s var(--d7-ease),box-shadow .3s var(--d7-ease),border-color .2s}
.eh68-program:hover{transform:translateY(-3px);box-shadow:var(--d7-shadow-hover);border-color:#e3a2aa!important}
.eh68-program.is-current{border-color:#e3a2aa!important;background:linear-gradient(180deg,#fff,#fff5f6)!important}
.eh67-track{height:9px!important;border-radius:999px!important;background:#e9eef5!important}
.eh67-track>span{background:linear-gradient(90deg,var(--d7-red-2),var(--d7-red))!important;border-radius:999px;
  transition:width 1.1s var(--d7-ease);position:relative;overflow:hidden}
.eh67-track>span::after{content:"";position:absolute;inset:0;
  background:linear-gradient(110deg,transparent 30%,#ffffff66 50%,transparent 70%);transform:translateX(120%);animation:d7-shine 1.6s 1.2s 1 both}
@keyframes d7-shine{to{transform:translateX(-120%)}}

/* ---------- Lessons ---------- */
.eh67-lesson{border-radius:16px!important;min-height:72px!important;transition:transform .25s var(--d7-ease),box-shadow .25s,border-color .2s,background .2s}
.eh67-lesson:hover{transform:translateX(-4px);box-shadow:var(--d7-shadow);border-color:#e3a2aa!important;background:#fff!important}
.eh67-lesson:focus-visible,.eh68-program:focus-visible,.eh56-tab:focus-visible,.eh67-primary:focus-visible{
  outline:3px solid #bf142566;outline-offset:2px}
.eh67-lesson-index{display:grid;place-items:center;min-width:40px;height:40px;border-radius:12px;background:var(--d7-soft);
  font-weight:800;color:var(--d7-ink)}
.eh67-lesson.is-done .eh67-lesson-index{background:var(--d7-green-bg);color:var(--d7-green)}
.eh67-lesson.is-done small{color:var(--d7-green)!important;font-weight:700}
.eh67-lesson.is-next{border-inline-start-width:5px!important;background:linear-gradient(90deg,#fff,#fff7f8)!important}
.eh67-lesson.is-next .eh67-lesson-index{background:var(--d7-red);color:#fff;box-shadow:0 8px 16px -8px #bf1425}

/* ---------- Subscription ---------- */
.eh68-followup{border-radius:999px;padding:6px 14px;background:#eef2f7;color:var(--d7-ink)}
.eh68-followup.is-expired{background:#fdecee;color:var(--d7-red)}
.eh68-followup.is-soon{background:var(--d7-amber-bg);color:var(--d7-amber)}
.eh69-date-items>div{border-radius:16px!important;background:var(--d7-soft)!important;border:1px solid var(--d7-line)!important;
  transition:transform .25s var(--d7-ease)}
.eh69-date-items>div:hover{transform:translateY(-2px)}
.eh68-subscription summary{cursor:pointer;font-weight:700;border-radius:12px;padding:10px 12px;transition:background .2s}
.eh68-subscription summary:hover{background:var(--d7-soft)}

/* ---------- Confetti ---------- */
.eh7-confetti{position:fixed;inset:0;pointer-events:none;z-index:9999}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .eh68-top{grid-template-columns:1fr!important}
  .eh68-home .eh68-continue{grid-template-columns:1fr!important;padding:22px!important;text-align:start}
  .eh68-continue .eh68-progress-copy{justify-items:start;grid-auto-flow:column;align-items:center;justify-content:start;gap:16px}
  .eh68-continue .eh68-progress{width:104px;height:104px}
  .eh67-welcome{flex-direction:column;align-items:flex-start}
  .eh56-tabs{overflow-x:auto;border-radius:20px!important}
}

@media (prefers-reduced-motion:reduce){
  .eh68-home.eh7-enter>*,.eh68-home.eh7-enter .eh68-top>*{animation:none}
  .eh67-track>span::after{animation:none}
  .eh68-home *,.eh68-home *::before{transition-duration:.01ms!important}
}

/* ================= v37.0.1 — Sections / Schedule / Programs tabs ================= */
.eh67-view>.eh67-sections,.eh67-schedule-view>*,.eh67-view .eh67-subscription,.eh67-view>.eh67-surface{
  animation:d7-rise .55s var(--d7-ease) both}
.eh67-sections,.eh67-view .eh67-surface,.eh67-view .eh67-schedule-card,.eh67-view .eh67-subscription{
  border-radius:var(--d7-radius)!important;border:1px solid var(--d7-line)!important;box-shadow:var(--d7-shadow)!important;background:#fff}
.eh67-sections .eh67-section-title{align-items:flex-start;gap:12px;flex-wrap:wrap}
.eh67-sections .eh67-kicker{color:var(--d7-red);background:#bf14250f;padding:4px 12px;border-radius:999px;font-weight:800;font-size:12.5px}
.eh67-sections .eh67-muted{background:var(--d7-soft);padding:6px 14px;border-radius:999px;font-weight:600}

/* overall progress bar injected by JS */
.eh7-bar{margin:4px 0 16px;display:grid;gap:6px}
.eh7-bar>div:first-child{display:flex;justify-content:space-between;font-size:13px;color:var(--d7-muted);font-weight:700}
.eh7-bar>div:first-child b{color:var(--d7-red)}

/* toolbar: program pills + filter chips */
.eh67-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px;
  padding:10px;background:var(--d7-soft);border-radius:18px}
.eh57-program-tabs,.eh57-lesson-filters{display:flex;flex-wrap:wrap;gap:6px}
.eh57-program-tab,.eh57-lesson-filters button{border:1px solid transparent!important;background:transparent!important;border-radius:999px!important;
  padding:8px 14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px;color:var(--d7-muted);
  transition:background .25s var(--d7-ease),color .2s,box-shadow .25s,transform .2s}
.eh57-program-tab:hover,.eh57-lesson-filters button:hover{background:#fff!important;color:var(--d7-ink);transform:translateY(-1px)}
.eh57-program-tab.active,.eh57-lesson-filters button.active{background:#fff!important;color:var(--d7-red)!important;
  border-color:#e9b5bb!important;box-shadow:0 8px 18px -10px #bf1425a0}
.eh57-program-tab small{background:#bf14250f;color:var(--d7-red);padding:2px 8px;border-radius:999px;font-weight:800}
.eh57-lesson-filters button:focus-visible,.eh57-program-tab:focus-visible{outline:3px solid #bf142566;outline-offset:2px}

/* lessons grid: staggered reveal + done state polish */
.eh67-sections .eh67-lesson{animation:d7-rise .5s var(--d7-ease) both}
.eh67-sections .eh67-lesson:nth-child(2){animation-delay:.03s}.eh67-sections .eh67-lesson:nth-child(3){animation-delay:.06s}
.eh67-sections .eh67-lesson:nth-child(4){animation-delay:.09s}.eh67-sections .eh67-lesson:nth-child(5){animation-delay:.12s}
.eh67-sections .eh67-lesson:nth-child(6){animation-delay:.15s}.eh67-sections .eh67-lesson:nth-child(n+7){animation-delay:.18s}
.eh67-lesson.is-done{background:linear-gradient(180deg,#fff,#fff6f7)!important;border-color:#f0c2c7!important}

/* schedule tab */
.eh67-schedule-view{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:18px;margin-bottom:18px}
.eh67-schedule-view .eh67-surface h2{font-size:19px;font-weight:800;color:var(--d7-ink);margin:0 0 8px}
.eh67-attendance{background:var(--d7-soft);border-radius:14px;padding:12px 14px!important}
.eh67-view .eh67-subscription summary{cursor:pointer;font-weight:800;padding:6px 4px;list-style:none;display:flex;align-items:center;gap:10px}
.eh67-date-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:14px}
.eh67-date-grid>div{background:var(--d7-soft);border:1px solid var(--d7-line);border-radius:16px;padding:14px 16px;
  display:grid;gap:4px;transition:transform .25s var(--d7-ease),box-shadow .25s}
.eh67-date-grid>div:hover{transform:translateY(-3px);box-shadow:var(--d7-shadow)}
.eh67-date-grid>div>span{color:var(--d7-muted);font-size:13px}
.eh67-date-grid>div>strong{font-size:17px;color:var(--d7-ink)}

@media (max-width:860px){
  .eh67-schedule-view{grid-template-columns:1fr}
  .eh67-toolbar{border-radius:16px}
  .eh57-lesson-filters{overflow-x:auto;flex-wrap:nowrap;width:100%;padding-bottom:2px}
}
@media (prefers-reduced-motion:reduce){
  .eh67-sections .eh67-lesson,.eh67-view>*,.eh67-schedule-view>*{animation:none!important}
}

/* ================= v37.1.0 — new features ================= */
/* Milestones */
.eh7-milestones .eh67-section-title{align-items:center;flex-wrap:wrap;gap:8px}
.eh7-next-hint{font-size:13px;font-weight:700;color:var(--d7-muted);background:var(--d7-soft);padding:6px 14px;border-radius:999px}
.eh7-badges{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.eh7-badge{display:grid;justify-items:center;gap:4px;text-align:center;padding:16px 10px;border-radius:18px;
  background:var(--d7-soft);border:1px dashed #cdd6e3;color:#8393a8;transition:transform .25s var(--d7-ease),box-shadow .25s}
.eh7-badge b{font-size:14px;color:inherit}
.eh7-badge small{font-size:12px;font-weight:700}
.eh7-badge-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e7ecf3;margin-bottom:4px}
.eh7-badge.is-earned{background:linear-gradient(180deg,#fff,#fff6f7);border:1px solid #f0c2c7;color:var(--d7-green)}
.eh7-badge.is-earned .eh7-badge-icon{background:linear-gradient(135deg,#e11d2e,#bf1425);color:#fff;box-shadow:0 8px 16px -8px #bf1425}
.eh7-badge.is-earned b{color:var(--d7-ink)}
.eh7-badge:hover{transform:translateY(-2px)}
.eh7-enter .eh7-badge.is-earned .eh7-badge-icon{animation:d7-pop .6s .5s var(--d7-ease) both}
@keyframes d7-pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}

/* Course time meter */
.eh7-course-meter{margin:6px 0 16px;display:grid;gap:7px;padding:14px 16px;border-radius:16px;background:var(--d7-soft);border:1px solid var(--d7-line)}
.eh7-course-meter>div{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;font-weight:700;color:var(--d7-muted)}
.eh7-course-meter>div b{color:var(--d7-ink)}
.eh7-course-meter.is-low>div b{color:var(--d7-amber)}
.eh7-course-meter.is-low .eh67-track>span{background:linear-gradient(90deg,#f59e0b,var(--d7-amber))!important}

/* Share button */
.eh68-continue .eh67-next-actions{display:flex;flex-wrap:wrap;gap:10px}
.eh7-share{appearance:none;font:700 15px/1.6 'Tajawal','Segoe UI',sans-serif;min-height:46px;padding:10px 20px;border-radius:14px;cursor:pointer;
  color:#fff;background:#ffffff1c;border:1px solid #ffffff40;backdrop-filter:blur(4px);transition:background .2s,transform .2s var(--d7-ease)}
.eh7-share:hover{background:#ffffff30;transform:translateY(-1px)}
.eh7-share:focus-visible{outline:3px solid #ffffff99;outline-offset:2px}

/* Search */
.eh7-search{flex:1 1 220px;max-width:340px;position:relative;display:block}
.eh7-search input{width:100%;font:600 14px 'Tajawal','Segoe UI',sans-serif;padding:10px 16px;border-radius:999px;border:1px solid var(--d7-line);
  background:#fff;color:var(--d7-ink);transition:border-color .2s,box-shadow .2s}
.eh7-search input:focus{outline:none;border-color:#e3a2aa;box-shadow:0 0 0 4px #bf14251a}
.eh7-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.eh7-hidden{display:none!important}
.eh7-empty{grid-column:1/-1;text-align:center;color:var(--d7-muted);padding:24px;font-weight:700}

/* Toast */
.eh7-toast{position:fixed;inset-inline:0;bottom:24px;margin:auto;width:max-content;max-width:90vw;z-index:10000;
  background:var(--d7-navy);color:#fff;padding:12px 22px;border-radius:999px;font-weight:700;box-shadow:0 18px 40px -14px #000a;
  opacity:0;transform:translateY(12px);transition:opacity .3s var(--d7-ease),transform .3s var(--d7-ease)}
.eh7-toast.is-in{opacity:1;transform:none}

@media (max-width:860px){.eh7-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.eh7-search{max-width:none;flex-basis:100%}}
@media (prefers-reduced-motion:reduce){.eh7-enter .eh7-badge.is-earned .eh7-badge-icon{animation:none}.eh7-toast{transition:none}}
/* ================= v37.2.0 — streak & weekly activity ================= */
.eh7-activity-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:22px;align-items:center;margin-top:16px}
.eh7-week{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.eh7-day{display:grid;justify-items:center;gap:6px}
.eh7-dot{width:100%;max-width:46px;aspect-ratio:1;border-radius:14px;display:grid;place-items:center;background:var(--d7-soft);
  border:1px solid var(--d7-line);color:#fff;transition:transform .25s var(--d7-ease),box-shadow .25s}
.eh7-day small{font-size:12px;font-weight:700;color:var(--d7-muted)}
.eh7-day.is-on .eh7-dot{background:linear-gradient(135deg,#e11d2e,#bf1425);border-color:transparent;box-shadow:0 8px 16px -9px #bf1425}
.eh7-day.is-off .eh7-dot{background:repeating-linear-gradient(45deg,#f0f3f8,#f0f3f8 5px,#e8edf4 5px,#e8edf4 10px);border-style:dashed}
.eh7-day.is-today .eh7-dot{outline:2px solid #bf142566;outline-offset:2px}
.eh7-day.is-today small{color:var(--d7-red)}
.eh7-day:hover .eh7-dot{transform:translateY(-2px)}
.eh7-enter .eh7-day.is-on .eh7-dot svg{animation:d7-pop .5s .4s var(--d7-ease) both}
.eh7-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.eh7-stats>div{background:var(--d7-soft);border:1px solid var(--d7-line);border-radius:16px;padding:12px 8px;text-align:center;display:grid;gap:2px}
.eh7-stats b{font-size:26px;font-weight:800;color:var(--d7-red);line-height:1.2}
.eh7-stats span{font-size:12px;font-weight:700;color:var(--d7-muted)}
@media (max-width:860px){.eh7-activity-body{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.eh7-enter .eh7-day.is-on .eh7-dot svg{animation:none}}

/* brand: no green on the student portal */
.eh67-lesson.is-done>svg,.eh67-lesson.is-done svg *{color:var(--d7-red)!important}

.eh67-recent svg,.eh67-lesson.is-done>.eh57-icon,.eh67-dialog-status{color:var(--d7-red)!important}

.eh67-notice{background:#fff6f7!important;border-color:#f0c2c7!important;color:var(--d7-deep)!important;border-radius:14px}


/* ================= v37.3.0 — clarity ================= */
/* page order: next step -> activity -> achievements -> upcoming -> journey -> subscription */
.eh68-home{display:grid}
.eh68-home>.eh68-top{order:1}
.eh68-home>.eh7-activity{order:2}
.eh68-home>.eh7-pace{order:3}.eh68-home>.eh7-milestones{order:4}
.eh68-home>.eh68-upcoming{order:5}
.eh68-home>.eh68-journey{order:6}
.eh68-home>.eh68-subscription{order:7}

/* hero button text may be long */
.eh68-continue .eh67-primary{white-space:normal;text-align:center;line-height:1.5}

/* empty schedule */
.eh7-no-schedule .eh67-next-date,.eh7-no-schedule .eh67-weekdays,.eh7-no-schedule .eh67-attendance{display:none!important}
.eh68-top .eh7-no-schedule>.eh67-text-button{display:none}
.eh7-empty-card{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;margin-top:12px;padding:16px;border-radius:16px;
  background:var(--d7-soft);border:1px dashed #e3a2aa}
.eh7-empty-card b{color:var(--d7-ink);font-size:15px}
.eh7-empty-card p{margin:4px 0 0;color:var(--d7-muted);font-size:13.5px;line-height:1.7}
.eh7-empty-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fdecee;color:var(--d7-red)}
.eh7-empty-cta{grid-column:1/-1;justify-self:start;appearance:none;font:700 14px 'Tajawal','Segoe UI',sans-serif;padding:9px 18px;border-radius:12px;
  background:#fff;color:var(--d7-red);border:1px solid #e3a2aa;cursor:pointer;transition:background .2s,transform .2s var(--d7-ease)}
.eh7-empty-cta:hover{background:#fff6f7;transform:translateY(-1px)}

/* lesson dialog */
.eh67-dialog-panel{border-radius:22px!important}
.eh7-status-row{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--d7-muted)}
.eh7-pill{padding:5px 16px;border-radius:999px;font-weight:800;font-size:14px}
.eh7-pill.is-done{background:var(--d7-red);color:#fff}
.eh7-pill.is-todo{background:#eef2f7;color:var(--d7-ink)}
.eh7-pill.is-hold{background:var(--d7-amber-bg);color:var(--d7-amber)}
.eh7-hint{background:var(--d7-soft);border-radius:14px;padding:12px 14px;line-height:1.8;border-inline-start:4px solid var(--d7-red)}
.eh7-dialog-nav{display:flex;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--d7-line)}
.eh7-dialog-nav button{appearance:none;font:700 14px 'Tajawal','Segoe UI',sans-serif;padding:10px 16px;border-radius:12px;background:#fff;
  border:1px solid var(--d7-line);color:var(--d7-ink);cursor:pointer;transition:border-color .2s,color .2s,transform .2s var(--d7-ease)}
.eh7-dialog-nav button:hover{border-color:#e3a2aa;color:var(--d7-red);transform:translateY(-1px)}
.eh7-dialog-nav .eh7-nav-next{margin-inline-start:auto}

/* ================= v37.3.1 — hero ring spacing ================= */
.eh68-home .eh68-continue{padding:34px 36px!important;grid-template-columns:minmax(0,1fr) 190px!important;gap:32px}
.eh68-continue .eh68-progress-copy{padding:20px 16px;border-radius:26px;background:#ffffff14;border:1px solid #ffffff24;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);align-self:center;box-sizing:border-box;width:100%}
.eh68-continue .eh68-progress{filter:none}
@media (max-width:860px){
  .eh68-home .eh68-continue{padding:28px 26px!important;grid-template-columns:1fr!important;gap:22px}
  .eh68-continue .eh68-progress-copy{width:auto;justify-self:stretch;display:flex;flex-direction:row;align-items:center;justify-content:center;
    gap:20px;padding:18px 22px;text-align:start}
}
@media (max-width:480px){
  .eh68-home .eh68-continue{padding:24px 20px!important}
  .eh68-continue .eh68-progress-copy{padding:16px}
}

/* ===== v37.7.0 — calmer wording for ended follow-up ===== */
.eh68-followup.is-expired{background:#eef2f7!important;color:#17263b!important}
.eh68-followup.is-expired strong{color:#17263b}
.eh68-followup .eh7-soft-note{display:block;color:#56627a;font-weight:600}

/* ===== v37.8.0 — study schedule wizard ===== */
.eh93-editor[data-eh7w]{display:none!important}
.eh7w-host{width:min(760px,100%);margin:20px auto}
.eh7w{display:grid;gap:18px;padding:26px;background:#fff;border:1px solid var(--d7-line,#e3e9f1);border-radius:24px;box-shadow:0 1px 2px #17263b0a,0 18px 44px -22px #17263b40;animation:d7-rise .45s var(--d7-ease,ease) both}
.eh7w-title{margin:0;font-size:clamp(22px,3vw,28px);font-weight:800;color:#17263b}
.eh7w-lead{margin:-6px 0 0;color:#56627a;font-size:15px;line-height:1.8}
.eh7w-notice{padding:12px 16px;border-radius:14px;background:#fff6f7;border:1px solid #f0c2c7;color:#6b1a24;font-size:14px;font-weight:600;line-height:1.8}
.eh7w-notice b{color:#a30f1f}
.eh7w-systems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.eh7w-system{appearance:none;display:grid;gap:8px;align-content:start;text-align:start;padding:16px;border-radius:18px;background:#fff;border:2px solid #e3e9f1;cursor:pointer;font-family:inherit;color:#17263b;
  transition:border-color .2s,box-shadow .25s,transform .2s var(--d7-ease,ease)}
.eh7w-system:hover{border-color:#e3a2aa;transform:translateY(-1px)}
.eh7w-system.is-on{border-color:#bf1425;background:linear-gradient(180deg,#fff,#fff6f7);box-shadow:0 12px 26px -16px #bf1425a0}
.eh7w-system b{font-size:17px;font-weight:800}
.eh7w-sysdays{font-size:13.5px;font-weight:700;color:#bf1425}
.eh7w-system small{font-size:12.5px;color:#56627a;line-height:1.6}
.eh7w-strip{display:flex;gap:4px;flex-wrap:wrap}
.eh7w-strip i{font-style:normal;font-size:11.5px;font-weight:700;padding:3px 7px;border-radius:8px;background:#eef2f7;color:#56627a}
.eh7w-strip i.on{background:#bf1425;color:#fff}
.eh7w-block{display:grid;gap:12px;padding:16px;border-radius:18px;background:#f5f7fb;border:1px solid #e3e9f1}
.eh7w-block h3{margin:0;font-size:16px;font-weight:800;color:#17263b}
.eh7w-days,.eh7w-presets{display:flex;flex-wrap:wrap;gap:8px}
.eh7w-day,.eh7w-preset{appearance:none;font-family:inherit;border-radius:14px;background:#fff;border:2px solid #d5dde8;color:#17263b;cursor:pointer;transition:border-color .2s,background .2s}
.eh7w-day{padding:10px 18px;font-weight:700;font-size:14.5px}
.eh7w-preset{display:grid;gap:2px;padding:10px 16px;text-align:center;min-width:130px}
.eh7w-preset b{font-size:14.5px}.eh7w-preset span{font-size:12.5px;color:#56627a}
.eh7w-day:hover:not(:disabled),.eh7w-preset:hover{border-color:#e3a2aa}
.eh7w-day.is-on,.eh7w-preset.is-on{border-color:#bf1425;background:#fff1f3;color:#a30f1f}
.eh7w-day:disabled{opacity:.45;cursor:not-allowed}
.eh7w-time{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-weight:700;color:#17263b;font-size:14px}
.eh7w-dayname{min-width:84px}
.eh7w-time select{font:600 14px 'Tajawal','Segoe UI',sans-serif;padding:9px 12px;border-radius:12px;border:1px solid #d5dde8;background:#fff;color:#17263b;min-height:40px}
.eh7w-check{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#17263b;cursor:pointer}
.eh7w-check input{width:20px;height:20px;accent-color:#bf1425}
.eh7w-agree{padding:12px 14px;border-radius:14px;background:#fff6f7;border:1px solid #f0c2c7}
.eh7w-summary{display:grid;gap:6px;padding:16px;border-radius:18px;background:#17263b;color:#fff}
.eh7w-summary b{font-size:15px;color:#ffd9de}
.eh7w-sumrow{font-size:15px;font-weight:700}
.eh7w-go{appearance:none;font:800 16px 'Tajawal','Segoe UI',sans-serif;padding:14px 22px;border-radius:16px;border:0;background:linear-gradient(135deg,#e11d2e,#bf1425);color:#fff;cursor:pointer;
  box-shadow:0 14px 28px -14px #bf1425;transition:transform .2s var(--d7-ease,ease),box-shadow .2s,opacity .2s}
.eh7w-go:hover:not(:disabled){transform:translateY(-1px)}
.eh7w-go:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.eh7w-hint{margin:0;color:#56627a;font-size:13.5px;font-weight:600}
.eh7w-error{margin:0;color:#a30f1f;font-weight:700;font-size:13.5px}
.eh7w-msg{margin:0;min-height:1.2em;font-weight:700;color:#17263b}
.eh7w button:focus-visible,.eh7w select:focus-visible,.eh7w input:focus-visible{outline:3px solid #bf142566;outline-offset:2px}
@media (max-width:700px){.eh7w{padding:18px}.eh7w-systems{grid-template-columns:1fr}.eh7w-preset{flex:1 1 calc(50% - 8px);min-width:0}}
@media (prefers-reduced-motion:reduce){.eh7w{animation:none}.eh7w-system,.eh7w-day,.eh7w-preset,.eh7w-go{transition:none}}

/* schedule day pills: "done" was green -> brand red */
html body .eh67-weekday.done,html body .eh67-weekday.done *{color:#a30f1f!important}
html body .eh67-weekday.done{background:#fdecee!important;border-color:#f0c2c7!important}

/* ===== v38.0.0 (phase A) — plan vs pace card ===== */
.eh7-pace-msg{margin:6px 0 14px;font-size:15px;font-weight:700;color:#17263b;line-height:1.8}
.eh7-pace-bar{position:relative;height:12px;border-radius:999px;background:#e9eef5;overflow:visible;margin:4px 0 12px}
.eh7-pace-bar b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e11d2e,#bf1425);transition:width 1.1s var(--d7-ease,ease)}
.eh7-pace-bar u{position:absolute;top:-5px;bottom:-5px;width:4px;margin-inline-start:-2px;border-radius:3px;background:#17263b;text-decoration:none}
.eh7-pace-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;font-weight:700;color:#56627a}
.eh7-pace-legend i{display:inline-block;width:12px;height:12px;border-radius:4px;margin-inline-end:4px;vertical-align:-1px}
.eh7-pace-legend i.a{background:#bf1425}.eh7-pace-legend i.e{background:#17263b}
.eh7-pace-legend b{color:#17263b}
.eh7-pace-more{display:block;margin-top:10px;color:#56627a;font-weight:600}
@media (prefers-reduced-motion:reduce){.eh7-pace-bar b{transition:none}}
/* ===== v38.4 — calmer hero card + red active days ===== */
html body .eh68-home .eh68-continue{display:grid!important;grid-template-columns:minmax(0,1fr) 176px!important;grid-template-areas:"copy ring" "chips chips"!important;
  gap:18px 28px!important;padding:26px 30px 20px!important;align-items:center}
html body .eh68-continue>.eh68-next-copy{grid-area:copy;display:grid;gap:10px;align-content:center;min-width:0}
html body .eh68-continue>.eh68-progress-copy{grid-area:ring;width:auto!important;padding:16px 10px!important;border-radius:22px!important;display:grid;justify-items:center;gap:8px;text-align:center}
html body .eh68-continue>.eh70-state-counts{grid-area:chips;display:flex!important;flex-wrap:wrap;gap:8px;margin:0!important;padding:14px 0 0!important;border-top:1px solid #ffffff2e!important}
html body .eh68-continue .eh68-next-copy h2{font-size:clamp(22px,2.6vw,30px)!important;line-height:1.35!important;margin:0!important}
html body .eh68-continue .eh68-next-copy>p{margin:0!important;font-size:14px;opacity:.85}
html body .eh68-continue .eh67-next-actions{display:flex!important;flex-wrap:wrap;gap:10px;margin-top:6px}
html body .eh68-continue .eh67-next-actions .eh67-primary{width:auto!important;min-width:170px;padding:11px 22px!important;border-radius:14px!important}
html body .eh68-continue .eh7-share{padding:10px 16px!important;border-radius:14px!important;font-size:13.5px}
html body .eh68-continue .eh67-muted{font-size:12px;opacity:.7;margin:0}
html body .eh68-continue .eh68-progress-copy>span{font-size:12.5px;opacity:.85}
html body .eh70-state-counts>span{padding:6px 14px!important;font-size:13px!important}
@media (max-width:640px){
  html body .eh68-home .eh68-continue{grid-template-columns:1fr!important;grid-template-areas:"copy" "ring" "chips"!important;padding:22px 18px 16px!important}
  html body .eh68-continue>.eh68-progress-copy{display:flex!important;justify-content:center;gap:16px;width:auto!important}
}
/* weekly activity: studied days in brand red, label bold */
html body .eh7-day.is-on small{color:#bf1425;font-weight:800}
html body .eh7-day.is-on .eh7-dot{background:linear-gradient(135deg,#e11d2e,#a30f1f)!important;box-shadow:0 10px 18px -9px #bf1425!important}

/* subscription sits beside the diploma journey (fills the empty half) on wide screens */
@media (min-width:861px){.eh68-home:has(>.eh68-journey)>.eh68-subscription{grid-column:auto!important;align-self:stretch}}

/* subscription details always open: hide the toggle row */
.eh68-subscription details>summary{display:none!important}
