/* Benefits Unlocked — vibrant course styling */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5c5c7a;
  --accent: #6366f1;
  --accent-light: #eef2ff;
  --accent-dark: #4338ca;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --success: #10b981;
  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --disclaimer-bg: #fef2f2;
  --disclaimer-border: #ef4444;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(26, 26, 46, 0.08);
  --shadow-hover: 0 16px 48px rgba(99, 102, 241, 0.15);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font);
  --max-width: 720px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.page-home {
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 40%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  height: var(--nav-height);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 1.25rem 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.25), transparent),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.12), transparent),
    radial-gradient(circle at 10% 60%, rgba(59, 130, 246, 0.1), transparent);
  animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.12);
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #1a1a2e 30%, var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 44ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.12);
  min-width: 100px;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.875rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: var(--accent);
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 { margin-top: 0; font-size: 1.125rem; }
.feature-card p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

.feature-card-1 { border-top: 3px solid #6366f1; }
.feature-card-2 { border-top: 3px solid #a855f7; }
.feature-card-3 { border-top: 3px solid #10b981; }

/* Home preview */
.home-preview { margin: 4rem 0 2rem; }

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.preview-item {
  background: linear-gradient(145deg, var(--surface), var(--accent-light));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.preview-item:hover { transform: scale(1.03); }

.preview-item > span:not(.preview-cta) {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.preview-item p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  width: 100%;
  overflow-wrap: break-word;
}

/* Course page */
.course-hero {
  background: linear-gradient(135deg, var(--accent-light), #faf5ff);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.course-hero h1 { margin-bottom: 0.5rem; }
.course-hero p { margin: 0; color: var(--text-muted); }

.progress-bar-wrap {
  background: rgba(26, 26, 46, 0.06);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar-wrap-lg { height: 10px; margin-bottom: 1.5rem; }

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.sidebar-progress {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Module cards */
.module-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.module-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(99, 102, 241, 0.06);
  transition: all 0.2s;
}

.module-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

.module-num {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent-light), #ede9fe);
  color: var(--accent-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
}

.module-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.module-card h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.module-card p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

.module-card.done .module-num {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: var(--success);
}

/* Lesson content */
.lesson-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.lesson-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.lesson-header h1 { margin-bottom: 0.5rem; }
.lesson-header .subtitle { color: var(--text-muted); margin: 0; }

.content ul, .content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.content li { margin-bottom: 0.4rem; }

.disclaimer {
  background: var(--disclaimer-bg);
  border: 1px solid var(--disclaimer-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #7f1d1d;
}

.disclaimer strong { display: block; margin-bottom: 0.35rem; color: #991b1b; }

.sources {
  background: var(--surface);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
}

.sources h3 { margin-top: 0; font-size: 1rem; }
.sources ul { margin-bottom: 0; }

/* Video lessons */
.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.video-lesson {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.video-lesson h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-lesson .video-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.course-video {
  width: 100%;
  border-radius: 12px;
  background: #0f0f1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(99, 102, 241, 0.15);
}

.video-section {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-section h3 { margin-top: 0; font-size: 1rem; }
.video-section p { font-size: 0.875rem; color: var(--text-muted); }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 0.75rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-embed {
  background: #0a0a2e;
}

.youtube-embed__trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.youtube-embed__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-embed__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  background: rgba(229, 37, 37, 0.92);
  border: 3px solid #ffd700;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.youtube-embed--active .youtube-embed__trigger {
  display: none;
}

.youtube-embed-fallback {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.youtube-embed-fallback a {
  color: var(--accent-dark);
}

.written-supplement {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.5), transparent);
  border-radius: var(--radius);
  border: 1px dashed rgba(99, 102, 241, 0.25);
}

.written-supplement h2 {
  font-size: 1rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.takeaway-list li { margin-bottom: 0.6rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist li {
  padding: 0.75rem 0 0.75rem 2.25rem;
  position: relative;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  transition: background 0.15s;
}

.checklist li:hover { background: rgba(99, 102, 241, 0.04); }

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Nav */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.lesson-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.lesson-nav .prev { color: var(--text-muted); }
.lesson-nav .next {
  color: white;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.lesson-nav .next:hover { color: white; transform: translateY(-1px); }

.mark-complete {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mark-complete:hover { background: #ddd6fe; }
.mark-complete.completed {
  background: #d1fae5;
  border-color: var(--success);
  border-style: solid;
  color: #065f46;
}

.site-footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  background: var(--surface);
}

.site-footer a { color: var(--text-muted); }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 1.25rem 4rem; }
  .module-card { grid-template-columns: auto 1fr; }
  .module-emoji { display: none; }
  .hero-stats { gap: 1rem; }
}

/* Deliverables in modules */
.deliverables {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: var(--radius);
  color: #e0e7ff;
}

.deliverables h2 {
  color: #fff;
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deliverables-lead {
  color: #c7d2fe;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.download-card-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: background 0.2s, transform 0.2s;
}

.download-card-inline:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
  color: #fff;
}

.download-card-featured-inline {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.deliverables-more {
  font-size: 0.8125rem;
  color: #a5b4fc;
  margin: 0.75rem 0 0;
}

.deliverables-more a { color: #fde68a; }

/* Resource library */
.resource-section { margin: 2.5rem 0; }

.resource-heading {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.resource-intro {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.download-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.download-grid > .resource-item:has(.download-card-featured) {
  grid-column: 1 / -1;
}

/* Interactive tools — equal featured cards side by side */
#interactive-tools .download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

#interactive-tools .download-grid > .resource-item:has(.download-card-featured) {
  grid-column: auto;
  display: flex;
}

#interactive-tools .download-card-featured {
  flex: 1;
  height: 100%;
}

@media (max-width: 640px) {
  #interactive-tools .download-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.2s;
}

.download-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.download-card-featured {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  min-height: 10.5rem;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  overflow: hidden;
}

.download-card-featured .download-btn {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.25rem;
  border-radius: 0;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: transparent;
  pointer-events: none;
}

.download-card-featured .download-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  pointer-events: none;
}

.download-card-featured .download-card-content {
  flex: 1;
  min-width: 0;
}

.download-card-featured .download-card-content strong {
  font-size: 1.35rem;
  line-height: 1.3;
}

.download-card-featured .download-card-content p {
  font-size: 0.9375rem;
}

.download-icon { font-size: 1.75rem; }

.download-card strong { display: block; font-size: 1rem; }
.download-card p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

.download-btn {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  align-self: flex-start;
}

.official-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.official-links li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* Preview links on home */
.preview-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.preview-cta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.5rem;
  width: 100%;
  overflow-wrap: break-word;
}

.preview-link:hover .preview-cta { color: var(--accent-dark); }

/* Completion page */
.page-complete {
  background: linear-gradient(180deg, #1e1b4b 0%, var(--bg) 45%);
}

.complete-main { text-align: center; padding-top: 3rem; }

.complete-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e1b4b;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.complete-main h1 {
  color: #1e1b4b;
  max-width: 20ch;
  margin: 0 auto 1rem;
}

.complete-lead {
  max-width: 48ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.complete-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.certificate-section {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cert-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.cert-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.08);
}

.cert-input:focus {
  outline: none;
  border-color: var(--accent);
}

.cert-input[aria-invalid="true"] { border-color: #ef4444; }

.certificate-preview { display: none; }

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #fbbf24 2px, transparent 2px),
    radial-gradient(circle, #6366f1 2px, transparent 2px),
    radial-gradient(circle, #a855f7 2px, transparent 2px);
  background-size: 80px 80px, 120px 120px, 100px 100px;
  background-position: 0 0, 40px 40px, 20px 60px;
  opacity: 0.15;
  animation: confettiDrift 20s linear infinite;
}

@keyframes confettiDrift {
  from { background-position: 0 0, 40px 40px, 20px 60px; }
  to { background-position: 0 200px, 40px 240px, 20px 260px; }
}

/* Video transcripts — below player, always visible */
.video-transcript-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--accent-light, #eef2ff);
  border: 2px solid var(--accent, #6366f1);
  border-radius: 8px;
  color: var(--accent-dark, #4338ca);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.video-transcript-link:hover {
  background: #e0e7ff;
  color: var(--accent-dark, #4338ca);
  transform: translateY(-1px);
}

.video-transcript-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* legacy — inside-video links (should not occur) */
.video-transcript {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.video-transcript a {
  color: var(--accent-dark);
  font-weight: 600;
}

.transcript-page .transcript-body {
  margin-top: 1.5rem;
}

.transcript-scene {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(99, 102, 241, 0.25);
}

.transcript-scene:last-child {
  border-bottom: none;
}

.transcript-scene h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.transcript-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Quizzes & final test */
.module-quiz-wrap {
  margin: 2.5rem 0;
}

.quiz-block {
  padding: 1.5rem;
  background: var(--surface);
  border: 3px solid var(--pixel-border, #0a0a2e);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
}

.quiz-title {
  font-family: var(--font-pixel, monospace);
  font-size: 0.65rem;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.quiz-subtitle,
.quiz-stats {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.quiz-question {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.quiz-question legend {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  padding: 0;
}

.quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0;
  padding: 0.5rem 0.65rem;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}

.quiz-choice:hover {
  background: var(--accent-light, #eef2ff);
}

.quiz-choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.quiz-actions {
  margin-top: 1rem;
}

.quiz-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 2px solid var(--pixel-border, #0a0a2e);
}

.quiz-result--pass {
  background: #ecfdf5;
  border-color: #10b981;
}

.quiz-result--fail {
  background: #fffbeb;
  border-color: #f59e0b;
}

.quiz-score {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.quiz-message {
  margin: 0 0 1rem;
}

.quiz-review {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.quiz-review ul {
  padding-left: 1.25rem;
}

.quiz-review li {
  margin-bottom: 0.75rem;
}

.quiz-review li.correct {
  color: #047857;
}

.quiz-review li.incorrect {
  color: #b45309;
}

.quiz-gate {
  padding: 1.5rem;
  background: var(--warning-bg, #fffbeb);
  border: 2px solid var(--warning-border, #f59e0b);
  margin-bottom: 1.5rem;
}

.quiz-already-passed {
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 2px solid #10b981;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

