/* ============================================
   Page-specific styles
   ============================================ */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--sp-16);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 204, 102, 0.3);
  border-radius: var(--r-pill);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--sp-6);
}
.hero-title {
  font-family: var(--font-ar-primary);
  font-size: clamp(2.5rem, 6.5vw, var(--fs-5xl));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, #fff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-title .stroke {
  -webkit-text-stroke: 1.5px var(--accent);
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-quote {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 50ch;
  margin-bottom: var(--sp-8);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-12);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
}

/* Pyramid scene */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.hero-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(0, 204, 102, 0.2);
  border-radius: 50%;
  animation: orbit 30s linear infinite;
}
.hero-orbit::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 18px var(--accent);
}
.hero-orbit-2 {
  inset: 12%;
  animation-duration: 22s;
  animation-direction: reverse;
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* ===== Path cards ===== */
.path-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}
.path-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-base) var(--ease-out);
}
.path-card:hover::before { transform: scaleY(1); }
.path-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.path-num {
  font-family: var(--font-en-primary);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}
.path-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.path-card .path-meta {
  display: flex;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
}

/* ===== Course cards ===== */
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg);
}
.course-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #003319 0%, #001a0d 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.course-cover svg { width: 50%; opacity: 0.6; }
.course-cover .tag {
  position: absolute;
  top: var(--sp-3);
  inset-inline-start: var(--sp-3);
  background: var(--accent);
  color: var(--color-black);
}
.course-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.course-title { font-size: var(--fs-md); font-weight: 700; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.course-meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-instructor {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

/* ===== Service / Feature cards ===== */
.feat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: all var(--dur-base) var(--ease-out);
  height: 100%;
}
.feat:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-card), rgba(0, 204, 102, 0.04));
}
.feat-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 204, 102, 0.3);
  border-radius: var(--r-md);
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.feat-icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: var(--fs-md); }
.feat p { font-size: var(--fs-sm); }

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  padding: clamp(3rem, 8vw, var(--sp-24));
  border-radius: var(--r-2xl);
  background: radial-gradient(ellipse at top, rgba(0, 204, 102, 0.18), transparent 60%), var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
  margin-bottom: var(--sp-4);
  max-width: 24ch;
  margin-inline: auto;
}
.cta-section p {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-8);
  max-width: 60ch;
  margin-inline: auto;
}

/* ===== Page header (sub-pages) ===== */
.page-header {
  position: relative;
  padding-top: 160px;
  padding-bottom: var(--sp-12);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  isolation: isolate;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, var(--fs-3xl));
  margin-bottom: var(--sp-4);
}
.page-header p { max-width: 60ch; margin-inline: auto; }
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.4; }

/* ===== Filter bar ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-8);
}
.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.filter-chip.is-active {
  background: var(--accent);
  color: var(--color-black);
  border-color: var(--accent);
}

/* ===== Instructor / Mentor card ===== */
.mentor-card {
  text-align: center;
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: all var(--dur-base) var(--ease-out);
}
.mentor-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.mentor-card .avatar { margin-inline: auto; margin-bottom: var(--sp-4); }
.mentor-card h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.mentor-card .role { font-size: var(--fs-xs); color: var(--accent); margin-bottom: var(--sp-3); }
.mentor-card .bio { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-4); }
.mentor-tags { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.mentor-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}
.mentor-rating .stars { color: #ffc857; letter-spacing: 2px; }

/* ===== Booking calendar grid ===== */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 1024px) { .booking-grid { grid-template-columns: 1.4fr 1fr; } }

.calendar-card { padding: var(--sp-6); }
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-2);
}
.calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.calendar-day:hover { border-color: var(--accent); color: var(--text-primary); }
.calendar-day.is-active {
  background: var(--accent);
  color: var(--color-black);
  border-color: var(--accent);
  font-weight: 700;
}
.calendar-day.is-disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-day.is-header {
  border: none;
  font-size: var(--fs-2xs);
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  cursor: default;
  aspect-ratio: auto;
  padding: var(--sp-2) 0;
}

