/* ═══════════════════════════════════════════════════════════════
   Ashoklabs Course Platform — supplementary styles
   Loaded only on lesson pages and course-landing pages.
   Brand colours: #155757 (dark teal) · #157878 (mid teal) · #fff
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout: two-column lesson wrapper ─────────────────────── */

.lesson-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - 52px);  /* viewport minus nav height */
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ── Sidebar ────────────────────────────────────────────────── */

.lesson-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: #f6fafa;
  border-right: 1px solid #d8eaea;
  min-height: calc(100vh - 52px);
  position: sticky;
  top: 52px;                       /* stick below the nav */
  height: calc(100vh - 52px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  z-index: 10;
}

.sidebar-header {
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #d8eaea;
}

.sidebar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #155757;
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-back-link:hover {
  color: #0f5f5f;
  text-decoration: none;
}

.sidebar-section-label {
  padding: 0.85rem 1.25rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0.65rem 1rem;
  gap: 0.15rem;
}

.sidebar-lesson {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  text-decoration: none;
  color: #444;
  font-size: 0.85rem;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.sidebar-lesson:hover {
  background: #e8f4f4;
  color: #155757;
  text-decoration: none;
}

.sidebar-lesson--active {
  background: #157878;
  color: #fff !important;
  font-weight: 600;
}

.sidebar-lesson--active:hover {
  background: #0f6868;
}

.sidebar-lesson-num {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: inherit;
  opacity: 0.7;
  min-width: 20px;
}

.sidebar-lesson--active .sidebar-lesson-num {
  opacity: 0.9;
}

.sidebar-lesson-title {
  flex: 1;
}

.sidebar-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid #d8eaea;
}

.sidebar-course-link {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-course-link:hover {
  color: #155757;
  text-decoration: none;
}

/* Mobile sidebar toggle button */
.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: #f6fafa;
  border: 1px solid #d8eaea;
  color: #155757;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* ── Lesson main area ───────────────────────────────────────── */

.lesson-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem 4rem;
  max-width: 860px;
}

/* ── Lesson header ──────────────────────────────────────────── */

.lesson-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e8f0f0;
  animation: fadeUp 0.35s ease both;
}

.lesson-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.lesson-badge {
  background: #e8f4f4;
  color: #155757;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #777;
  font-weight: 500;
}

.lesson-tag {
  background: #f0f4f4;
  color: #555;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.lesson-title-main {
  font-size: 1.75rem;
  font-weight: 700;
  color: #155757;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.lesson-description {
  font-size: 1rem;
  color: #555;
  margin: 0;
  line-height: 1.65;
}

/* ── Video section ──────────────────────────────────────────── */

.lesson-video-section {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.4s ease 0.1s both;
}

.lesson-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;           /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #1b2333;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}

.lesson-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.lesson-video-notice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  color: #999;
  margin: 0.6rem 0 0 0;
}

/* ── Lesson written content ─────────────────────────────────── */

.lesson-content {
  animation: fadeUp 0.4s ease 0.15s both;
}

.lesson-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #155757;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e8f0f0;
}

.lesson-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.lesson-content p {
  line-height: 1.8;
  color: #333;
  margin: 0 0 1rem 0;
}

.lesson-content ul,
.lesson-content ol {
  padding-left: 1.5rem;
  line-height: 1.8;
  color: #333;
  margin: 0 0 1rem 0;
}

.lesson-content li {
  margin-bottom: 0.35rem;
}

.lesson-content code {
  background: #f0f4f4;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.87em;
  color: #155757;
}

.lesson-content pre {
  background: #1b2333;
  color: #e0e6f0;
  padding: 1.15rem 1.4rem;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.6;
  margin: 1.25rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.lesson-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

.lesson-content blockquote {
  border-left: 4px solid #157878;
  margin: 1.5rem 0;
  padding: 0.6rem 1.1rem;
  color: #555;
  background: #f0f9f9;
  border-radius: 0 6px 6px 0;
}

.lesson-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25rem 0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.lesson-content table th {
  background: #f0f9f9;
  color: #155757;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid #d0e8e8;
}

.lesson-content table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  vertical-align: top;
}

