/* ========== NAVIGATION ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg); }

.nav-btn {
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-btn:hover { background: var(--accent-bright); transform: translateY(-1px); }

.nav-logout-form { margin: 0; }

.nav-btn-ghost {
  background: none;
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--fg-muted);
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nav-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ========== SHARED BUTTONS ========== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: 'Syne', sans-serif;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.25);
}

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

.btn-full { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.badge-complete {
  display: inline-block;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ========== PROGRESS BAR ========== */
.progress-bar-wrap {
  margin: 20px 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(201, 169, 110, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.auth-header { text-align: center; margin-bottom: 32px; }

.auth-glyph {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  opacity: 0.6;
}

.glyph-row { display: flex; gap: 12px; }

.gd {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: block;
}

.auth-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}

.auth-sub { color: var(--fg-muted); font-size: 0.95rem; }

.form-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field input:focus {
  border-color: rgba(201, 169, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
}

.field input::placeholder { color: var(--fg-dim); }

.auth-switch {
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.88rem;
  margin-top: 24px;
}

.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ========== COURSE OVERVIEW ========== */
.course-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
  padding: 80px 24px 64px;
}

.course-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.course-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.course-subtitle {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-dim);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.meta-item strong { color: var(--accent); }
.meta-dot { color: var(--fg-dim); }

.enroll-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.enroll-note a { color: var(--accent); text-decoration: none; }

.course-body { padding: 72px 24px; background: var(--bg); }

.course-body-inner { max-width: 720px; margin: 0 auto; }

.course-description { margin-bottom: 64px; }

.course-description h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}

.course-description p {
  color: var(--fg-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.lesson-list h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
}

.lessons-ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 110, 0.06);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.lesson-item:hover { border-color: rgba(201, 169, 110, 0.18); }

.lesson-item.is-complete { border-color: rgba(201, 169, 110, 0.15); }

.lesson-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
  padding-top: 2px;
}

.lesson-info { flex: 1; }

.lesson-title {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.lesson-desc {
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.lesson-duration { font-size: 0.78rem; color: var(--fg-dim); }

.lesson-action { align-self: center; }

.lesson-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.1);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.lesson-link:hover { background: rgba(201, 169, 110, 0.2); }

.lesson-locked { color: var(--fg-dim); font-size: 0.9rem; }

/* ========== LESSON VIEWER ========== */
.lesson-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 64px);
}

.lesson-sidebar {
  background: var(--bg-subtle);
  border-right: 1px solid rgba(201, 169, 110, 0.08);
  padding: 28px 20px;
  overflow-y: auto;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
}

.sidebar-back {
  display: block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.sidebar-back:hover { color: var(--accent); }

.sidebar-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--fg);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.sidebar-progress { font-size: 0.78rem; color: var(--fg-muted); margin-bottom: 8px; }

.sidebar-track {
  height: 3px;
  background: rgba(201, 169, 110, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.sidebar-lessons { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.sidebar-lesson a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  color: var(--fg-muted);
}

.sidebar-lesson a:hover { background: rgba(201, 169, 110, 0.06); color: var(--fg); }

.sidebar-lesson.is-active a {
  background: rgba(201, 169, 110, 0.1);
  color: var(--fg);
}

.sidebar-lesson.is-done a { color: var(--fg-muted); }

.sl-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 22px;
  padding-top: 2px;
}

.sl-title { font-size: 0.82rem; line-height: 1.4; }

.lesson-main { background: var(--bg); padding: 40px; overflow-y: auto; }

.lesson-content { max-width: 760px; }

/* Video embed */
.video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}

.video-embed { width: 100%; height: 100%; display: block; }

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 110, 0.08);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  gap: 20px;
}

.vp-dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  opacity: 0.3;
}

.vp-row { display: flex; gap: 12px; }

.vpd {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  display: block;
}

.vp-label {
  color: var(--fg-dim);
  font-size: 0.88rem;
}

.lesson-number-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.lesson-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 10px;
}

.lesson-duration-tag {
  display: inline-block;
  background: rgba(201, 169, 110, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.lesson-body-desc {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.lesson-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lesson-nav-btns { display: flex; gap: 10px; }

@media (max-width: 900px) {
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    max-height: 280px;
  }
  .lesson-main { padding: 24px; }
}

/* ========== DASHBOARD ========== */
.dashboard-page {
  min-height: calc(100vh - 64px);
  background: var(--bg);
  padding: 56px 24px;
}

.dashboard-inner { max-width: 800px; margin: 0 auto; }

.dashboard-header { margin-bottom: 40px; }

.dashboard-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 6px;
}

.dashboard-greeting { color: var(--fg-muted); font-size: 1rem; }

.dashboard-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid rgba(201, 169, 110, 0.08);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.empty-glyph {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  opacity: 0.4;
}

.dashboard-empty h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.dashboard-empty p {
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.course-cards { display: flex; flex-direction: column; gap: 20px; }

.course-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 110, 0.08);
  border-radius: var(--radius);
  padding: 32px 36px;
  transition: border-color 0.2s;
}

.course-card:hover { border-color: rgba(201, 169, 110, 0.2); }

.cc-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin: 8px 0 6px;
}

.cc-subtitle {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.cc-progress { margin-bottom: 24px; }

.cc-progress .progress-bar-wrap { margin: 8px 0 0; }

.cc-footer { display: flex; align-items: center; gap: 16px; }

/* ========== ERROR PAGES ========== */
.error-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.error-inner { max-width: 480px; }

.error-code {
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.error-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.error-inner p {
  color: var(--fg-muted);
  margin-bottom: 28px;
}

/* ========== LANDING PAGE ADDITIONS ========== */
/* Add CTA buttons and nav link to the existing hero */
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.hero-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0f;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hero-cta-btn:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.25);
}

.hero-cta-ghost {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 14px 28px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.hero-cta-ghost:hover { border-color: var(--accent); color: var(--accent); }