.timeslots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.timeslot {
  padding: 0.625rem;
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  text-align: center;
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.timeslot:hover { border-color: var(--accent); }
.timeslot.is-active {
  background: var(--accent);
  color: var(--color-black);
  border-color: var(--accent);
  font-weight: 700;
}

/* ===== Path detail ===== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-inline-start: var(--sp-12);
}
.timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.timeline-item::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(var(--sp-12) * -1 + 16px);
  top: var(--sp-5);
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ===== Blog ===== */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-default); }
.blog-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #003319, #00CC66);
  position: relative;
}
.blog-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.blog-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.blog-card h3 { font-size: var(--fs-md); }
.blog-card p { font-size: var(--fs-sm); }
.blog-card .read-more {
  margin-top: auto;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

/* ===== Assessment ===== */
.assessment-card {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-12);
}
.assessment-progress {
  height: 6px;
  background: var(--bg-glass);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: var(--sp-8);
}
.assessment-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width 0.5s var(--ease-out);
}
.assessment-question {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
}
.assessment-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.assessment-option {
  padding: var(--sp-4);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.assessment-option:hover { border-color: var(--accent); }
.assessment-option.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.assessment-option .opt-marker {
  width: 22px; height: 22px;
  border: 2px solid var(--border-default);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.assessment-option.is-selected .opt-marker {
  border-color: var(--accent);
  background: var(--accent);
}
.assessment-option.is-selected .opt-marker::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--color-black);
  border-radius: 50%;
}
.assessment-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* ===== Auth ===== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 100px var(--gutter) var(--sp-8);
}
@media (min-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
}
.auth-side {
  display: none;
  position: relative;
  height: 100%;
  min-height: 500px;
  border-radius: var(--r-2xl);
  background: radial-gradient(ellipse at top, rgba(0, 204, 102, 0.25), transparent 70%), var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: var(--sp-12);
}
@media (max-width: 1023px) { .auth-side { display: none; } }
.auth-form-wrap {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.auth-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem;
  border: 1px solid var(--border-default);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  background: transparent;
  color: var(--text-primary);
}
.social-btn:hover { border-color: var(--accent); }

/* ===== FAQ ===== */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-5);
  font-size: var(--fs-md);
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
}
.faq-q .icon {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); background: var(--accent); color: var(--color-black); border-color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* ===== Dashboard ===== */
.dashboard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding-top: 80px;
}
@media (max-width: 768px) { .dashboard-shell { grid-template-columns: 1fr; } }
.dashboard-side {
  border-inline-end: 1px solid var(--border-subtle);
  padding: var(--sp-6) var(--sp-4);
  background: var(--bg-secondary);
}
@media (max-width: 768px) { .dashboard-side { border-inline-end: none; border-bottom: 1px solid var(--border-subtle); } }
.dashboard-main { padding: var(--sp-8); }
.dashboard-side a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dashboard-side a:hover, .dashboard-side a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.metric {
  padding: var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.metric-label { font-size: var(--fs-xs); color: var(--text-tertiary); margin-bottom: var(--sp-2); }
.metric-value { font-size: var(--fs-2xl); font-weight: 700; }

/* ===== Featured course (homepage hero card) ===== */
.featured-course {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, #001a0d 0%, #003319 50%, #00CC66 200%);
  border: 1px solid var(--accent);
  isolation: isolate;
  box-shadow: 0 0 0 1px var(--accent), 0 32px 80px rgba(0, 204, 102, 0.18);
}
.featured-course::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(0,204,102,0.45), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(30,224,130,0.25), transparent 60%);
  z-index: 0;
}
.featured-course-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding: clamp(1.5rem, 4vw, var(--sp-10));
  align-items: stretch;
}
@media (min-width: 900px) {
  .featured-course-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-10); align-items: center; }
}
.featured-course-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.9rem;
  background: var(--accent);
  color: var(--color-black);
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
  width: fit-content;
}
.featured-course h2 {
  font-family: var(--font-ar-primary);
  font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}
