/* Payment result + student course pages (loaded after style.css and page.css). */
[hidden] { display: none !important; }

.status-wrap { min-height: calc(100svh - 80px); display: grid; place-items: center; padding: 110px 16px 40px; }
.status-card {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--ink);
}
.status-card h1, .status-card h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-bottom: 12px; }
.status-card p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }
.status-icon { width: 120px; margin: 0 auto 12px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.15)); }
.status-note { font-size: 14px; margin-top: 22px !important; }
.status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.spinner {
  width: 54px; height: 54px; margin: 6px auto 18px;
  border-radius: 50%;
  border: 6px solid var(--cream-2, #f1e6d6);
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
html[lang=ar] .status-card h1, html[lang=ar] .status-card h2 { letter-spacing: 0; line-height: 1.35; }

/* ---------- Student course page ---------- */
.learn { max-width: 1160px; margin: 0 auto; padding: 0 16px 60px; }
.learn-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.player-card, .lesson-list-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 16px;
}
.player { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.player iframe { width: 100%; height: 100%; border: 0; }
.player-empty { font-size: 48px; }
.player-card h2 { font-size: 26px; font-weight: 800; margin: 16px 6px 6px; }
.lesson-notes { margin: 0 6px 6px; color: var(--ink-soft); line-height: 1.6; white-space: pre-line; }
.lesson-list-card h3 { font-size: 22px; font-weight: 800; margin: 4px 6px 12px; }
.lesson-list-card .count { font-size: 15px; opacity: .6; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: l; max-height: 60vh; overflow: auto; }
.lesson-list li { counter-increment: l; }
.lesson-list button {
  width: 100%;
  display: flex; gap: 10px; align-items: center;
  text-align: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--cream);
  font: 600 15px/1.3 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.lesson-list button::before {
  content: counter(l);
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--ink);
  font: 800 13px/1 var(--display);
}
.lesson-list li.active button { border-color: var(--ink); background: var(--yellow); }
.learn-help { margin: 14px 6px 4px; font-size: 14px; color: var(--ink-soft); }
.learn-help a { text-decoration: underline; font-weight: 700; color: var(--ink); }
.learn .status-card { margin-top: 10px; }
@media (max-width: 860px) {
  .learn-grid { grid-template-columns: 1fr; }
  .lesson-list { max-height: none; }
}

/* ---------- My courses ---------- */
.recover-form input {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  font: 16px var(--sans);
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  outline: none;
}
.recover-error { color: var(--red-deep) !important; font-weight: 700; margin: 0 0 12px !important; font-size: 14px; }
