/* pd.css — Styles for /pd landing, /pd/course, /pd/module/:num, /verify/:code */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy:    #0b1628;
  --navy-2:  #0f1f38;
  --sky:     #0ea5e9;
  --sky-dk:  #0284c7;
  --teal:    #14b8a6;
  --purple:  #7c3aed;
  --gold:    #f59e0b;
  --white:   #ffffff;
  --slate:   #334155;
  --muted:   #64748b;
  --light:   #94a3b8;
  --border:  #1e3050;
  --green:   #22c55e;
  --red:     #ef4444;
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */

body { margin: 0; font-family: 'Inter', system-ui, sans-serif; }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: rgba(14,165,233,0.12);
  color: var(--sky);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
}

/* ── Nav (shared) ─────────────────────────────────────────────────────────── */

.pd-nav,
.pd-course-nav {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pd-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.pd-nav-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.pd-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pd-nav-link {
  font-size: 14px;
  color: var(--light);
  text-decoration: none;
}
.pd-nav-link:hover { color: var(--white); text-decoration: none; }

.pd-nav-user {
  font-size: 13px;
  color: var(--light);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-nav-cta {
  background: var(--sky);
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
}
.pd-nav-cta:hover { background: var(--sky-dk); }

.pd-nav-signout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--light);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.pd-nav-signout:hover { border-color: var(--sky); color: var(--white); }

/* ── Landing page ─────────────────────────────────────────────────────────── */

.pd-landing-body { background: var(--navy); color: var(--white); min-height: 100vh; }

.pd-section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.pd-hero {
  background: linear-gradient(160deg, #0b1628 0%, #0f2040 50%, #1a0a3e 100%);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pd-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px; right: -100px; bottom: -100px;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.pd-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.pd-hero-badge {
  display: inline-block;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.3);
  color: var(--sky);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.pd-hero-headline {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--white);
}

.pd-hero-sub {
  font-size: 17px;
  color: var(--light);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.pd-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pd-hero-proof {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.pd-proof-item {
  font-size: 13px;
  color: var(--muted);
}

/* Buttons */
.pd-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--sky) 0%, var(--purple) 100%);
  color: var(--white) !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r-md);
  text-decoration: none !important;
  transition: opacity 0.15s;
}
.pd-btn-primary:hover { opacity: 0.9; }

.pd-btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--light) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--r-md);
  text-decoration: none !important;
  transition: border-color 0.15s;
}
.pd-btn-ghost:hover { border-color: var(--sky); color: var(--white) !important; }

.pd-btn-ghost-sm {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--light) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
}
.pd-btn-ghost-sm:hover { border-color: var(--sky); color: var(--white) !important; }

.pd-btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #1a1a1a !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--r-md);
  text-decoration: none !important;
}

.pd-btn-teal {
  display: inline-block;
  background: var(--teal);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r-md);
  text-decoration: none !important;
}

/* Overview section */
.pd-overview {
  padding: 80px 24px;
  background: #080f1e;
}

.pd-section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 8px;
}

.pd-section-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 40px;
}

.pd-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pd-module-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.15s;
}
.pd-module-card:hover { border-color: var(--sky); }

.pd-module-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pd-module-icon { font-size: 28px; margin-bottom: 8px; }

.pd-module-duration {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}

.pd-module-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.3;
}

.pd-module-desc {
  font-size: 13px;
  color: var(--light);
  line-height: 1.6;
  margin: 0;
}

/* Certificate preview section */
.pd-cert-preview {
  padding: 80px 24px;
  background: var(--navy);
}

.pd-cert-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 760px) {
  .pd-cert-layout { grid-template-columns: 1fr; }
}

.pd-cert-headline { margin-bottom: 20px; }

.pd-cert-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.pd-cert-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--light);
  line-height: 1.5;
}
.pd-cert-list li:last-child { border-bottom: none; }
.pd-cert-list strong { color: var(--white); }

.pd-cert-cta-wrap { margin-top: 24px; }

/* Certificate mock card */
.pd-cert-mock {
  display: flex;
  justify-content: center;
}

.pd-cert-card {
  background: var(--navy-2);
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: 340px;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 4px rgba(245,158,11,0.1);
}

.pd-cert-card-header {
  background: linear-gradient(135deg, var(--sky) 0%, var(--purple) 100%);
  padding: 16px 20px;
  text-align: center;
}

.pd-cert-card-brand {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
}

.pd-cert-card-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

.pd-cert-card-body {
  padding: 20px;
  text-align: center;
}

.pd-cert-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.pd-cert-card-certifies {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pd-cert-card-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  font-style: italic;
}

