/* ============================================================
   LawDigits Academy — Course Player Stylesheet
   Shared by course-dp.html, course-ai.html, course-cyber.html
   Requires style.css to be loaded first.
   ============================================================ */

/* ── Course Shell Layout ──────────────────────────────────── */
.course-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--off-white);
}

/* Slim sticky header for course pages */
.course-topbar {
  background: var(--navy-dp);
  padding: .625rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 200;
}
.course-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.course-back-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
  min-height: 36px;
}
.course-back-link:hover { color: var(--white); }
.course-back-link i { font-size: .75rem; }
.course-topbar-title {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}
.course-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.course-progress-wrap {
  display: flex;
  align-items: center;
  gap: .625rem;
}
.course-progress-bar-outer {
  width: 140px;
  height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  overflow: hidden;
}
.course-progress-bar-inner {
  height: 100%;
  background: var(--coral);
  border-radius: 3px;
  transition: width .4s ease;
}
.course-progress-pct {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Main 2-column layout ─────────────────────────────────── */
.course-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  flex: 1;
  min-height: 0;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.course-sidebar {
  background: var(--white);
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: sticky;
  top: 53px;
  height: calc(100vh - 53px);
}

.sidebar-header {
  padding: 1.25rem 1.375rem .875rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-course-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .625rem;
  border-radius: 4px;
  margin-bottom: .625rem;
}
.sidebar-course-tag.tag-dp    { background: rgba(246,91,106,.1);  color: var(--coral); }
.sidebar-course-tag.tag-ai    { background: rgba(37,62,152,.1);   color: var(--navy-dp); }
.sidebar-course-tag.tag-cyber { background: rgba(201,168,76,.15); color: var(--gold-dk); }

.sidebar-title {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy-dp);
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* Module list */
.module-nav-list { padding: .5rem 0; flex: 1; }

.mnl-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.375rem;
  cursor: pointer;
  transition: background var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.mnl-item:hover:not(.locked) { background: var(--off-white); }

.mnl-item.active {
  background: var(--coral-pale);
  border-left-color: var(--coral);
}
.mnl-item.completed { border-left-color: transparent; }
.mnl-item.locked    { cursor: not-allowed; opacity: .5; }

.mnl-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  background: var(--off-white);
  color: var(--text-mid);
}
.mnl-item.active    .mnl-icon { background: var(--coral);    color: var(--white); }
.mnl-item.completed .mnl-icon { background: var(--green-lt); color: var(--green); }
.mnl-item.locked    .mnl-icon { background: var(--off-white); color: var(--text-light); }

.mnl-text { flex: 1; min-width: 0; }
.mnl-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: .06em;
  display: block;
}
.mnl-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-dp);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  display: block;
}
.mnl-item.locked .mnl-title { color: var(--text-light); }
.mnl-item.active .mnl-title { color: var(--coral); }

.mnl-dur {
  font-size: .68rem;
  color: var(--text-light);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* Exam entry at bottom of sidebar */
.sidebar-exam-entry {
  margin: .5rem .875rem .875rem;
  padding: .875rem 1rem;
  background: var(--off-white);
  border-radius: 10px;
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: not-allowed;
  transition: all var(--transition);
}
.sidebar-exam-entry.unlocked {
  cursor: pointer;
  background: var(--navy-dp);
  border-style: solid;
  border-color: var(--navy-dp);
}
.sidebar-exam-entry.unlocked:hover {
  background: var(--navy);
}
.sidebar-exam-entry.active-exam {
  cursor: pointer;
  background: var(--coral);
  border-style: solid;
  border-color: var(--coral);
}
.exam-entry-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--text-mid);
  flex-shrink: 0;
}
.sidebar-exam-entry.unlocked .exam-entry-icon,
.sidebar-exam-entry.active-exam .exam-entry-icon { background: rgba(255,255,255,.15); color: var(--white); }
.exam-entry-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.25;
  flex: 1;
}
.sidebar-exam-entry.unlocked .exam-entry-label,
.sidebar-exam-entry.active-exam .exam-entry-label { color: var(--white); }
.exam-entry-sub {
  font-size: .68rem;
  color: var(--text-light);
  display: block;
  font-weight: 400;
}
.sidebar-exam-entry.unlocked .exam-entry-sub,
.sidebar-exam-entry.active-exam .exam-entry-sub { color: rgba(255,255,255,.65); }