.lesson-content table tr:last-child td {
  border-bottom: none;
}

.lesson-content table tr:hover td {
  background: #f9fefe;
}

/* ── Callout / tip boxes ────────────────────────────────────── */

.callout {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid transparent;
}

.callout--tip {
  background: #f0f9f0;
  border-color: #a8d8a8;
}

.callout--info {
  background: #f0f4f9;
  border-color: #a8c4e8;
}

.callout--warn {
  background: #fffbf0;
  border-color: #e8d8a8;
}

.callout-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.callout-body {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #333;
}

.callout-body strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #1a1a1a;
}

/* ── Lesson pager (prev / next) ─────────────────────────────── */

.lesson-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e8f0f0;
}

.lesson-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #d0e8e8;
  border-radius: 8px;
  text-decoration: none;
  color: #155757;
  background: #f6fafa;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  max-width: 48%;
}

.lesson-pager-btn:hover {
  background: #e8f4f4;
  border-color: #b0d8d8;
  box-shadow: 0 2px 8px rgba(21,120,120,0.08);
  text-decoration: none;
}

.lesson-pager-btn span {
  display: flex;
  flex-direction: column;
}

.lesson-pager-btn small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.lesson-pager-btn--prev {
  margin-right: auto;
}

.lesson-pager-btn--next {
  margin-left: auto;
  flex-direction: row-reverse;
}

/* ── Lesson discussion section ──────────────────────────────── */

.lesson-discussion {
  margin-top: 3rem;
}

.lesson-discussion h3 {
  font-size: 1.1rem;
  color: #155757;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.lesson-discussion-note {
  font-size: 0.83rem;
  color: #777;
  margin: 0 0 1.25rem 0;
}

/* ── Lesson index page (lessons list) ───────────────────────── */

.lessons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.lesson-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid #e8f0f0;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.lesson-card:hover {
  border-color: #b0d8d8;
  box-shadow: 0 2px 10px rgba(21,120,120,0.09);
  transform: translateX(3px);
  text-decoration: none;
}

.lesson-card-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #e8f4f4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #155757;
}

.lesson-card-body {
  flex: 1;
}

.lesson-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.15rem 0;
}

.lesson-card-desc {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.lesson-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lesson-card-duration {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
}

.lesson-card-arrow {
  color: #ccc;
  font-size: 0.9rem;
}

/* ── Buy card (Razorpay checkout) ───────────────────────────── */

.buy-card {
  background: #fff;
  border: 2px solid #d0e8e8;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 6px 32px rgba(21,120,120,0.10);
  max-width: 480px;
  margin: 2.5rem auto;
}

.buy-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.buy-price-block {
  display: flex;
  flex-direction: column;
}

.buy-price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: #155757;
  line-height: 1;
}

.buy-price-sub {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.2rem;
}

.buy-badge {
  background: linear-gradient(120deg, #155757, #157878);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.buy-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.buy-includes li {
  font-size: 0.875rem;
  color: #444;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.5;
}

.buy-check {
  color: #157878;
  font-weight: 700;
  flex-shrink: 0;
}

.buy-field {
  margin-bottom: 1rem;
}

.buy-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

.buy-email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  border: 1.5px solid #c8e4e4;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #f9fefe;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.buy-email-input:focus {
  border-color: #157878;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21,120,120,0.12);
}

.buy-email-input--error {
  border-color: #e55;
  box-shadow: 0 0 0 3px rgba(220,50,50,0.10);
}

.buy-field-hint {
  font-size: 0.75rem;
  color: #aaa;
  margin: 0.35rem 0 0 0;
}