.featured-course .course-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  margin-block: var(--sp-6);
}
.featured-course .course-stats > div {
  text-align: center;
}
.featured-course .course-stats .num {
  font-family: var(--font-en-primary);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.featured-course .course-stats .lbl {
  font-size: var(--fs-2xs);
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Course preview / video poster */
.course-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background:
    radial-gradient(ellipse at center, rgba(0,204,102,0.2), transparent 70%),
    linear-gradient(135deg, #000 0%, #001a0d 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 204, 102, 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out);
}
.course-poster:hover { transform: scale(1.02); }
.course-poster .play-btn {
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(0, 204, 102, 0.18), 0 0 40px rgba(0, 204, 102, 0.4);
  animation: pulse-play 2s ease-in-out infinite;
  position: absolute;
  inset-inline-end: var(--sp-5);
  bottom: 96px;
  z-index: 3;
}
@keyframes pulse-play {
  0%, 100% { box-shadow: 0 0 0 8px rgba(0, 204, 102, 0.18), 0 0 40px rgba(0, 204, 102, 0.4); }
  50%      { box-shadow: 0 0 0 14px rgba(0, 204, 102, 0.0), 0 0 60px rgba(0, 204, 102, 0.6); }
}
.course-poster .play-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--color-black);
  margin-inline-start: 4px;
}
.course-poster .poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 30%, transparent 60%);
  z-index: 2;
}
.course-poster .poster-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.85);
  align-items: center;
}
.course-poster .pyramid-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.15;
}
.course-poster .pyramid-bg svg {
  width: 60%;
  height: 60%;
}
.course-poster .instructor-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 0;
  filter: grayscale(0.05) contrast(1.05);
}
.course-poster .instructor-photo + .pyramid-bg { display: none; }
.course-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.0) 40%, rgba(0,30,15,0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Instructor avatar with photo */
.avatar.has-photo { background: transparent; padding: 0; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Featured instructor strip on player */
.instructor-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.instructor-strip .avatar { width: 48px; height: 48px; flex-shrink: 0; }

/* Mentor card with photo override */
.mentor-card.with-photo .avatar { width: 120px; height: 120px; }

/* Hero portrait card (homepage) */
.hero-portrait {
  position: absolute;
  inset-inline-end: -32px;
  bottom: -32px;
  width: 200px;
  height: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 8px rgba(0,0,0,0.6);
  transform: rotate(3deg);
  background: var(--bg-card);
  z-index: 3;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-portrait .label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 24px 12px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  font-size: 11px;
  text-align: center;
  color: #fff;
}
.hero-portrait .label strong { display: block; font-size: 13px; color: var(--accent); }
@media (max-width: 768px) {
  .hero-portrait { display: none; }
}

/* ===== Course Player ===== */
.player-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding-top: 100px;
  padding-bottom: var(--sp-12);
}
@media (min-width: 1024px) {
  .player-shell { grid-template-columns: 1fr 360px; gap: var(--sp-6); }
}
.player-stage {
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--border-default);
  position: relative;
  display: grid;
  place-items: center;
}
.player-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,204,102,0.2), transparent 70%);
}
.player-stage .play-btn {
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px rgba(0, 204, 102, 0.2), 0 0 60px rgba(0, 204, 102, 0.4);
  cursor: pointer;
  position: relative;
  z-index: 2;
  animation: pulse-play 2.5s ease-in-out infinite;
}
.player-stage .play-btn svg { width: 36px; height: 36px; fill: #000; margin-inline-start: 4px; }
.player-meta {
  position: absolute;
  inset-inline-start: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player-meta h2 { font-size: var(--fs-md); margin: 0; }
.player-meta span { font-size: var(--fs-xs); color: rgba(255,255,255,0.7); }

.episode-list {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
}
.episode-list-head {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
}
.episode-list-head h3 { font-size: var(--fs-md); margin: 0; }
.episode-list-head p { font-size: var(--fs-xs); color: var(--text-tertiary); margin: 0; }
.episode-progress { height: 4px; background: var(--bg-glass); border-radius: var(--r-pill); overflow: hidden; margin-top: var(--sp-2); }
.episode-progress-fill { height: 100%; background: var(--accent); border-radius: var(--r-pill); }

.episode-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  align-items: center;
}
.episode-item:hover { background: var(--bg-glass); }
.episode-item.is-current { background: var(--accent-soft); border-inline-start: 3px solid var(--accent); }
.episode-item.is-completed .ep-num { background: var(--accent); color: #000; border: none; }
.episode-item.is-completed .ep-num::before { content: '✓'; }
.episode-item.is-completed .ep-num span { display: none; }
.ep-num {
  width: 36px;
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
  font-family: var(--font-en-secondary);
}
.episode-item.is-current .ep-num { background: var(--accent); color: #000; border-color: var(--accent); }
.ep-info { flex: 1; min-width: 0; }
.ep-info h4 {
  font-size: var(--fs-sm);
  margin: 0 0 2px 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-info .ep-time {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.ep-lock { color: var(--text-tertiary); }

/* ===== Course detail ===== */
.course-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-top: 130px;
}
@media (min-width: 1024px) { .course-hero { grid-template-columns: 2fr 1fr; gap: var(--sp-12); } }
.course-side-card {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  overflow: hidden;
  align-self: start;
}
.course-side-cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #003319, #001a0d);
  display: grid; place-items: center;
}
.course-side-body { padding: var(--sp-5); }
.curriculum-section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  background: var(--bg-card);
}
.curriculum-section summary {
  list-style: none;
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.curriculum-section summary::-webkit-details-marker { display: none; }
.curriculum-list { padding: 0 var(--sp-5) var(--sp-4); list-style: none; }
.curriculum-list li {
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}


/* ===== Legal / Policy Pages — prose styling ===== */
.legal-page { padding-block: var(--sp-12) var(--sp-20); }
.legal-prose {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--text-secondary);
}
.legal-prose h2 {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: 100px;
}
.legal-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-prose h3 {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}
.legal-prose p { margin-bottom: var(--sp-4); }
.legal-prose ul, .legal-prose ol {
  padding-inline-start: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.legal-prose li { margin-bottom: var(--sp-2); }
.legal-prose strong { color: var(--text-primary); font-weight: 600; }
.legal-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: var(--accent-hover); }
.legal-prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--r-xs);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
.legal-meta strong { color: var(--text-secondary); font-weight: 600; }
.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  font-size: var(--fs-sm);
}
.legal-toc h4 {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.legal-toc ol { list-style: none; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: var(--sp-2); }
.legal-toc a {
  display: flex;
  gap: var(--sp-2);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.legal-toc a::before {
  content: counter(toc, decimal) ".";
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.legal-toc a:hover { color: var(--accent); }
.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-12);
  align-items: start;
}
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .legal-toc { position: static; }
}