/* ── Content Area ─────────────────────────────────────────── */
.course-content {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  max-width: 900px;
}

/* ── Video Player ─────────────────────────────────────────── */
.video-wrap {
  background: #0d0d1a;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Real HTML5 video */
.real-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Placeholder state (shown when no video file) */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(145deg, #0d1a3a, #1a2a5e);
}
.video-placeholder.hidden { display: none; }

.vph-icon {
  width: 72px;
  height: 72px;
  background: rgba(246,91,106,.15);
  border: 2px solid rgba(246,91,106,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--coral);
}
.vph-module-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vph-title {
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  padding-inline: 1.5rem;
  line-height: 1.2;
}
.vph-note {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* Demo / simulation player overlay */
.sim-player {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .875rem;
  background: linear-gradient(145deg, #0d1a3a, #1a2a5e);
}
.sim-player.hidden { display: none; }

.sim-module-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sim-title {
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  padding-inline: 1.5rem;
}

.sim-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sim-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--coral);
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.sim-play-btn:hover { background: var(--coral-lt); transform: scale(1.08); }

.sim-progress-area {
  width: min(400px, 80%);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sim-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}
.sim-progress-fill {
  height: 100%;
  background: var(--coral);
  border-radius: 3px;
  transition: width .5s linear;
  pointer-events: none;
}
.sim-time-row {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  font-family: var(--font-mono);
}

.sim-complete-badge {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.sim-complete-badge.show { display: flex; }
.sim-complete-badge i { font-size: 2.5rem; color: var(--green); }
.sim-complete-badge p { color: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem; }

/* ── Module Info ──────────────────────────────────────────── */
.module-info-block { margin-bottom: 1.75rem; }

.module-info-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .875rem;
  flex-wrap: wrap;
}
.module-num-badge {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  background: var(--coral-pale);
  color: var(--coral);
  border-radius: 4px;
}
.module-dur-badge {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.module-info-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--navy-dp);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.module-info-desc {
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 640px;
}

/* ── Navigation buttons ───────────────────────────────────── */
.module-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}
.module-nav-btns .btn-prev { }
.module-nav-btns .btn-next { }

/* ── Exam Section ─────────────────────────────────────────── */
.exam-section { display: none; }
.exam-section.active { display: block; }

.exam-header {
  background: var(--navy-dp);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.exam-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(246,91,106,.12);
  border-radius: 50%;
  filter: blur(40px);
}
.exam-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  position: relative;
}
.exam-header h2 em { font-family: var(--font-accent); font-style: italic; color: var(--coral-lt); }
.exam-header p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 520px;
  position: relative;
}
.exam-meta-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  position: relative;
}
.exam-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  font-family: var(--font-mono);
}
.exam-meta-item i { color: var(--coral); }

.exam-questions { display: flex; flex-direction: column; gap: 1.5rem; }

.exam-q-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
}
.exam-q-num {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .625rem;
}
.exam-q-text {
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy-dp);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.exam-options { display: flex; flex-direction: column; gap: .5rem; }

