/* ============================================================
   SSO Academy — Core Stylesheet
   Inherits MoE design system + extensions for multi-course,
   public catalog, tools, lead magnets, reviews.
   ============================================================ */

:root {
  --b1: #0c3455;
  --b2: #238c92;
  --b3: #3ec2cf;
  --g1: #00a14f;
  --g2: #8cc747;
  --g3: #d5d839;
  --gr: #363436;
  --lt: #f7f9fb;
  --vs: #e85d3a;
  --warn: #f39c12;
  --myth: #7b1fa2;
  --shadow: rgba(12,52,85,0.08);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background: #eef2f6;
  color: var(--gr);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
}

a { color: var(--b2); text-decoration: none; }
a:hover { color: var(--b1); }

/* ===== APP SHELL (logged-in) ===== */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--b1) 0%, #0a2a44 100%);
  color: #fff;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo h2 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.sidebar-logo .subtitle {
  font-size: 0.68rem;
  color: var(--b3);
  font-weight: 600;
  margin-top: 2px;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  padding: 16px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: rgba(62,194,207,0.1); color: var(--b3); border-left-color: var(--b3); }

.nav-item .nav-icon { width: 20px; margin-right: 10px; text-align: center; font-size: 0.9rem; }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
}
.sidebar-user .user-name { font-weight: 700; color: #fff; }
.sidebar-user .user-company { color: rgba(255,255,255,0.5); margin-top: 2px; }
.sidebar-user a { color: var(--b3); font-weight: 600; margin-top: 6px; display: inline-block; font-size: 0.7rem; }

.main-content { margin-left: 260px; flex: 1; min-height: 100vh; }

/* ===== TOP BAR ===== */

.top-bar {
  background: #fff;
  padding: 16px 32px;
  border-bottom: 1px solid #e4e9ee;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.top-bar h1 { font-size: 1.1rem; font-weight: 800; color: var(--b1); }

.breadcrumb { font-size: 0.72rem; color: #8899aa; font-weight: 600; }
.breadcrumb a { color: var(--b2); }
.breadcrumb .sep { margin: 0 6px; color: #ccd; }

/* ===== CONTENT AREA ===== */

.content-area { padding: 28px 32px 48px; max-width: 1100px; }

/* ===== HERO BANNER ===== */

.hero-banner {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 60%, var(--b3) 100%);
  color: #fff;
  padding: 40px 36px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.hero-banner h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.hero-banner p { font-size: 0.88rem; opacity: 0.85; max-width: 600px; line-height: 1.6; }

/* ===== CARDS ===== */

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h3 { font-size: 0.92rem; font-weight: 800; color: var(--b1); }
.progress-pct { font-size: 0.78rem; font-weight: 700; color: var(--g1); }

/* ===== COURSE CARDS (used in dashboard + catalog) ===== */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.course-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.course-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(12,52,85,0.12); }

.course-card-header { padding: 24px 22px; color: #fff; }
.course-card-meta {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  opacity: 0.85; margin-bottom: 8px;
}
.course-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }

.course-card-body { padding: 16px 22px; }
.course-card-subtitle { font-size: 0.78rem; color: #667; margin-bottom: 10px; }
.course-card-cta { font-size: 0.78rem; color: var(--b2); font-weight: 700; }

/* ===== RESUME CARD ===== */

.resume-card {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 100%);
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.resume-meta {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  opacity: 0.7; margin-bottom: 8px;
}
.resume-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.resume-context { font-size: 0.82rem; opacity: 0.85; margin-bottom: 16px; }

/* ===== EMPTY STATE ===== */

.empty-state {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
}
.empty-state h2 { font-size: 1.1rem; color: var(--b1); margin-bottom: 8px; }
.empty-state p { color: #889; margin-bottom: 20px; }

/* ===== PROGRESS BAR ===== */

.progress-bar { background: #eef2f6; border-radius: 20px; height: 8px; overflow: hidden; position: relative; }
.progress-bar .fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--g1), var(--g2)); transition: width 0.4s ease; }
.progress-label { font-size: 0.68rem; font-weight: 700; color: #8899aa; margin-top: 4px; }

/* ===== WEEK / LESSON ITEM (course-home and module pages) ===== */

.week-list { margin-bottom: 8px; }
.week-item {
  display: flex; align-items: center;
  background: var(--lt);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 6px;
  transition: all 0.15s;
}
.week-item:hover { background: #eef3f6; }
.week-item .week-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem;
  color: var(--b1);
  margin-right: 14px; flex-shrink: 0;
  border: 2px solid #dde5ec;
}
.week-item .week-num.complete { background: var(--g1); color: #fff; border-color: var(--g1); }
.week-item .week-title { flex: 1; font-weight: 600; font-size: 0.82rem; }
.week-item .week-title a { color: var(--gr); }
.week-item .week-title a:hover { color: var(--b2); }

.status-badge { font-size: 0.65rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.complete { background: rgba(0,161,79,0.1); color: var(--g1); }

/* ===== ACCENT BOXES ===== */

.accent-box { border-radius: 8px; padding: 18px 22px; margin-bottom: 16px; border-left: 5px solid; }
.accent-box .accent-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.accent-box p { font-size: 0.82rem; line-height: 1.6; }

.accent-box.biz-now { background: #fff8e1; border-color: #f57c00; }
.accent-box.biz-now .accent-label { color: #f57c00; }
.accent-box.founder-trap { background: #fff3e0; border-color: #d32f2f; }
.accent-box.founder-trap .accent-label { color: #d32f2f; }
.accent-box.myth-buster { background: #ede7f6; border-color: var(--myth); }
.accent-box.myth-buster .accent-label { color: var(--myth); }
.accent-box.strategist-qs { background: #e3f2fd; border-color: #1565c0; }
.accent-box.strategist-qs .accent-label { color: #1565c0; }
.accent-box.action-item { background: #e8f5e9; border-color: #2e7d32; }
.accent-box.action-item .accent-label { color: #2e7d32; }

/* ===== LESSON PAGE ===== */

.lesson-header {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 100%);
  color: #fff;
  padding: 36px 40px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.lesson-header .lesson-meta {
  font-size: 0.7rem; font-weight: 600; opacity: 0.65;
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.lesson-header h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }

.video-container {
  background: linear-gradient(135deg, #0a1e30 0%, #0c3455 100%);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.video-container iframe { width: 100%; height: 100%; border: none; }
.video-placeholder { color: rgba(255,255,255,0.3); text-align: center; font-size: 0.82rem; font-weight: 600; }
.video-placeholder .icon { font-size: 3.5rem; margin-bottom: 12px; opacity: 0.5; }

.lesson-content {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 44px 52px 52px;
  margin-bottom: 24px;
  font-size: 0.92rem; line-height: 1.85;
  color: #3a3d42;
  max-width: 780px;
}
.lesson-content h2 { font-size: 1.35rem; font-weight: 800; color: var(--b1); margin: 40px 0 16px; padding-top: 28px; border-top: 1px solid #eef1f5; }
.lesson-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.lesson-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--b2); margin: 32px 0 12px; }
.lesson-content p { margin: 0 0 18px; color: #3a3d42; }
.lesson-content strong { font-weight: 700; color: var(--b1); }
.lesson-content em { font-style: italic; color: #556; }
.lesson-content ul, .lesson-content ol { margin: 16px 0 24px; padding-left: 0; list-style: none; }
.lesson-content ul li, .lesson-content ol li { position: relative; padding: 10px 16px 10px 32px; margin-bottom: 6px; background: var(--lt); border-radius: 8px; font-size: 0.88rem; line-height: 1.65; }
.lesson-content ul li::before { content: ''; position: absolute; left: 14px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--b2); }
.lesson-content ol { counter-reset: lesson-counter; }
.lesson-content ol li { counter-increment: lesson-counter; }
.lesson-content ol li::before { content: counter(lesson-counter) '.'; position: absolute; left: 12px; top: 10px; font-weight: 800; color: var(--b2); }

/* ===== TOOL EMBED + VERDICT CARD ===== */

.tool-embed {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.tool-iframe { width: 100%; min-height: 600px; border: 0; display: block; }
.tool-placeholder { padding: 48px; text-align: center; color: #889; }

.verdict-card-block {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  text-align: center;
}
.verdict-card-block .verdict-meta {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  opacity: 0.7; margin-bottom: 12px;
}
.verdict-card-block img { max-width: 100%; border-radius: 8px; }

/* ===== COMPLETE BUTTON + LESSON NAV ===== */

.complete-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: none; border-radius: 8px;
  font-family: inherit; font-weight: 800; font-size: 0.85rem;
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.3px;
}
.complete-btn.mark-complete { background: var(--g1); color: #fff; }
.complete-btn.mark-complete:hover { background: #008a43; }
.complete-btn.completed { background: #e8f5e9; color: var(--g1); }

.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.lesson-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--lt); border-radius: 8px;
  font-weight: 700; font-size: 0.78rem; color: var(--b1);
  transition: all 0.15s;
}
.lesson-nav a:hover { background: var(--b1); color: #fff; }

/* ===== ADMIN ===== */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.admin-stat { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 8px var(--shadow); padding: 18px 20px; text-align: center; }
.admin-stat .num { font-size: 2rem; font-weight: 800; color: var(--b1); }
.admin-stat .lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.6px; color: #8899aa; font-weight: 600; margin-top: 2px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; background: var(--b1); font-weight: 700; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid #eef1f5; }
.admin-table tr:nth-child(odd) td { background: #fafbfd; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; background: #eef2f6; color: #556; }
.badge.active { background: rgba(0,161,79,0.1); color: var(--g1); }
.badge.inactive { background: #f0f0f0; color: #999; }

/* ===== FORMS ===== */

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: #8899aa; margin-bottom: 4px; }
.form-input { width: 100%; padding: 10px 14px; border: 2px solid #dde5ec; border-radius: 8px; font-family: inherit; font-size: 0.85rem; color: var(--gr); transition: border-color 0.15s; }
.form-input:focus { outline: none; border-color: var(--b2); }

.btn { display: inline-flex; align-items: center; padding: 10px 22px; border: none; border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--b1); color: #fff; }
.btn-primary:hover { background: var(--b2); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

/* ===== LOGIN ===== */

.login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 50%, var(--b3) 100%);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  padding: 40px 36px;
  width: 420px; max-width: 95vw;
}
.login-card .logo-area { text-align: center; margin-bottom: 28px; }
.login-card .logo-area h1 { font-size: 1.2rem; font-weight: 800; color: var(--b1); margin-bottom: 4px; letter-spacing: 0.5px; }
.login-card .logo-area p { font-size: 0.78rem; color: #8899aa; }
.login-card .error-msg { background: rgba(232,93,58,0.08); color: var(--vs); padding: 10px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; margin-bottom: 16px; }
.login-card .success-msg { background: rgba(0,161,79,0.08); color: var(--g1); padding: 10px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; margin-bottom: 16px; }
.login-meta { text-align: center; margin-top: 24px; font-size: 0.78rem; color: #889; }
.login-meta a { color: var(--b2); }

/* ===== PUBLIC PAGES ===== */

.public-shell { min-height: 100vh; display: flex; flex-direction: column; }

.public-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  background: #fff;
  border-bottom: 1px solid #e4e9ee;
}
.public-logo {
  font-size: 1rem; font-weight: 800;
  color: var(--b1); letter-spacing: 1px;
}
.public-nav { display: flex; gap: 16px; align-items: center; }
.public-nav a { font-size: 0.85rem; font-weight: 600; color: var(--gr); }
.public-nav a:hover { color: var(--b2); }

.public-main { flex: 1; }

.hero-public {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 60%, var(--b3) 100%);
  color: #fff;
  padding: 80px 36px 96px;
}
.hero-public.small { padding: 48px 36px; }
.hero-public-inner { max-width: 1100px; margin: 0 auto; }
.hero-public h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; max-width: 800px; }
.hero-public p, .hero-public .hero-subtitle { font-size: 1rem; opacity: 0.9; max-width: 700px; margin-top: 14px; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.badge-client-only {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.section { padding: 64px 36px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section h2 { font-size: 1.4rem; font-weight: 800; color: var(--b1); margin-bottom: 20px; }

.module-list-public { margin: 16px 0 24px; padding-left: 20px; }
.module-list-public li { margin-bottom: 12px; line-height: 1.5; }
.module-list-public .module-theme { font-style: italic; color: #889; font-size: 0.85rem; margin-top: 2px; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review { background: #fff; padding: 20px 22px; border-radius: var(--radius); box-shadow: 0 2px 8px var(--shadow); }
.review-stars { color: var(--warn); font-size: 1rem; margin-bottom: 8px; }
.review-title { font-weight: 700; color: var(--b1); margin-bottom: 6px; }
.review-body { font-size: 0.88rem; color: #556; line-height: 1.5; }
.review-author { font-size: 0.75rem; color: #889; margin-top: 12px; }

.refund-policy { background: var(--lt); padding: 16px 20px; border-radius: 8px; font-size: 0.85rem; color: #556; }

.all-access-card {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 100%);
  color: #fff; padding: 32px 32px 28px;
  border-radius: var(--radius);
  margin-top: 12px;
}
.all-access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.all-access-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.all-access-price { font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.all-access-price span { font-size: 1rem; font-weight: 600; opacity: 0.85; }
.all-access-meta { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

.calculator-shell { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px var(--shadow); overflow: hidden; }
.calculator-iframe { width: 100%; min-height: 700px; border: 0; display: block; }

.public-footer { background: #0a2a44; color: #fff; padding: 48px 36px; }
.public-footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand strong { font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-copyright { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ===== ERROR PAGE ===== */

.error-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 100%);
  color: #fff;
}
.error-page h1 { font-size: 2rem; margin: 12px 0 6px; }
.error-page p { opacity: 0.85; margin-bottom: 24px; }
.error-status { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; opacity: 0.7; }

/* ===== META ROW (account) ===== */
.meta-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: #8899aa; }
.meta-value { font-weight: 600; margin-top: 4px; }

/* ===== ENROL FORM (public buy buttons) ===== */
.enrol-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 540px;
}
.enrol-discount {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 16px;
  flex: 1;
  min-width: 180px;
  font-size: 0.85rem;
  border-radius: 6px;
}
.enrol-discount::placeholder { color: var(--gr); opacity: 0.55; }
.enrol-discount:focus { outline: none; border-color: #fff; background: #fff; }

/* ===== ADMIN COURSE BUILDER ===== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .form-full { grid-column: 1 / -1; }

.success-msg {
  background: rgba(0,161,79,0.1);
  color: var(--g1);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.error-msg {
  background: rgba(232,93,58,0.1);
  color: var(--vs);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-sm { padding: 5px 12px; font-size: 0.7rem; }
.btn-icon {
  background: transparent; border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 4px;
  font-size: 0.85rem; color: #889;
}
.btn-icon:hover { background: rgba(232,93,58,0.1); color: var(--vs); }
.btn-danger { background: var(--vs); color: #fff; }
.btn-danger:hover { background: #c74425; }
.btn-green { background: var(--g1); color: #fff; }
.btn-green:hover { background: #008a43; color: #fff; }

/* === Curriculum builder === */

.curriculum-module {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.curriculum-module-header {
  background: linear-gradient(135deg, var(--b1) 0%, #133e64 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.curriculum-module-header .curriculum-num {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  opacity: 0.7; min-width: 80px;
}
.curriculum-module-header .curriculum-title-input,
.curriculum-module-header .curriculum-theme-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  flex: 1;
  min-width: 0;
}
.curriculum-module-header .curriculum-title-input { flex: 2; font-weight: 700; }
.curriculum-module-header .curriculum-title-input:focus,
.curriculum-module-header .curriculum-theme-input:focus { outline: none; background: rgba(255,255,255,0.18); }
.curriculum-module-header .curriculum-title-input::placeholder,
.curriculum-module-header .curriculum-theme-input::placeholder { color: rgba(255,255,255,0.4); }

.curriculum-lessons {
  padding: 12px 16px;
  background: var(--lt);
  min-height: 60px;
}
.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid #e4e9ee;
}
.curriculum-lesson .curriculum-num {
  font-size: 0.7rem; font-weight: 700;
  color: #889; min-width: 60px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.curriculum-lesson .lesson-title-input {
  flex: 1; min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--gr);
}
.curriculum-lesson .lesson-title-input:focus {
  outline: none; border-color: var(--b3);
  background: var(--lt);
}

.add-lesson-btn {
  display: block;
  margin-top: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 2px dashed #ccd;
  color: #889;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.add-lesson-btn:hover { border-color: var(--b2); color: var(--b2); }

.drag-handle {
  cursor: grab;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  user-select: none;
  padding: 0 4px;
}
.curriculum-lesson .drag-handle { color: #ccd; }
.drag-handle:active { cursor: grabbing; }

/* === Block editor === */

.block-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 16px;
}
.block-editor-header h3 { font-size: 1rem; font-weight: 800; color: var(--b1); }
.block-add { display: flex; gap: 8px; }

.block-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.block-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--lt) 0%, #f0f4f7 100%);
  border-bottom: 1px solid #e4e9ee;
}
.block-card-header .drag-handle { color: #889; }
.block-type-label {
  flex: 1;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--b2);
}
.block-card-body { padding: 18px 20px; }
.block-save-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.markdown-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.md-pane label {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #889;
  margin-bottom: 6px;
}
.md-pane textarea { font-family: monospace; font-size: 0.85rem; line-height: 1.6; }
.md-preview {
  background: var(--lt);
  border: 1px solid #e4e9ee;
  border-radius: 8px;
}

.downloads-editor label {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
  color: #889;
  margin-bottom: 8px;
}
.download-item-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.download-item-row .form-input { padding: 6px 10px; font-size: 0.82rem; }

/* === Admin tables === */

.admin-table .badge { font-size: 0.65rem; padding: 2px 8px; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .content-area { padding: 16px; }
  .hero-public { padding: 48px 20px; }
  .hero-public h1 { font-size: 1.6rem; }
  .course-grid { grid-template-columns: 1fr; }
  .public-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .all-access-grid { grid-template-columns: 1fr; }
  .lesson-content { padding: 24px 20px 28px; }
}