/* ============================================
   Profile Page
   ============================================ */
.profile-header {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}
.profile-cover {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
  overflow: hidden;
}
.profile-cover .aurora,
.profile-cover .noise { position: absolute; inset: 0; }

.profile-id {
  display: flex;
  gap: var(--sp-5);
  padding: 0 var(--sp-6) var(--sp-5);
  margin-top: -52px;
  position: relative;
  z-index: 2;
  align-items: flex-end;
}
.profile-avatar {
  width: 104px;
  height: 104px;
  border-radius: var(--r-2xl);
  background: var(--accent);
  color: var(--color-black);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  border: 4px solid var(--bg-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  flex-shrink: 0;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 4px;
  inset-inline-end: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--bg-card);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.profile-avatar-edit:hover {
  background: var(--accent);
  color: var(--color-black);
}
.profile-info { flex: 1; min-width: 0; padding-bottom: var(--sp-2); }
.profile-info h1 {
  font-size: var(--fs-xl);
  margin-bottom: 6px;
  color: var(--text-primary);
}
.profile-role {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-3);
}
.profile-bio {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 65ch;
  margin: 0;
}

.profile-quickstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
}
.profile-quickstats > div {
  background: var(--bg-card);
  padding: var(--sp-4);
  text-align: center;
}
.profile-quickstats strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.profile-quickstats strong small {
  font-size: 0.6em;
  color: var(--accent);
  font-weight: 600;
}
.profile-quickstats span {
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 720px) {
  .profile-id { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .profile-quickstats { grid-template-columns: repeat(2, 1fr); }
  .profile-quickstats > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
}

/* ===== Tabs ===== */
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
}
.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
  margin-bottom: -1px;
}
.profile-tab:hover { color: var(--text-primary); }
.profile-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-panel { display: none; }
.profile-panel.is-active { display: block; animation: profile-fade var(--dur-base) var(--ease-out); }
@keyframes profile-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-panel.is-active { animation: none; }
}