.pd-cert-card-completed {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pd-cert-card-course {
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 14px;
  line-height: 1.4;
}

.pd-cert-card-hours {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.pd-cert-card-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  letter-spacing: 0.05em;
}

/* Testimonials */
.pd-social-proof {
  padding: 80px 24px;
  background: #080f1e;
}

.pd-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.pd-testimonial {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.pd-t-quote {
  font-size: 14px;
  color: var(--light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 14px;
}

.pd-t-attr {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Coming soon */
.pd-coming-soon {
  padding: 60px 24px 80px;
  background: var(--navy);
}

.pd-coming-card {
  background: linear-gradient(135deg, #0f1f38 0%, #1a1040 100%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pd-coming-badge {
  display: inline-block;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  color: #a78bfa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.pd-coming-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 12px;
}

.pd-coming-desc {
  font-size: 14px;
  color: var(--light);
  line-height: 1.65;
  margin: 0 0 24px;
}

.pd-coming-features {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pd-coming-features span {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.pd-footer {
  background: #060e1a;
  border-top: 1px solid var(--border);
  padding: 24px;
}

.pd-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.pd-footer-inner a { color: var(--muted); }
.pd-footer-inner a:hover { color: var(--sky); }

.pd-footer-sep { color: var(--border); }

/* ── Course page ──────────────────────────────────────────────────────────── */

.pd-course-body { background: var(--navy); color: var(--white); min-height: 100vh; }

.pd-course-main { padding: 40px 24px 80px; }

.pd-course-container {
  max-width: 760px;
  margin: 0 auto;
}

.pd-course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.pd-course-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pd-course-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pd-course-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}

.pd-course-progress-ring {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--navy-2);
  border: 2px solid var(--sky);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pd-ring-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}

.pd-ring-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Certificate earned banner */
.pd-cert-earned {
  background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(20,184,166,0.1) 100%);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-cert-earned-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-cert-earned-icon { font-size: 28px; }

.pd-cert-earned-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.pd-cert-earned-sub {
  font-size: 13px;
  color: var(--light);
  margin-top: 2px;
}

.pd-cert-earned-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Modules list */
.pd-modules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.pd-module-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--navy-2);
  transition: background 0.1s;
}
.pd-module-row:last-child { border-bottom: none; }
.pd-module-row:hover { background: #0f2040; }

.pd-module-row.pd-module-done { background: rgba(20,184,166,0.06); }
.pd-module-row.pd-module-locked { opacity: 0.5; }

.pd-module-row-status { flex-shrink: 0; }

.pd-status-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.pd-status-done { background: rgba(20,184,166,0.15); color: var(--teal); border: 2px solid var(--teal); }
.pd-status-locked { background: rgba(100,116,139,0.1); color: var(--muted); border: 2px solid var(--border); }
.pd-status-open { background: rgba(14,165,233,0.1); color: var(--sky); border: 2px solid var(--sky); }

.pd-module-row-info { flex: 1; min-width: 0; }

.pd-module-row-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.pd-module-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.pd-module-row-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}

.pd-score-chip {
  background: rgba(20,184,166,0.15);
  color: var(--teal);
  border-radius: 100px;
  padding: 2px 8px;
  font-weight: 600;
}

.pd-done-date { color: var(--muted); }

.pd-module-row-action { flex-shrink: 0; }

.pd-btn-start,
.pd-btn-review {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  transition: opacity 0.15s;
}

.pd-btn-start {
  background: var(--sky);
  color: var(--white) !important;
}
.pd-btn-start:hover { opacity: 0.85; }

.pd-btn-review {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--light) !important;
}
.pd-btn-review:hover { border-color: var(--sky); color: var(--white) !important; }

.pd-locked-hint {
  font-size: 12px;
  color: var(--muted);
}

/* Progress bar */
.pd-progress-bar-wrap { margin-bottom: 20px; }

.pd-progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.pd-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.pd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky) 0%, var(--teal) 100%);
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* Advanced teaser */
.pd-advanced-teaser {
  background: var(--navy-2);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-advanced-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.pd-advanced-text {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  flex: 1;
}

.pd-advanced-text strong {
  font-size: 14px;
  color: var(--white);
}

.pd-advanced-text span {
  font-size: 13px;
  color: var(--muted);
}

/* ── Module page ──────────────────────────────────────────────────────────── */

.pd-module-main { padding: 40px 24px 80px; }

.pd-module-container {
  max-width: 760px;
  margin: 0 auto;
}

.pd-module-header { margin-bottom: 32px; }

.pd-module-header-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pd-module-header-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.pd-module-completed-banner {
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.3);
  color: var(--teal);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}

/* Module content prose */
.pd-module-content {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 36px;
  color: var(--light);
  line-height: 1.7;
  font-size: 15px;
}

.pd-module-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 28px 0 10px;
}
.pd-module-content h3:first-child { margin-top: 0; }

.pd-module-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sky);
  margin: 20px 0 8px;
}

.pd-module-content p { margin: 0 0 16px; }

.pd-module-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.pd-module-content li {
  margin-bottom: 8px;
  color: var(--light);
}

