/* مسار الدورة المباشرة — لوحات واضحة */
.live-flow-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0c4a6e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.live-flow-hero__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.live-flow-hero h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.live-flow-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.live-flow-roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.live-flow-roadmap__step {
  flex: 1 1 140px;
  min-width: 120px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}
.live-flow-roadmap__step--done {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.45);
}
.live-flow-roadmap__step--active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}
.live-flow-roadmap__step--waiting {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
}
.live-flow-roadmap__num {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
.live-flow-roadmap__label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
}
.live-flow-roadmap__hint {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.live-flow-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.live-flow-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.live-flow-card--highlight {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}
.live-flow-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.live-flow-card p {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}
.live-flow-card .btn { margin-top: 0.25rem; }

.live-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.live-dash-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: center;
}
.live-dash-stat strong {
  display: block;
  font-size: 1.5rem;
  color: #0f172a;
  line-height: 1.2;
}
.live-dash-stat span {
  font-size: 0.78rem;
  color: #64748b;
}
.live-dash-stat--accent {
  border-color: #2563eb;
  background: #eff6ff;
}
.live-dash-stat--warn {
  border-color: #f59e0b;
  background: #fffbeb;
}
.live-dash-stat--ok {
  border-color: #22c55e;
  background: #f0fdf4;
}

.live-post-panel {
  border: 2px solid #2563eb;
  border-radius: 14px;
  padding: 1.25rem;
  background: #eff6ff;
  margin-bottom: 1.5rem;
}
.live-post-panel h3 {
  margin: 0 0 0.5rem;
}

.live-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.live-quick-grid a {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.live-quick-grid a:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.live-quick-grid strong { display: block; margin-bottom: 0.25rem; }
.live-quick-grid span { font-size: 0.85rem; color: #64748b; }

.live-entry-code-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
  font-size: 0.9rem;
}
.live-entry-code-banner .ico { color: #86efac; flex-shrink: 0; }

.live-entry-code {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.live-entry-code--ready {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}
.live-entry-code--waiting {
  border-color: #f59e0b;
  background: #fffbeb;
}
.live-entry-code--used {
  border-color: #22c55e;
  background: #f0fdf4;
}
.live-entry-code__badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 0.35rem;
}
.live-entry-code__badge--wait { color: #b45309; }
.live-entry-code__session {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}
.live-entry-code__value {
  display: inline-block;
  margin: 0.35rem 0 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #0f766e;
  background: #fff;
  border: 2px dashed #22c55e;
  border-radius: 10px;
}
.live-entry-code__hint {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}
.live-entry-code__notify {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.live-entry-code__notify a { font-weight: 600; }

/* مسار الشهادة — شاهد التطبيق */
.witness-path-guide {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.witness-path-guide__head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}
.witness-path-guide__head h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.witness-path-guide__head p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}
.witness-path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.witness-path-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  position: relative;
}
.witness-path-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 1.05rem;
  top: 2.6rem;
  bottom: -0.2rem;
  width: 2px;
  background: #e2e8f0;
}
.witness-path-step--done:not(:last-child)::after {
  background: #86efac;
}
.witness-path-step__marker {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  z-index: 1;
}
.witness-path-step--active .witness-path-step__marker {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.witness-path-step--done .witness-path-step__marker {
  background: #22c55e;
  border-color: #16a34a;
  color: #fff;
}
.witness-path-step--waiting .witness-path-step__marker {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}
.witness-path-step__body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: #0f172a;
}
.witness-path-step__body p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}
.witness-path-step--active .witness-path-step__body strong {
  color: #1d4ed8;
}
.witness-path-step__tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}
@media (min-width: 640px) {
  .witness-path-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .witness-path-step {
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
  }
  .witness-path-step:not(:last-child)::after {
    display: none;
  }
  .witness-path-step--active {
    border-color: #2563eb;
    background: #eff6ff;
  }
  .witness-path-step--done {
    border-color: #bbf7d0;
    background: #f0fdf4;
  }
}