/* ===== Forms (profile) ===== */
.profile-form { padding: var(--sp-6); }
.profile-form-head {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}
.profile-form-head h2 {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin: 0 0 4px;
}
.profile-form-head p {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
}
.form-field-full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
}
.form-field .req { color: var(--accent); margin-inline-start: 2px; }
.form-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}
.profile-form-foot {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .profile-form-foot { flex-direction: column-reverse; }
  .profile-form-foot .btn { width: 100%; }
}

/* ===== Rows (toggle row, danger row) ===== */
.profile-row {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.profile-row:last-child { border-bottom: 0; }
.profile-row > div:first-child,
.profile-row > span:first-child { flex: 1; min-width: 0; }
.profile-row strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ===== Sessions ===== */
.profile-sessions { display: flex; flex-direction: column; }
.profile-session {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
}
.profile-session:last-child { border-bottom: 0; }
.profile-session svg { color: var(--accent); flex-shrink: 0; }
.profile-session > div { flex: 1; min-width: 0; }
.profile-session strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.profile-session span { font-size: 12px; }

/* ===== Notifications table ===== */
.profile-notif-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-5);
}
.profile-notif-table th {
  text-align: start;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
}
.profile-notif-table th:not(:first-child) { text-align: center; width: 80px; }
.profile-notif-table td {
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.profile-notif-table td:not(:first-child) { text-align: center; }
.profile-notif-table tbody tr:last-child td { border-bottom: 0; }
.profile-notif-table strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.profile-notif-table small { font-size: 12px; color: var(--text-tertiary); }
.profile-notif-table .cookie-row__toggle { margin: 0 auto; }

@media (max-width: 640px) {
  .profile-notif-table thead { display: none; }
  .profile-notif-table tr {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: var(--sp-2);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .profile-notif-table td { padding: 0; border: 0; }
  .profile-notif-table td:first-child { grid-column: 1 / -1; margin-bottom: var(--sp-2); }
}

/* ===== Chips & Plan ===== */
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.profile-chips label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.profile-chips label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.profile-chips input { accent-color: var(--accent); }

.profile-plan {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.profile-plan h3 {
  font-size: var(--fs-md);
  color: var(--text-primary);
  margin: var(--sp-2) 0 4px;
}
.profile-plan small { font-size: 12px; color: var(--text-tertiary); }

.profile-empty-mini {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4);
  background: var(--bg-glass);
  border: 1px dashed var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
}
.profile-empty-mini svg { color: var(--text-tertiary); flex-shrink: 0; }

/* ===== Danger zone ===== */
.profile-danger {
  border-color: rgba(255, 100, 100, 0.25);
}
.profile-danger .profile-form-head { border-bottom-color: rgba(255, 100, 100, 0.18); }
.btn-danger {
  --btn-bg: rgba(255, 80, 80, 0.1);
  --btn-color: #ff6b6b;
  --btn-border: rgba(255, 80, 80, 0.4);
}
.btn-danger:hover {
  --btn-bg: #ff5252;
  --btn-color: #fff;
  --btn-border: #ff5252;
}

/* ============================================
   Article Page (blog-*.html)
   ============================================ */
.article-page { padding-bottom: var(--sp-20); }

.article-hero {
  position: relative;
  padding-block: var(--sp-12) var(--sp-10);
  overflow: hidden;
}
.article-hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}
.article-lede {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 65ch;
  margin-bottom: var(--sp-6);
}
.article-byline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.article-byline > div {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
}
.article-byline strong { color: var(--text-primary); font-weight: 600; }
.article-byline span { color: var(--text-tertiary); font-size: 13px; }
.article-share { margin-inline-start: auto; }

.article-cover {
  height: clamp(180px, 28vw, 320px);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-12);
}

.article-body { font-size: var(--fs-base); }
.article-body p:first-of-type::first-letter {
  /* subtle drop-cap for the lede paragraph */
  font-size: 1.05em;
}