.btn-buy-course {
  display: block;
  width: 100%;
  background: linear-gradient(120deg, #155757, #157878);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-buy-course:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-buy-course:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.buy-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #aaa;
  margin: 0.65rem 0 0 0;
  text-align: center;
}

/* ── Returning student section ──────────────────────────────── */

.buy-returning-section {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.buy-returning-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: 1.5px solid #d0e8e8;
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #155757;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-align: left;
}

.buy-returning-toggle:hover {
  background: #f0fafa;
  border-color: #157878;
  box-shadow: 0 0 0 3px rgba(21,120,120,0.07);
}

.buy-returning-toggle--open {
  border-radius: 10px 10px 0 0;
  border-bottom-color: transparent;
  background: #f6fdfd;
}

.buy-returning-toggle-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
  color: #157878;
  flex-shrink: 0;
}

.buy-returning-toggle--open .buy-returning-toggle-chevron {
  transform: rotate(180deg);
}

.buy-returning-panel {
  border: 1.5px solid #d0e8e8;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #f6fdfd;
  animation: fadeUp 0.2s ease both;
}

.buy-returning-intro {
  font-size: 0.82rem;
  color: #777;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.btn-github-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid #d0d7de;
  border-radius: 8px;
  background: #24292f;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-github-signin:hover {
  background: #32383f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.buy-returning-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #aaa;
  font-size: 0.78rem;
}

.buy-returning-divider::before,
.buy-returning-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* ── Section-based curriculum ─────────────────── */

.curr-section {
  margin-bottom: 1.25rem;
}

.curr-section-hdr {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.25rem 0.55rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid #d0e8e8;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}

.curr-section-hdr:hover { border-color: #157878; }

.curr-section-chevron {
  flex-shrink: 0;
  color: #157878;
  transition: transform 0.2s ease;
}

.curr-section-hdr[aria-expanded="false"] .curr-section-chevron {
  transform: rotate(-90deg);
}

.curr-section-title {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.curr-section-meta {
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
  font-weight: 500;
}

.curr-section-body {
  overflow: hidden;
}

.curr-section-body--collapsed {
  display: none;
}

.sidebar-section-hdr {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  padding: 0.85rem 1rem 0.35rem;
}

.btn-access-course {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: #fff;
  border: 1.5px solid #157878;
  color: #155757;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn-access-course:hover:not(:disabled) {
  background: #edf9f9;
  box-shadow: 0 0 0 3px rgba(21,120,120,0.12);
  transform: translateY(-1px);
}

.btn-access-course:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.buy-access-error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #fff5f5;
  border: 1px solid #fcc;
  border-radius: 7px;
  font-size: 0.8rem;
  color: #b91c1c;
  line-height: 1.5;
}

.buy-access-error svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Returning success state */
.buy-returning-success {
  text-align: center;
  padding: 0.5rem 0;
  animation: fadeUp 0.3s ease both;
}

.buy-returning-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #155757, #157878);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(21,120,120,0.25);
}

.buy-returning-success h3 {
  font-size: 1.2rem;
  color: #155757;
  margin: 0 0 0.35rem 0;
}

.buy-returning-success p {
  font-size: 0.875rem;
  color: #555;
  margin: 0 0 1.25rem 0;
}

.buy-returning-success-hint {
  font-size: 0.77rem;
  color: #999;
  margin-top: 0.75rem !important;
}

/* Spinner for loading state */
.buy-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Post-payment success */
.buy-success {
  text-align: center;
  padding: 1rem 0;
  animation: fadeUp 0.35s ease both;
}

.buy-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}

.buy-success h3 {
  font-size: 1.25rem;
  color: #155757;
  margin: 0 0 0.5rem 0;
}

.buy-success p {
  font-size: 0.875rem;
  color: #555;
  margin: 0 0 1.25rem 0;
}

.buy-success-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.85rem !important;
}

