:root {
  --green: #0f382c;
  --green-hover: #164e3e;
  --deep: #0a271f;
  --orange: #c2542d;
  --orange-hover: #a8421d;
  --peach: #f4f7f5;
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #1c2722;
  --ink-light: #2d3b34;
  --muted: #66756d;
  --line: #dfe5df;
  --line-light: #edf1ed;
  --soft: #f4f7f5;
  --soft-green: #e4efe7;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 56, 44, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 56, 44, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 56, 44, 0.08);
  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--font-base);
  --sans: var(--font-base);
}

* { box-sizing: border-box; font-family: var(--font-base); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* TOPBAR */
.topbar {
  height: 70px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
}
.brand-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.brand-text { letter-spacing: -0.02em; font-weight: 700; }
.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.level {
  color: var(--green);
  background: var(--soft-green);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.admin-nav-link {
  color: var(--green);
  font-weight: 600;
  background: #f0f5f2;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 10px;
  transition: all 0.2s;
}
.admin-nav-link:hover {
  background: #e2ede6;
}
.user-chip {
  background: var(--soft);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 13px;
}

/* BUTTONS */
.outline-btn, .primary-btn {
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.outline-btn {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}
.outline-btn:hover {
  border-color: var(--muted);
  background: #f8faf8;
}
.primary-btn {
  background: var(--orange);
  color: #fff;
}
.primary-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 84, 45, 0.25);
}

/* HERO SECTION */
.hero {
  min-height: 540px;
  margin: 12px clamp(12px, 3vw, 32px);
  border-radius: var(--radius-lg);
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 64px clamp(32px, 7vw, 112px);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-md);
}
.hero-copy { max-width: 520px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: #557565;
  margin: 0 0 14px;
}
.hero .eyebrow {
  color: #b8d5c7;
}
.hero h1 {
  font-family: var(--font-base);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-copy > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.6;
  color: #e5ede8;
  margin: 0 0 26px;
}
.hero-badge {
  position: absolute;
  right: clamp(20px, 5vw, 60px);
  bottom: 32px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.badge-icon {
  font-size: 22px;
  color: var(--orange);
}
.hero-badge strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.hero-badge small {
  color: var(--muted);
  font-size: 12px;
}

/* HERO SLIDER & TYPEWRITER */
.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-slide .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s ease-out;
}
.hero-slide.active .hero-photo {
  transform: scale(1.06);
}
.hero-slider-controls {
  position: absolute;
  left: clamp(24px, 6vw, 105px);
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-dot {
  width: 24px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.hero-dot.active {
  width: 44px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.hero-nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 38, 30, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.hero-nav-arrow:hover {
  background: rgba(8, 38, 30, 0.85);
  border-color: #ffffff;
  transform: scale(1.08);
}
.hero-headline {
  font-family: var(--font-base);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.headline-fixed {
  display: block;
}
.headline-dynamic {
  display: inline-block;
  color: #ffca85;
  min-height: 1.15em;
}
.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  color: #ff9d66;
  font-weight: 300;
  animation: cursorBlink 0.85s infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* HOW IT WORKS SECTION (METODE BELAJAR) */
.how-it-works-section {
  max-width: 1200px;
  margin: 64px auto 48px;
  padding: 0 24px;
}
.how-it-works-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 40px;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #edf4ef;
  color: var(--green);
  border: 1px solid #d4e5d8;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(194, 84, 45, 0.2);
}
.how-it-works-header h2 {
  font-family: var(--font-base);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--green);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.how-it-works-header p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.step-card {
  background: #ffffff;
  border: 1px solid #e2ebe4;
  border-radius: 20px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 56, 44, 0.03);
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: all 0.25s ease;
}
.step-card-1::before {
  background: linear-gradient(90deg, #0f382c, #2d7a5b);
}
.step-card-2::before {
  background: linear-gradient(90deg, #c2542d, #df7650);
}
.step-card-3::before {
  background: linear-gradient(90deg, #18684d, #3cb389);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 56, 44, 0.08);
  border-color: #cbd8cf;
}
.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.step-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.step-card:hover .step-icon-bubble {
  transform: scale(1.08);
}
.step-bubble-culture {
  background: #edf7f1;
  color: #0f382c;
  border: 1px solid #d4ebdc;
}
.step-bubble-language {
  background: #fdf2ed;
  color: #c2542d;
  border: 1px solid #f9ddd2;
}
.step-bubble-practice {
  background: #ebf5f1;
  color: #17654a;
  border: 1px solid #cfe6dc;
}
.step-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  background: #f0f4f1;
  color: #3b5749;
  border: 1px solid #e1ebe3;
}
.step-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}
.tag-culture {
  background: #eaf4ed;
  color: #0f382c;
}
.tag-language {
  background: #faebe5;
  color: #b84c29;
}
.tag-practice {
  background: #e5f3ec;
  color: #155c44;
}
.step-card h3 {
  font-family: var(--font-base);
  font-size: 21px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #55665e;
  margin: 0 0 20px;
  flex-grow: 1;
}
.step-features {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px dashed #e1eae3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #35473e;
  font-weight: 600;
}
.step-features .check-icon {
  color: #1f7756;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step-card {
    padding: 24px 20px;
  }
}

/* HOME UNITS SECTION */
.home-section {
  max-width: 1200px;
  margin: 55px auto;
  padding: 0 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-family: var(--font-base);
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  margin: 4px 0 0;
}
.progress-pill {
  background: var(--soft);
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.unit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.unit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d1aba0;
}
.unit-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}
.unit-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.food-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f4f5f0;
  border-radius: 10px;
  font-size: 24px;
  flex: 0 0 auto;
}
.unit-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.unit-copy strong {
  font-size: 16px;
  color: var(--ink);
}
.unit-copy small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.chevron {
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}
.check {
  color: #fff;
  background: #398561;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* LEARNING LAYOUT & ARTICLE TYPOGRAPHY */
.learning-layout {
  max-width: 1280px;
  margin: 32px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
}
.unit-sidebar, .lesson-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.unit-sidebar {
  padding: 24px 16px;
  height: max-content;
  position: sticky;
  top: 92px;
}
.sidebar-title {
  padding: 0 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.sidebar-title h3 {
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin: 4px 0 0;
}
.mini-progress {
  height: 6px;
  background: #e2eae5;
  border-radius: 10px;
  margin: 0 8px 16px;
  overflow: hidden;
}
.mini-progress i {
  display: block;
  background: var(--green);
  height: 100%;
  transition: width 0.3s;
}
.side-units-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-unit {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.side-unit:hover { background: #f4f7f4; }
.side-unit.active {
  background: #eaf3ed;
  border-left-color: var(--green);
}
.side-unit small {
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}
.side-unit-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.side-unit-info strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.side-unit-info em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.side-unit-status {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}
.side-unit.active .side-unit-status { color: var(--orange); }

/* LESSON CARD & ARTICLE CONTENT */
.lesson-card { overflow: hidden; }
.lesson-head {
  padding: 36px 44px;
  background: linear-gradient(135deg, #fbf2ee 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.unit-tag {
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}
.lesson-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}
.lesson-head h1 {
  font-family: var(--font-base);
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.15;
  color: var(--green);
  margin: 0 0 8px;
  font-weight: 700;
}
.lesson-subtitle {
  color: var(--muted);
  font-size: 15px;
}
.lesson-cover-wrap {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.lesson-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lesson-emoji {
  font-size: 68px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}

/* TABS */
.tabs {
  height: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fcfdfc;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tabs button:hover {
  color: var(--green);
  background: #f2f7f3;
}
.tabs button.active {
  color: var(--green);
  background: #fff;
  border-bottom: 3px solid var(--green);
  font-weight: 700;
}

/* LESSON BODY & ARTICLE STYLING (PROFESSIONAL CONSISTENCY) */
.lesson-body {
  padding: 44px;
  min-height: 420px;
}
.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.tab-panel.active { display: block; }
.section-index {
  color: var(--green);
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.tab-panel h2 {
  font-family: var(--font-base);
  font-size: 28px;
  line-height: 1.3;
  color: var(--green);
  margin: 0 0 24px;
  font-weight: 700;
}
.tab-panel h3 {
  font-family: var(--font-base);
  font-size: 20px;
  color: var(--ink);
  margin: 28px 0 16px;
  font-weight: 700;
  font-weight: 700;
}

/* KONSISTENSI FONT ARTIKEL: Plus Jakarta Sans dengan kontras & line-height optimal */
.rich-content {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-light);
  max-width: 820px;
}
.rich-content p {
  margin: 0 0 18px;
}
.rich-content strong {
  color: var(--ink);
  font-weight: 700;
}
.rich-content em {
  font-style: italic;
}
.rich-content ul, .rich-content ol {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  padding-left: 24px;
  margin: 0 0 20px;
  color: var(--ink-light);
}
.rich-content li {
  margin-bottom: 8px;
}

/* CALLOUT CARD */
.callout {
  display: flex;
  gap: 16px;
  border-left: 4px solid #387e5b;
  background: var(--soft-green);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}
.callout-icon {
  color: #387e5b;
  font-size: 26px;
  line-height: 1;
}
.callout strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #2b6146;
  margin-bottom: 6px;
  font-weight: 700;
}
.callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* KITCHEN RECIPE GRID */
.kitchen-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  margin-top: 20px;
}
.ingredient-list, .method-list {
  padding: 0;
  list-style: none;
  counter-reset: item;
}
.ingredient-list li, .method-list li {
  counter-increment: item;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  gap: 14px;
  font-size: 15px;
}
.ingredient-list li:before {
  content: counter(item, decimal-leading-zero);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}
.method-list li {
  align-items: flex-start;
}
.method-list li:before {
  content: counter(item);
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* QUIZ */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.quiz label {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  background: var(--paper);
  font-size: 15px;
  transition: all 0.2s;
}
.quiz label:hover {
  border-color: #8dae9b;
  background: #f8faf8;
}
.quiz label:has(input:checked) {
  border-color: var(--green);
  background: #eef6f1;
}
.quiz input {
  position: absolute;
  opacity: 0;
}
.quiz label span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #f0f2ee;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.quiz label:has(input:checked) span {
  background: var(--orange);
  color: #fff;
}
.quiz-result {
  font-weight: 600;
  font-size: 15px;
  margin-top: 14px;
}
.quiz-result.good { color: #2e7a54; }
.quiz-result.bad { color: #bf3924; }

/* LESSON FOOTER */
.lesson-footer {
  border-top: 1px solid var(--line);
  padding: 24px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfa;
}
.lesson-footer > div small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.lesson-footer > div strong {
  font-size: 14px;
  color: var(--ink);
}

/* ACCESS & MEMBERSHIP TIERS (BENEFITS) */
.tier-section-wrapper {
  margin: 70px auto 60px;
  scroll-margin-top: 40px;
}
.benefits-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%);
  border: 1px solid #dbe6de;
  border-radius: 28px;
  padding: 56px 44px;
  box-shadow: 0 10px 30px rgba(15, 56, 44, 0.04);
  position: relative;
}
.benefits-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.benefits-header .eyebrow-pill {
  margin-bottom: 14px;
}
.benefits-header h2 {
  font-family: var(--font-base);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--green);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.benefits-header p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.access-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.tier-card {
  background: #ffffff;
  border: 1.5px solid #e1ebe3;
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 56, 44, 0.04);
}
.tier-card:hover {
  transform: translateY(-4px);
  border-color: #bad3c3;
  box-shadow: 0 16px 36px rgba(15, 56, 44, 0.08);
}
.tier-card-featured {
  background: #ffffff;
  border: 2px solid #0f382c;
  box-shadow: 0 14px 40px rgba(15, 56, 44, 0.12);
  padding-top: 40px;
}
.tier-card-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 56, 44, 0.16);
  border-color: #0f382c;
}
.tier-popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c2542d 0%, #db653a 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(194, 84, 45, 0.35);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.tier-card-top {
  margin-bottom: 20px;
}
.tier-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.tier-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bubble-visitor {
  background: #edf4ef;
  color: #0f382c;
}
.bubble-featured {
  background: #fbeee8;
  color: #c2542d;
}
.bubble-class {
  background: #eef3f9;
  color: #1e4b85;
}
.tier-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  line-height: 1.3;
}
.badge-neutral {
  background: #f1f4f2;
  color: #55665d;
}
.badge-featured {
  background: #e4efe7;
  color: #0f382c;
}
.badge-class {
  background: #e6eef8;
  color: #1e4b85;
}
.tier-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.tier-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
  min-height: 42px;
}
.tier-price-box {
  background: #f8faf8;
  border: 1px solid #e7efe9;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.tier-card-featured .tier-price-box {
  background: #fcf7f4;
  border-color: #f7ded4;
}
.tier-price-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}
.tier-price-orange {
  color: #c2542d;
}
.tier-price-period {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.tier-card-body {
  flex: 1 1 auto;
}
.tier-feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tier-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #33443c;
}
.tier-feature-list li strong {
  color: #0f382c;
}
.tier-feature-list .feature-highlight {
  color: #0a271f;
}
.check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-active {
  background: #e4efe7;
  color: #0f382c;
}
.check-featured {
  background: #faece7;
  color: #c2542d;
}
.tier-card-footer {
  margin-top: auto;
}
.tier-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 48px;
  box-sizing: border-box;
}
.tier-btn-outline {
  background: #ffffff;
  color: #0f382c;
  border: 1.5px solid #cfded4;
}
.tier-btn-outline:hover {
  background: #f4f8f5;
  border-color: #0f382c;
  color: #0f382c;
}
.tier-btn-primary {
  background: #c2542d;
  color: #ffffff;
  border: 1.5px solid #c2542d;
  box-shadow: 0 4px 14px rgba(194, 84, 45, 0.25);
}
.tier-btn-primary:hover {
  background: #a8421d;
  border-color: #a8421d;
  box-shadow: 0 6px 18px rgba(194, 84, 45, 0.35);
  transform: translateY(-1px);
}
.tier-btn-secondary {
  background: #0f382c;
  color: #ffffff;
  border: 1.5px solid #0f382c;
  box-shadow: 0 4px 14px rgba(15, 56, 44, 0.15);
}
.tier-btn-secondary:hover {
  background: #175442;
  border-color: #175442;
  box-shadow: 0 6px 18px rgba(15, 56, 44, 0.25);
  transform: translateY(-1px);
}
@media (max-width: 960px) {
  .benefits-panel {
    padding: 40px 24px;
    border-radius: 22px;
  }
  .access-comparison-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tier-card-featured {
    padding-top: 36px;
    order: -1;
  }
  .tier-desc {
    min-height: auto;
    margin-bottom: 16px;
  }
}
@media (max-width: 600px) {
  .tier-section-wrapper {
    margin: 40px auto 36px;
  }
  .benefits-panel {
    padding: 28px 16px;
    border-radius: 18px;
  }
  .benefits-header {
    margin-bottom: 30px;
  }
  .tier-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .tier-title {
    font-size: 21px;
  }
  .tier-price-val {
    font-size: 23px;
  }
  .tier-popular-tag {
    font-size: 11px;
    padding: 4px 12px;
  }
}