.article-author-bio {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.article-author-bio strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--fs-md);
  margin-bottom: 4px;
}
.article-author-bio small {
  display: block;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

@media (max-width: 720px) {
  .article-share { margin-inline-start: 0; width: 100%; }
}

/* ============================================
   Consultant Application Form
   ============================================ */
.consultant-app {
  position: relative;
}

/* Stepper */
.stepper {
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
}
.stepper-track {
  position: relative;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-5);
  overflow: hidden;
}
.stepper-progress {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--color-green-light));
  border-radius: var(--r-pill);
  transition: width var(--dur-base) var(--ease-out);
}
.stepper-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--sp-2);
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  user-select: none;
}
.stepper-step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  color: var(--text-tertiary);
  font-weight: 700;
  font-size: var(--fs-sm);
  display: grid;
  place-items: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.stepper-step small {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  line-height: 1.4;
}
.stepper-step.is-active span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-black);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.stepper-step.is-active small { color: var(--text-primary); }
.stepper-step.is-done span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.stepper-step.is-done span::before {
  content: '✓';
}
.stepper-step.is-done span > * { display: none; }

@media (max-width: 720px) {
  .stepper-steps small { display: none; }
}

/* Form steps */
.consultant-form { padding: var(--sp-6) var(--sp-6) var(--sp-5); border: 0; }
.consultant-step { border: 0; padding: 0; margin: 0; }
.consultant-step.is-active { animation: profile-fade var(--dur-base) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .consultant-step.is-active { animation: none; }
}

.consultant-form-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  margin: var(--sp-5) calc(var(--sp-6) * -1) calc(var(--sp-5) * -1);
}
.step-indicator-text {
  margin-inline: auto;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* Track radio cards */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.track-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.track-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.track-card input { accent-color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.track-card:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.track-card.is-invalid {
  border-color: rgba(255, 100, 100, 0.5);
  background: rgba(255, 100, 100, 0.05);
}
.track-card strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.track-card small {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Upload zone (placeholder) */
.upload-zone {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-glass);
  border: 1.5px dashed var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-tertiary);
}
.upload-zone svg { color: var(--accent); flex-shrink: 0; }
.upload-zone > div { flex: 1; min-width: 0; }
.upload-zone strong {
  display: block;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.upload-zone small { font-size: 12px; color: var(--text-tertiary); }

/* Invalid state */
.input.is-invalid,
.select.is-invalid,
.textarea.is-invalid {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* Review */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.review-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.review-section h3 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.review-section dl { margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.review-row { display: flex; flex-direction: column; gap: 4px; }
.review-row dt {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.review-row dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-line;
}
@media (max-width: 720px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* Success state */
.consultant-success {
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
}
.consultant-success__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  animation: pulse-glow 2.4s var(--ease-in-out) infinite;
}
.consultant-success h2 {
  font-size: var(--fs-2xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}
.consultant-success p {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}
.consultant-success code {
  font-family: ui-monospace, monospace;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  padding: 4px 12px;
  border-radius: var(--r-sm);
  color: var(--accent);
  font-size: var(--fs-base);
  font-weight: 700;
}

/* ============================================
   About — Story section (with portrait)
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-8);
  align-items: start;
  max-width: 100%;
}

/* Portrait card — fixed width, sticky on desktop */
.story-portrait {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  width: 220px;
  max-width: 220px;
}
.story-portrait img {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
              0 0 0 6px var(--accent-soft);
  background: var(--bg-elevated);
  display: block;
}
.story-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 0 var(--sp-2);
  margin-top: var(--sp-2);
}
.story-portrait figcaption strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.story-portrait figcaption span {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.6;
}

/* Prose column */
.story-prose {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  min-width: 0; /* prevents grid overflow */
}
.story-prose p { margin: 0; }
.story-prose blockquote {
  margin: var(--sp-2) 0;
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.85;
}

/* Tablet — keep two columns but smaller portrait */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 160px 1fr;
    gap: var(--sp-5);
  }
  .story-portrait { width: 160px; max-width: 160px; }
  .story-portrait img { width: 140px; height: 140px; }
}

/* Mobile — stack vertically */
@media (max-width: 600px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .story-portrait {
    position: static;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
  }
  .story-portrait img {
    width: 80px;
    height: 80px;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                0 0 0 3px var(--accent-soft);
  }
  .story-portrait figcaption {
    text-align: start;
    margin-top: 0;
    padding: 0;
  }
}