/* ── Lessons access gate (shown if lesson page loaded without auth) ── */
/* Note: Cloudflare Access handles real auth. This is a UX fallback. */

.access-gate {
  text-align: center;
  padding: 4rem 2rem;
}

.access-gate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.access-gate h2 {
  font-size: 1.5rem;
  color: #155757;
  margin-bottom: 0.5rem;
}

.access-gate p {
  color: #666;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ── Payment success page ───────────────────────────────────── */

.payment-success-page {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

.payment-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}

.payment-success-page h1 {
  font-size: 2rem;
  color: #155757;
  margin-bottom: 0.5rem;
}

.payment-success-page .lead {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.next-steps {
  text-align: left;
  background: #f6fafa;
  border: 1px solid #d0e8e8;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.next-steps h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0 0 1rem 0;
}

.next-step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.next-step-item:last-child {
  margin-bottom: 0;
}

.next-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #157878;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-step-text {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.5;
  padding-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — purchased-user experience
   ═══════════════════════════════════════════════════════════════ */

.dashboard-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.dash-hero {
  background: linear-gradient(135deg, #0e4a4a 0%, #157878 60%, #1a9a9a 100%);
  border-radius: 16px;
  padding: 2rem 2.25rem 1.75rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dash-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.dash-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dash-hero-left {
  flex: 1;
  min-width: 0;
}

.dash-enrolled-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  color: #e0f7f7;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.dash-course-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.dash-welcome-msg {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1.25rem 0;
  line-height: 1.55;
}

.dash-hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  color: #155757;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.dash-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  text-decoration: none;
  color: #0e4a4a;
}

.dash-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.dash-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
  color: #fff;
}

/* Progress Ring */
.dash-hero-right {
  flex-shrink: 0;
}

.dash-progress-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.dash-ring-svg {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}

.dash-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.15);
  stroke-width: 7;
}

.dash-ring-fill {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash-ring-pct {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dash-ring-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* Progress Bar (inside hero) */
.dash-bar-section {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.1rem;
}

.dash-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.dash-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}

.dash-bar-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.dash-bar-track {
  height: 7px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 20px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

/* ── Stats Row ─────────────────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dash-stat-card {
  background: #fff;
  border: 1px solid #e8f0f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: box-shadow 0.15s;
}

.dash-stat-card:hover {
  box-shadow: 0 2px 12px rgba(21,120,120,0.08);
}

.dash-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat-icon--green { background: #dcfce7; color: #16a34a; }
.dash-stat-icon--blue  { background: #dbeafe; color: #2563eb; }
.dash-stat-icon--amber { background: #fef3c7; color: #d97706; }
.dash-stat-icon--teal  { background: #e8f4f4; color: #155757; }

.dash-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.dash-stat-label {
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Section wrapper ───────────────────────────────────────────── */
.dash-section {
  background: #fff;
  border: 1px solid #e8f0f0;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.dash-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.dash-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #155757;
  margin: 0;
}

.dash-section-meta {
  font-size: 0.78rem;
  color: #999;
  font-weight: 500;
}

/* ── Continue Learning card ────────────────────────────────────── */
.dash-continue-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #f0fafa 0%, #e8f4f4 100%);
  border: 1.5px solid #b0d8d8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dash-continue-card:hover {
  border-color: #157878;
  box-shadow: 0 4px 20px rgba(21,120,120,0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.dash-continue-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #157878;
  margin-bottom: 0.75rem;
}

.dash-continue-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.dash-continue-num {
  flex-shrink: 0;
  background: #157878;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dash-continue-info {
  min-width: 0;
}

.dash-continue-title {
  font-size: 1rem;
  font-weight: 700;
  color: #155757;
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-continue-desc {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-continue-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: #157878;
}

.dash-continue-btn-label {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* All done banner */
.dash-all-done {
  text-align: center;
  padding: 2rem 1.5rem;
}

.dash-all-done-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.dash-all-done h3 {
  font-size: 1.25rem;
  color: #155757;
  margin: 0 0 0.5rem 0;
}

.dash-all-done p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1.25rem 0;
}

.dash-all-done-link {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(120deg, #155757, #157878);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.dash-all-done-link:hover { opacity: 0.88; text-decoration: none; }

/* ── Curriculum list ───────────────────────────────────────────── */
.dash-curriculum {
  display: flex;
  flex-direction: column;
}

.curr-row {
  display: flex;
  gap: 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  border-radius: 8px;
  overflow: visible;
}

.curr-row:hover {
  background: #f6fafa;
  text-decoration: none;
}

.curr-row-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 52px;
  flex-shrink: 0;
  padding-top: 0.85rem;
}

.curr-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f4f4;
  border: 2px solid #d0e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  z-index: 1;
}

.curr-circle-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: #155757;
  font-variant-numeric: tabular-nums;
}

.curr-circle-check {
  display: none;
  color: #fff;
}

.curr-circle--done {
  background: #22c55e;
  border-color: #16a34a;
}

.curr-circle--done .curr-circle-num { display: none; }
.curr-circle--done .curr-circle-check { display: block; }

.curr-connector {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: #e0ecec;
  margin: 4px 0;
}

.curr-row--done .curr-connector {
  background: #86efac;
}

.curr-row-body {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.5rem 0.85rem 0.65rem;
  border-bottom: 1px solid #f0f4f4;
}

.curr-row:last-child .curr-row-body {
  border-bottom: none;
}

.curr-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.curr-row-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}

.curr-row--done .curr-row-title {
  color: #555;
}

.curr-row-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.curr-row-duration {
  font-size: 0.72rem;
  color: #aaa;
  font-weight: 500;
}

.curr-row-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: #e8f4f4;
  color: #157878;
  white-space: nowrap;
}