/* EXPANDED RICH FOOTER */
.site-footer {
  background: #061913;
  color: #cfded6;
  border-top: 1px solid #14352a;
  margin-top: 64px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-main {
  padding: 68px 0 52px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.35fr;
  gap: 40px;
}
.footer-col-brand {
  padding-right: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-brand-mark {
  width: 38px;
  height: 38px;
  background: var(--green);
  border: 1px solid #1e5241;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.footer-brand-img {
  max-height: 38px;
  width: auto;
}
.footer-brand-text {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.footer-tagline {
  color: #8faea0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}
.footer-bio {
  color: #a4beb2;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0e2a21;
  border: 1px solid #1a3f32;
  color: #cde0d7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a,
.footer-dialog-link {
  color: #9cb5a9;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease, transform 0.15s ease;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: inline-block;
}
.footer-links a:hover,
.footer-dialog-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0d271f;
  color: #79c5a4;
  border: 1px solid #173b2f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8aa99b;
  margin-bottom: 3px;
}
.footer-contact-item p {
  margin: 0;
  font-size: 13.5px;
  color: #cbdad1;
  line-height: 1.5;
}
.contact-link {
  color: #79c5a4;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.contact-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #0f2b21;
  padding: 22px 0;
  background: #04120e;
  font-size: 13px;
}
.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  margin: 0;
  color: #7d9a8c;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-bottom-links a,
.footer-bottom-links button {
  color: #8daaa0;
  background: none;
  border: none;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-bottom-links a:hover,
.footer-bottom-links button:hover {
  color: #ffffff;
}

/* INFO MODAL DIALOGS */
.info-dialog {
  border: 1px solid #d4e2da;
  border-radius: 18px;
  padding: 0;
  max-width: 680px;
  width: calc(100% - 32px);
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 56, 44, 0.22);
}
.info-dialog::backdrop {
  background: rgba(8, 38, 30, 0.65);
  backdrop-filter: blur(4px);
}
.dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eef3ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbfdfc;
}
.dialog-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}
.dialog-body {
  padding: 24px 24px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.7;
  color: #2b3a32;
}
.dialog-footer {
  padding: 14px 24px;
  border-top: 1px solid #eef3ef;
  text-align: right;
  background: #fbfdfc;
}

@media (max-width: 960px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

/* AUTH CARDS */
.auth-card {
  max-width: 480px;
  margin: 64px auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 {
  font-family: var(--font-base);
  font-size: 32px;
  color: var(--green);
  margin: 0 0 20px;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0;
  color: var(--ink);
}
input, textarea, select {
  border: 1px solid #c7cfc7;
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(194, 84, 45, 0.15);
}
textarea { resize: vertical; }
:where(input[type="checkbox"], input[type="radio"]) { width: auto !important; }

/* PASSWORD TOGGLE */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrapper input {
  padding-right: 44px;
  width: 100%;
}
.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 2;
  line-height: 1;
}
.password-toggle-btn:hover {
  color: var(--green);
  background: rgba(15, 56, 44, 0.08);
}
.password-toggle-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ALERTS */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert.success {
  background: #e6f6ec;
  color: #1f643e;
  border: 1px solid #c5ebd2;
}
.alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fee2e2;
}

/* ADMIN DASHBOARD & SETTINGS STYLES */
.admin-wrap {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.admin-head h1 {
  font-family: var(--font-base);
  font-size: 36px;
  color: var(--green);
  margin: 0;
  font-weight: 700;
}
/* ADMIN TABS (Pill / Segmented Control) */
.admin-tabs {
  display: inline-flex;
  background: #edf2ed;
  padding: 5px;
  border-radius: 14px;
  gap: 4px;
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.admin-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.admin-tab.active {
  background: var(--paper);
  color: var(--green);
  box-shadow: 0 2px 8px rgba(15, 56, 44, 0.08);
  font-weight: 700;
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-icon-wrap.icon-amber {
  background: #fdf3e7;
  color: #c97a18;
  border: 1px solid #fae2c6;
}
.stat-icon-wrap.icon-green {
  background: #eaf6ed;
  color: #1f643e;
  border: 1px solid #d0edd7;
}
.stat-icon-wrap.icon-blue {
  background: #eaf1fb;
  color: #2b5cb8;
  border: 1px solid #d4e2fa;
}
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-base);
}
.stat-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}
.stat-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* SETTINGS CARDS */
.settings-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.settings-card-header {
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.settings-card-header h2 {
  font-family: var(--font-base);
  font-size: 22px;
  color: var(--green);
  margin: 0 0 6px;
  font-weight: 700;
}
.settings-card-header p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}
.form-grid .full { grid-column: 1 / -1; }
.hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  display: block;
}
.current-media-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--soft);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.current-media-preview.hero-preview {
  flex-direction: column;
  align-items: flex-start;
}
.checkbox-inline {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer;
  margin: 0 !important;
}
.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #f6f8f6;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}