/* ══════ لوحة الطالب للدورة المباشرة (hub) بهوية آفاق ══════ */
.lf{--lf-navy:#0B1A3A; --lf-navy-2:#1B3C7E; --lf-gold:#C8A33A; --lf-gold-wash:#FFF9E8; --lf-gold-line:#EAD69A; --lf-ink:#17233B; --lf-mut:#6A7690; --lf-hair:#E7ECF5; --lf-ok:#1F9D6A; --q:-13deg; display:grid; gap:14px; max-width:1040px}
.lf-now{display:flex; gap:18px; align-items:stretch; flex-wrap:wrap; padding:18px 20px; border-radius:14px; background:linear-gradient(135deg,#0B1A3A 0%,#1B3C7E 70%,#2E6BB8 100%); color:#fff; box-shadow:0 14px 34px rgba(11,26,58,.22); position:relative; overflow:hidden}
.lf-now::after{content:""; position:absolute; inset-inline-end:-40px; top:-30px; width:180px; height:260px; background:rgba(255,255,255,.05); transform:skewX(var(--q)); pointer-events:none}
.lf-now.is-live{background:linear-gradient(135deg,#0B1A3A 0%,#153A2C 65%,#1F9D6A 125%)}
.lf-now-main{flex:1; min-width:240px; display:grid; gap:6px; align-content:start}
.lf-now-main h2{margin:0; font-size:1.2rem; font-weight:800; color:#fff}
.lf-now-main p{margin:0; color:rgba(255,255,255,.82); font-size:.9rem; line-height:1.6}
.lf-badge.live-course-badge{position:static; display:inline-block; width:max-content; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); color:#fff; font-size:.74rem; padding:3px 10px; border-radius:999px}
.lf-countdown{margin-top:4px}
.lf-countdown .live-countdown{background:rgba(255,255,255,.08); border-radius:10px; padding:8px 12px; display:inline-block}
.lf-now-side{display:grid; gap:10px; align-content:center; min-width:220px; position:relative; z-index:1}
.lf-code-form{display:grid; gap:6px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); border-radius:12px; padding:12px}
.lf-code-form label{font-size:.76rem; color:rgba(255,255,255,.85); font-weight:600}
.lf-code-input.form-input{letter-spacing:.2em; text-transform:uppercase; text-align:center; font-weight:700; font-size:1.05rem; background:#fff; color:#0B1A3A; border-radius:9px}
.lf-go.btn{width:100%; justify-content:center; background:linear-gradient(145deg,#D4AE42,#B8912A); border:0; color:#fff; font-weight:700; border-radius:10px; box-shadow:0 8px 20px rgba(200,163,58,.35)}
.lf-go.btn:hover{background:linear-gradient(145deg,#C9A337,#A7821F)}
.lf-attend{display:flex; align-items:baseline; gap:8px; padding:8px 12px; border-radius:10px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14)}
.lf-attend b{font-size:1.25rem; font-weight:800; color:#F2D27A}
.lf-attend span{font-size:.76rem; color:rgba(255,255,255,.8)}
.lf-codebox .live-entry-code{margin:0}
.lf-steps{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px}
.lf-step{display:flex; gap:10px; padding:14px; border:1px solid var(--lf-hair); border-radius:13px; background:#fff; box-shadow:0 2px 8px rgba(11,26,58,.05); position:relative}
.lf-step.is-current{border-color:var(--lf-gold-line); background:linear-gradient(180deg,#fff,var(--lf-gold-wash)); box-shadow:0 0 0 3px rgba(200,163,58,.14)}
.lf-step.is-done{border-color:#BFE8D5; background:linear-gradient(180deg,#fff,#F1FBF6)}
.lf-step-n{width:30px; height:30px; flex:none; display:grid; place-items:center; border-radius:8px; background:#E9EEF8; color:var(--lf-navy-2); font-weight:800; font-size:.85rem; transform:skewX(var(--q))}
.lf-step-n i{font-style:normal; transform:skewX(calc(var(--q) * -1))}
.lf-step.is-current .lf-step-n{background:linear-gradient(145deg,#D4AE42,#B8912A); color:#fff}
.lf-step.is-done .lf-step-n{background:var(--lf-ok); color:#fff}
.lf-step-b{display:grid; gap:5px; align-content:start; min-width:0}
.lf-step-b strong{font-size:.92rem; color:var(--lf-ink)}
.lf-step-b p{margin:0; font-size:.82rem; color:var(--lf-mut); line-height:1.55}
.lf-step-b .btn,.lf-step-b .badge{width:max-content; margin-top:2px}
.lf-block{margin:0}
.lf-folds{display:grid; gap:10px}
.lf-fold{border:1px solid var(--lf-hair); border-radius:12px; background:#fff; overflow:hidden}
.lf-fold>summary{list-style:none; cursor:pointer; padding:11px 14px; font-weight:700; font-size:.88rem; color:var(--lf-ink); display:flex; align-items:center; gap:8px; user-select:none}
.lf-fold>summary::-webkit-details-marker{display:none}
.lf-fold>summary::before{content:""; width:7px; height:7px; border-inline-start:2px solid var(--lf-gold); border-bottom:2px solid var(--lf-gold); transform:rotate(-45deg); transition:transform .15s; margin-inline-end:2px}
.lf-fold[open]>summary::before{transform:rotate(45deg)}
.lf-fold[open]>summary{border-bottom:1px solid var(--lf-hair); background:#FAFBFE}
.lf-count{font-weight:500; color:var(--lf-mut); font-size:.78rem}
.lf-fold-body{padding:12px 14px; display:grid; gap:10px}
.lf-fold-body .table{margin:0}
.lf-two{grid-template-columns:1fr 1fr; gap:16px}
.lf-h{margin:0 0 6px; font-size:.8rem; font-weight:700; color:var(--lf-mut)}
.lf-ask{display:grid; gap:8px}
.lf-ask .btn{width:max-content}
.lf-q{padding:10px 12px; border-radius:10px; background:#F7F9FD; border:1px solid var(--lf-hair); display:grid; gap:4px}
.lf-q p{margin:0; font-size:.86rem; color:var(--lf-ink)}
.lf-q-a{color:var(--lf-navy-2)!important; padding-inline-start:10px; border-inline-start:3px solid var(--lf-gold)}
@media (max-width:720px){.lf-two{grid-template-columns:1fr} .lf-now{padding:14px}}