.pd-module-content a { color: var(--sky); }

.pd-play-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
  color: var(--white) !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--r-md);
  text-decoration: none !important;
  margin-top: 4px;
}

/* Quiz section */
.pd-quiz-section {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 28px;
}

.pd-quiz-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-quiz-pass-req {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.pd-quiz-done-note {
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.2);
  color: var(--teal);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
}

.pd-quiz-done-note a { color: var(--sky); }

/* Questions */
.pd-question {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pd-question:last-of-type { border-bottom: none; }

.pd-question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.5;
}

.pd-question-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0a1830;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.1s;
}
.pd-option:hover { border-color: var(--sky); }
.pd-option input { accent-color: var(--sky); flex-shrink: 0; }
.pd-option-text { font-size: 14px; color: var(--light); }

.pd-option.pd-option-correct {
  border-color: var(--teal);
  background: rgba(20,184,166,0.08);
}
.pd-option.pd-option-correct .pd-option-text { color: var(--teal); }

.pd-question.pd-q-correct .pd-question-text { color: var(--teal); }
.pd-question.pd-q-wrong .pd-question-text { color: #fca5a5; }

.pd-question-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.5;
}

.pd-fb-correct {
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  color: var(--teal);
}

.pd-fb-wrong {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}

/* Reflection */
.pd-reflection-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pd-reflection-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}

.pd-reflection-prompt {
  font-size: 14px;
  color: var(--light);
  line-height: 1.65;
  margin: 0 0 14px;
  font-style: italic;
}

.pd-reflection-textarea {
  width: 100%;
  background: #0a1830;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 16px;
  resize: vertical;
  font-family: inherit;
}
.pd-reflection-textarea:focus { outline: none; border-color: var(--sky); }

.pd-reflection-counter {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}

/* Quiz submit */
.pd-quiz-actions { margin-top: 20px; }

.pd-quiz-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 14px;
}

.pd-quiz-result { margin-bottom: 14px; }

.pd-result-pass {
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.25);
  color: var(--teal);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.6;
}
.pd-result-pass a { color: var(--sky); font-weight: 600; }

.pd-result-fail {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
}

.pd-btn-submit-quiz {
  background: linear-gradient(135deg, var(--sky) 0%, var(--purple) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  padding: 13px 28px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: opacity 0.15s;
}
.pd-btn-submit-quiz:hover { opacity: 0.9; }
.pd-btn-submit-quiz:disabled { opacity: 0.5; cursor: not-allowed; }

.pd-mission-note {
  font-size: 14px;
  color: var(--light);
  line-height: 1.65;
  margin: 0 0 20px;
}

/* Module nav */
.pd-module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

/* ── Verification page ─────────────────────────────────────────────────────── */

.pd-verify-body { background: var(--navy); color: var(--white); min-height: 100vh; }

.pd-verify-main { padding: 60px 24px 80px; }

.pd-verify-container {
  max-width: 640px;
  margin: 0 auto;
}

.pd-verify-valid,
.pd-verify-invalid {
  text-align: center;
  margin-bottom: 48px;
}

.pd-verify-icon { font-size: 56px; margin-bottom: 16px; }

.pd-verify-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.pd-verify-status-valid {
  background: rgba(20,184,166,0.15);
  border: 1px solid rgba(20,184,166,0.3);
  color: var(--teal);
}

.pd-verify-status-invalid {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}

.pd-verify-headline {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.pd-verify-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  margin-bottom: 28px;
}

.pd-verify-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  align-items: start;
}
.pd-verify-row:last-child { border-bottom: none; }

.pd-verify-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.pd-verify-value {
  font-size: 14px;
  color: var(--light);
  line-height: 1.5;
}

.pd-verify-name { font-size: 17px; font-weight: 700; color: var(--white); }

.pd-verify-code {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pd-verify-note {
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.pd-verify-note p { margin: 0 0 10px; }
.pd-verify-note p:last-child { margin: 0; }
.pd-verify-note a { color: var(--sky); }

.pd-verify-invalid-msg {
  font-size: 16px;
  color: var(--light);
  margin-bottom: 12px;
}

.pd-verify-invalid-hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.pd-verify-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.pd-verify-input {
  flex: 1;
  min-width: 280px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 14px;
  padding: 11px 14px;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
}
.pd-verify-input:focus { outline: none; border-color: var(--sky); }

.pd-verify-about {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.pd-verify-about h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
}

.pd-verify-about p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 12px;
}

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

@media (max-width: 600px) {
  .pd-hero { padding: 60px 20px 70px; }
  .pd-course-header { flex-direction: column; }
  .pd-module-row { flex-wrap: wrap; gap: 12px; }
  .pd-module-row-action { width: 100%; }
  .pd-verify-row { grid-template-columns: 1fr; }
  .pd-verify-label { padding-top: 0; }
  .pd-cert-earned { flex-direction: column; }
}