.exam-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
  background: var(--white);
}
.exam-option:hover { border-color: var(--coral); background: var(--coral-pale); }
.exam-option.selected { border-color: var(--coral); background: var(--coral-pale); color: var(--navy-dp); }
.exam-option.correct  { border-color: var(--green); background: var(--green-lt); color: var(--green); }
.exam-option.wrong    { border-color: #ef4444; background: #fef2f2; color: #dc2626; }

.exam-option input[type="radio"] { display: none; }
.exam-option-letter {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.exam-option.selected .exam-option-letter { background: var(--coral); border-color: var(--coral); color: var(--white); }
.exam-option.correct  .exam-option-letter { background: var(--green); border-color: var(--green); color: var(--white); }
.exam-option.wrong    .exam-option-letter { background: #ef4444; border-color: #ef4444; color: var(--white); }

.exam-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Exam Result */
.exam-result { display: none; }
.exam-result.show { display: block; }

.result-banner {
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.result-banner.pass { background: linear-gradient(135deg, #d1fae5, #a7f3d0); border: 2px solid var(--green); }
.result-banner.fail { background: linear-gradient(135deg, #fef2f2, #fde8e8); border: 2px solid #ef4444; }

.result-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.result-banner.pass .result-icon { color: var(--green); }
.result-banner.fail .result-icon { color: #dc2626; }

.result-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.result-banner.pass .result-title { color: #065f46; }
.result-banner.fail .result-title { color: #991b1b; }
.result-score-line { font-size: 1rem; margin-bottom: .5rem; }
.result-banner.pass .result-score-line { color: #047857; }
.result-banner.fail .result-score-line { color: #b91c1c; }

.result-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Certificate ──────────────────────────────────────────── */
.cert-view { display: none; }
.cert-view.show { display: block; }

.cert-download-card {
  background: var(--white);
  border: 2px solid var(--navy-dp);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(56,70,138,.15);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.cert-card-top {
  background: var(--navy-dp);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cert-logo { height: 36px; width: auto; background: rgba(255,255,255,.9); padding: .2rem .6rem; border-radius: 6px; }
.cert-academy-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cert-card-body {
  padding: 2.5rem 2rem;
  text-align: center;
}
.cert-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .5rem;
}
.cert-recipient-name {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-dp);
  border-bottom: 1.5px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.cert-course-completed {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-dp);
  margin-bottom: .5rem;
}
.cert-date-line { font-size: .8rem; color: var(--text-mid); margin-bottom: 2rem; }
.cert-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.cert-sig-col { text-align: center; flex: 1; }
.cert-sig-line { width: 100%; height: 1px; background: var(--border); margin-bottom: .375rem; }
.cert-sig-col small { font-size: .68rem; color: var(--text-mid); font-family: var(--font-mono); }
.cert-seal-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  justify-content: center;
  flex-shrink: 0;
}
.cert-seal-col i { color: var(--coral); font-size: 1.25rem; }
.cert-seal-col span { font-size: .52rem; color: var(--coral); font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.cert-cert-id { font-size: .7rem; color: var(--text-light); text-align: center; margin-top: .75rem; font-family: var(--font-mono); }

.cert-download-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Payment Modal (on lims.html) ─────────────────────────── */
.pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,40,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.pay-overlay.open { opacity: 1; pointer-events: all; }

.pay-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform .3s ease;
}
.pay-overlay.open .pay-box { transform: translateY(0); }

.pay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.pay-close:hover { background: var(--warm-gray); }

.pay-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}
.pay-header-icon {
  width: 44px; height: 44px;
  background: var(--coral-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pay-header h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 800; color: var(--navy-dp); line-height: 1.15; letter-spacing: -.01em; }
.pay-course-label { font-size: .8rem; color: var(--text-mid); margin-top: .2rem; font-weight: 500; }

/* Step dots */
.pay-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.75rem;
}
.pay-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.pay-step-dot span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-mid);
  transition: all .2s;
}
.pay-step-dot.active span { background: var(--coral); border-color: var(--coral); color: var(--white); }
.pay-step-dot.done span   { background: var(--green); border-color: var(--green); color: var(--white); }
.pay-step-dot small { font-size: .65rem; color: var(--text-light); font-family: var(--font-mono); white-space: nowrap; }
.pay-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .25rem; margin-bottom: 1.5rem; min-width: 30px; }

/* Amount row */
.pay-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--off-white);
  padding: .875rem 1.125rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.pay-amount-label { font-size: .85rem; font-weight: 600; color: var(--text-mid); }
.pay-amount-val { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 800; color: var(--navy-dp); }

/* Bank details card */
.bank-details-card {
  background: var(--navy-dp);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.bank-details-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .875rem;
}
.bank-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.bank-detail-row:last-child { border-bottom: none; }
.bdr-label { font-size: .75rem; color: rgba(255,255,255,.5); font-weight: 500; flex-shrink: 0; }
.bdr-value { font-size: .82rem; color: var(--white); font-weight: 600; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bdr-value strong { font-size: .88rem; }
.ref-value { color: var(--coral); font-family: var(--font-mono); font-size: .82rem; }

.copy-acct-btn {
  background: rgba(246,91,106,.2);
  border: 1px solid rgba(246,91,106,.3);
  color: var(--coral-lt);
  padding: .2rem .55rem;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: background var(--transition);
  font-family: var(--font);
  min-height: 0;
}
.copy-acct-btn:hover { background: rgba(246,91,106,.35); }

.pay-note {
  font-size: .8rem;
  color: var(--text-mid);
  background: var(--off-white);
  border-radius: 8px;
  padding: .625rem .875rem;
  margin-bottom: 1.375rem;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  line-height: 1.6;
}
.pay-note i { color: var(--coral); margin-top: .1rem; flex-shrink: 0; }

.pay-next-btn { width: 100%; justify-content: center; }

/* Upload form */
.pay-step-intro { font-size: .88rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.25rem; }

.pay-form { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.25rem; }
.pay-field { display: flex; flex-direction: column; gap: .35rem; }
.pay-field label { font-size: .82rem; font-weight: 600; color: var(--navy-dp); }
.req { color: var(--coral); }
.pay-field input {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  min-height: 44px;
}
.pay-field input:focus { outline: none; border-color: var(--coral); }
.pay-field input[readonly] { background: var(--off-white); color: var(--text-mid); cursor: default; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
  margin-bottom: 1.375rem;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--coral); }
.upload-zone-inner {
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.upload-zone-inner.hidden { display: none; }
.upload-icon { font-size: 2rem; color: var(--text-light); }
.upload-text { font-size: .88rem; font-weight: 600; color: var(--text-mid); }
.upload-zone small { font-size: .75rem; color: var(--text-light); }

.upload-preview {
  padding: .875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--green-lt);
}
.upload-preview.hidden { display: none; }
.upload-preview i { color: var(--green); font-size: 1.1rem; }
.upload-preview span { flex: 1; font-size: .85rem; font-weight: 600; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-remove-btn { background: none; border: none; cursor: pointer; color: var(--green); font-size: .9rem; padding: .25rem; min-height: 0; }

.pay-btn-row { display: flex; align-items: center; gap: .75rem; }
/* .btn-ghost is white-on-white inside the modal — restyle for light bg */
.pay-back-btn {
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  color: var(--navy);
  background: var(--off-white);
}
.pay-back-btn:hover {
  border-color: var(--navy);
  background: var(--white);
  color: var(--navy);
}
#paySubmitBtn { flex: 1; justify-content: center; }

/* Success step */
.pay-success {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pay-success-icon { font-size: 3.5rem; color: var(--green); }
.pay-success h4 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: var(--navy-dp); }
.pay-success p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; max-width: 320px; }
.pay-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .course-body { grid-template-columns: 1fr; }
  .course-sidebar {
    position: relative;
    top: 0;
    height: auto;
    max-height: 420px;
    border-right: none;
    border-bottom: 1.5px solid var(--border);
  }
  .course-content { padding: 1.5rem 1.25rem; }
}

@media (max-width: 600px) {
  .course-topbar { padding: .5rem 1rem; gap: .5rem; }
  .course-topbar-title { font-size: .82rem; }
  .course-progress-wrap { display: none; }
  .pay-box { padding: 1.5rem; }
  .pay-steps { gap: 0; }
  .cert-download-card { margin-inline: -.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pay-spinner { animation: none; }
  .pay-box, .pay-overlay, .sim-progress-fill,
  .mnl-item, .exam-option, .sim-play-btn { transition: none !important; }
}