/* DATA TABLE */
.table-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
}
.data-table th {
  background: #f4f6f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.data-table tbody tr:hover { background: #fafcfa; }
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-published {
  background: #e6f6ec;
  color: #1f643e;
}
.status-draft {
  background: #f0f2f0;
  color: #65736b;
}
.action-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.small-btn {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.small-btn:hover {
  background: #f5f7f5;
  border-color: var(--muted);
}
.small-btn.danger {
  color: #b83321;
  border-color: #f3cec7;
  background: #fff;
}
.small-btn.danger:hover {
  background: #fef2f2;
}

/* ACCESS TYPE RADIO CARDS */
.access-choice-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.access-radio-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 !important;
}
.access-radio-card input {
  margin-top: 3px;
  width: auto !important;
  cursor: pointer;
}
.access-radio-card:hover {
  border-color: #c7d5c9;
  background: #fafcfa;
}
.access-radio-card.checked, .access-radio-card:has(input:checked) {
  border-color: var(--green);
  background: #eef6f1;
}
.access-radio-card strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.access-radio-card small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* BADGES */
.badge-access {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-access.public {
  background: #e9f5ed;
  color: #1e693f;
}
.badge-access.member {
  background: #f1f4f8;
  color: #2b4c7e;
}
.badge-video {
  background: #eaf1fb;
  color: #2b5cb8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* VIDEO PLAYER BOX IN LESSON */
.lesson-video-box {
  margin-bottom: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-box-header {
  padding: 12px 20px;
  background: #f4f7f4;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1a15;
}
.video-container video, .video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* MEMBER GATE / PAYWALL */
.member-gate-card {
  background: var(--paper);
  border: 1px solid #ebd9d2;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 600px;
  margin: 30px auto;
  box-shadow: var(--shadow-md);
}
.member-gate-icon {
  font-size: 46px;
  margin-bottom: 12px;
}
.member-gate-card h2 {
  font-family: var(--font-base);
  font-size: 26px;
  color: var(--green);
  margin: 0 0 12px;
}
.member-gate-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.member-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* QUILL WYSIWYG EDITOR */
.quill-editor-box {
  background: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  min-height: 180px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.ql-toolbar.ql-snow {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-color: #c7cfc7 !important;
  background: #f7faf7;
  font-family: var(--sans);
}
.ql-container.ql-snow {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-color: #c7cfc7 !important;
}
.ql-editor {
  min-height: 180px;
  line-height: 1.7;
}
.ql-editor p { margin-bottom: 1em; }
.ql-editor h2 { font-family: var(--font-base); color: var(--green); margin: 1.2em 0 0.5em; }
.ql-editor h3 { font-family: var(--font-base); color: var(--ink); margin: 1em 0 0.4em; }

/* FORM ACTIONS */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
  .level, .user-chip { display: none; }
  .unit-grid { grid-template-columns: 1fr; }
  .learning-layout { grid-template-columns: 1fr; }
  .unit-sidebar { position: static; }
  .kitchen-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .admin-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .admin-head .action-row { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .brand { font-size: 19px; }
  .hero {
    margin: 8px;
    padding: 48px 24px;
    min-height: 480px;
    border-radius: var(--radius-md);
  }
  .hero h1 { font-size: 38px; }
  .hero-badge { display: none; }
  .lesson-head { padding: 24px; flex-direction: column; align-items: flex-start; }
  .lesson-body { padding: 24px 18px; }
  .lesson-footer { padding: 18px; flex-direction: column; gap: 14px; }
  .footer { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .data-table { display: block; overflow-x: auto; }
  .settings-card { padding: 20px; }
  .admin-wrap { margin: 20px auto 40px; padding: 0 16px; }
  .admin-head h1 { font-size: 28px; }
  .stats-row { grid-template-columns: 1fr; }
  .admin-tabs { width: 100%; justify-content: flex-start; }
  .access-choice-wrap { grid-template-columns: 1fr; }
  .member-gate-card { padding: 32px 18px; }
}