.curr-row-status--done {
  background: #dcfce7;
  color: #16a34a;
}

.curr-row-desc {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 0.4rem 0;
  line-height: 1.45;
}

.curr-row-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.curr-row-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: #f0f4f4;
  color: #666;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   LESSON SIDEBAR — progress enhancements
   ═══════════════════════════════════════════════════════════════ */

/* Mini progress bar in sidebar header */
.sidebar-mini-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.sidebar-mini-bar-track {
  flex: 1;
  height: 4px;
  background: #d0e8e8;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #155757, #22c55e);
  border-radius: 10px;
  transition: width 0.5s ease;
  min-width: 0;
}

.sidebar-mini-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
}

/* Completion indicator per lesson in sidebar */
.sidebar-lesson-indicator {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e0ecec;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.sidebar-lesson-num-txt {
  font-size: 0.62rem;
  font-weight: 800;
  color: #888;
  line-height: 1;
}

.sidebar-lesson-done-icon {
  display: none;
  color: #fff;
}

.sidebar-lesson-indicator--done {
  background: #22c55e;
}

.sidebar-lesson-indicator--done .sidebar-lesson-num-txt { display: none; }
.sidebar-lesson-indicator--done .sidebar-lesson-done-icon { display: block; }

.sidebar-lesson--active .sidebar-lesson-indicator {
  background: rgba(255,255,255,0.2);
}

.sidebar-lesson--active .sidebar-lesson-num-txt { color: #fff; }

/* ── Mark as Complete button ───────────────────────────────────── */
.lesson-complete-wrap {
  margin: 2.5rem 0 0.5rem;
  padding-top: 2rem;
  border-top: 2px solid #e8f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-mark-complete {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 2px solid #d0e8e8;
  color: #155757;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-mark-complete:hover {
  background: #e8f4f4;
  border-color: #157878;
  transform: translateY(-1px);
}

.lesson-complete-done {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #16a34a;
  font-size: 0.875rem;
  font-weight: 700;
  background: #dcfce7;
  border: 2px solid #86efac;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  animation: fadeUp 0.3s ease both;
}

/* Pulse animation on next button after marking complete */
@keyframes pulseBorder {
  0%   { box-shadow: 0 0 0 0 rgba(21,120,120,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(21,120,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,120,120,0); }
}

.lesson-pager-btn--pulse {
  animation: pulseBorder 1s ease 2;
  border-color: #157878 !important;
  background: #e8f4f4 !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAYMENT SUCCESS — premium enrolled experience
   ═══════════════════════════════════════════════════════════════ */

.enroll-success-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Confetti burst — pure CSS */
.confetti-burst {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
}

.confetti-burst span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 1.2s ease-out forwards;
}

.confetti-burst span:nth-child(1)  { background: #157878; left: -80px; animation-delay: 0.05s; transform: rotate(20deg); }
.confetti-burst span:nth-child(2)  { background: #22c55e; left: -40px; animation-delay: 0.1s; transform: rotate(-15deg); }
.confetti-burst span:nth-child(3)  { background: #f59e0b; left: 0px;   animation-delay: 0s;    transform: rotate(30deg); }
.confetti-burst span:nth-child(4)  { background: #a855f7; left: 40px;  animation-delay: 0.15s; transform: rotate(-30deg); }
.confetti-burst span:nth-child(5)  { background: #ec4899; left: 80px;  animation-delay: 0.07s; transform: rotate(10deg); }
.confetti-burst span:nth-child(6)  { background: #3b82f6; left: -60px; animation-delay: 0.2s;  transform: rotate(45deg); width: 6px; height: 6px; }
.confetti-burst span:nth-child(7)  { background: #f59e0b; left: 20px;  animation-delay: 0.12s; transform: rotate(-45deg); width: 5px; height: 10px; }
.confetti-burst span:nth-child(8)  { background: #22c55e; left: 60px;  animation-delay: 0.08s; transform: rotate(60deg); }
.confetti-burst span:nth-child(9)  { background: #157878; left: -20px; animation-delay: 0.18s; transform: rotate(-60deg); width: 5px; height: 12px; }
.confetti-burst span:nth-child(10) { background: #ec4899; left: 100px; animation-delay: 0.03s; transform: rotate(15deg); }

@keyframes confettiFall {
  0%   { opacity: 1; top: 0;   }
  80%  { opacity: 1; }
  100% { opacity: 0; top: 140px; }
}

/* Enroll icon */
.enroll-icon-wrap {
  margin-bottom: 1.25rem;
}

.enroll-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(34,197,94,0.35);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.enroll-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #155757;
  margin: 0 0 0.5rem 0;
}

.enroll-sub {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 1.75rem 0;
}

/* Access status card */
.enroll-status-card {
  background: #f6fafa;
  border: 1px solid #d0e8e8;
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.enroll-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.enroll-status-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #d0e8e8;
  border-top-color: #157878;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.enroll-status-spinner--done {
  animation: none;
  background: #22c55e;
  border-color: #22c55e;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.enroll-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.enroll-status-bar-track {
  height: 5px;
  background: #d0e8e8;
  border-radius: 10px;
  overflow: hidden;
}

.enroll-status-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #157878, #22c55e);
  border-radius: 10px;
  transition: width 0.6s ease;
  width: 0%;
}

.enroll-status-bar--done {
  background: #22c55e !important;
}

/* What's included */
.enroll-includes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.enroll-include-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: #444;
  background: #fff;
  border: 1px solid #e8f0f0;
  border-radius: 9px;
  padding: 0.65rem 1rem;
}

.enroll-include-item > div:last-child {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.enroll-include-item strong { color: #1a1a1a; }
.enroll-include-item span { color: #666; font-size: 0.82rem; }

.enroll-include-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enroll-include-icon--teal   { background: #e8f4f4; color: #155757; }
.enroll-include-icon--green  { background: #dcfce7; color: #16a34a; }
.enroll-include-icon--purple { background: #f3e8ff; color: #9333ea; }

/* Steps */
.enroll-steps {
  background: #f6fafa;
  border: 1px solid #d0e8e8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.enroll-steps-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 1rem;
}

.enroll-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.enroll-step:last-child { margin-bottom: 0; }

.enroll-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d0e8e8;
  color: #888;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  transition: background 0.3s;
}

.enroll-step-num--done {
  background: #22c55e;
  color: #fff;
}

.enroll-step-body {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.55;
}

.enroll-step-body strong {
  display: block;
  color: #1a1a1a;
  margin-bottom: 0.15rem;
}

.enroll-step-body span { color: #666; }

/* CTA button */
.btn-enroll-start {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(120deg, #155757, #157878);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(21,120,120,0.25);
  margin-bottom: 1.25rem;
}

.btn-enroll-start:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.enroll-help {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0;
}

.enroll-help a { color: #157878; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 820px) {
  .lesson-wrapper {
    display: block;
  }

  .lesson-sidebar {
    position: fixed;
    top: 52px;
    left: 0;
    height: calc(100vh - 52px);
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }

  /* Overlay backdrop for mobile sidebar */
  .lesson-sidebar--open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
  }

  .lesson-sidebar--open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .lesson-main {
    padding: 1.5rem 1.25rem 5rem;
  }

  .lesson-title-main {
    font-size: 1.4rem;
  }

  .lesson-pager {
    flex-direction: column;
  }

  .lesson-pager-btn {
    max-width: 100%;
  }

  .lesson-pager-btn--next {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Nav is 56px tall at ≤768px — keep sidebar flush below it */
@media (max-width: 768px) {
  .lesson-sidebar {
    top: 56px;
    height: calc(100vh - 56px);
  }

  .lesson-wrapper {
    min-height: calc(100vh - 56px);
  }
}

@media (max-width: 500px) {
  .buy-card {
    padding: 1.5rem 1.1rem;
    margin: 1.5rem 0;
  }

  .buy-returning-section {
    margin: 0 0 1.5rem;
  }

  .buy-returning-panel {
    padding: 1rem 0.9rem 1.25rem;
  }

  .buy-price-amount {
    font-size: 1.75rem;
  }
}

/* ── Dashboard responsive ───────────────────────────────────── */

@media (max-width: 720px) {
  .dashboard-page {
    padding: 1.25rem 1rem 4rem;
  }

  .dash-hero {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .dash-hero-inner {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .dash-hero-right {
    align-self: flex-end;
  }

  .dash-progress-ring-wrap {
    width: 72px;
    height: 72px;
  }

  .dash-ring-svg {
    width: 72px;
    height: 72px;
  }

  .dash-course-title {
    font-size: 1.2rem;
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-section {
    padding: 1.1rem 1.1rem;
  }

  .dash-continue-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
  }

  .dash-continue-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .dash-continue-title,
  .dash-continue-desc {
    white-space: normal;
  }

  .dash-continue-action {
    align-self: flex-end;
  }

  .curr-row-title {
    font-size: 0.85rem;
  }

  .curr-row-right {
    gap: 0.35rem;
  }
}

@media (max-width: 480px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .dash-stat-card {
    padding: 0.75rem 0.85rem;
    gap: 0.6rem;
  }

  .dash-stat-value {
    font-size: 1.15rem;
  }

  .enroll-success-page {
    padding: 2rem 1rem 3rem;
  }

  .enroll-heading {
    font-size: 1.6rem;
  }

  .enroll-include-item > div:last-child {
    flex-direction: column;
    gap: 0.1rem;
  }

  /* Lesson main: tighter horizontal padding on small phones */
  .lesson-main {
    padding: 1.25rem 0.9rem 5rem;
  }

  .lesson-title-main {
    font-size: 1.25rem;
  }
}

.coming-soon-banner {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  color: #856404;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
