/* Farmcart LMS — Phase 1 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --green-primary: #2e7d32;
  --green-deep: #2e7d32;
  --green-mid: #43a047;
  --green-accent: #4caf50;
  --green-hover: #22863a;
  --green-dark: #1b5e20;
  --green-surface: #e8f5e9;
  --green-surface-strong: #c8e6c9;
  --green-success: #48bb78;
  --blue-deep: #1565c0;
  --orange: #e67e22;
  --gold: #66bb6a;
  --ink: #212529;
  --muted: #6c757d;
  --paper: #ffffff;
  --line: #e9ecef;
  --page-bg: #f8f9fa;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(46, 125, 50, 0.08);
  --font-serif: 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --sidebar-w: 260px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.5;
}
a { color: var(--green-mid); }
h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; font-weight: 700; }

/* Auth — login, register, verify */
body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(160deg, var(--green-surface) 0%, var(--page-bg) 55%, #fff 100%);
}
body.lms-app--auth {
  display: block;
  width: 100%;
}
.auth-page__wrap {
  width: min(960px, 100%);
  margin: 0 auto;
}
.auth-page__wrap > .flash {
  margin-bottom: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.auth-page__wrap > .flash--error {
  background: #fdecea;
  color: #a32020;
  border-color: #f5c6c6;
}
.auth-page__wrap > .flash--success {
  background: var(--green-surface);
  color: var(--green-deep);
  border-color: var(--green-surface-strong);
}
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0;
  min-height: min(85vh, 680px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(46, 125, 50, 0.12);
}
.auth-split__hero { padding: 2.5rem; background: linear-gradient(145deg, var(--green-mid), var(--green-accent)); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.auth-split__hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.auth-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  margin: 0 0 1rem;
}
.auth-hero-logo {
  display: block;
  width: clamp(88px, 22vw, 120px);
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
  background: transparent;
}

/* Sign-in page only — white hero panel so logo is visible */
body.page-login .auth-split--sign-in .auth-split__hero {
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--green-surface-strong, #dce8dc);
  align-items: center;
  text-align: center;
}
body.page-login .auth-split--sign-in .auth-split__hero-inner {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.page-login .auth-split--sign-in .auth-split__hero h1 {
  color: var(--ink);
  margin: 0 0 1.1rem;
  text-align: center;
  line-height: 1.15;
  width: 100%;
  font-size: clamp(1.05rem, 3.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
body.page-login .auth-split--sign-in .auth-split__hero > p:not(.auth-hero-registration) {
  color: var(--muted);
}
body.page-login .auth-split--sign-in .auth-hero-registration {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
body.page-login .auth-hero-registration__badge {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(145deg, #e8f5e9 0%, #f1f8e9 55%, #fff 100%);
  border: 1px solid #a5d6a7;
  border-radius: 999px;
  color: #1b5e20;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  box-shadow:
    0 2px 10px rgba(46, 125, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
body.page-login .auth-hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(46, 125, 50, 0.1);
  border: 1px solid #e8f5e9;
}
body.page-login .auth-split--sign-in .auth-hero-logo {
  margin: 0;
}

.auth-split__form { background: var(--paper); display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(400px, 100%); }
.auth-card--wide { width: min(640px, 100%); margin: 2rem auto; background: var(--paper); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  background: #fff; color: #3c4043; border: 1px solid #dadce0; font-weight: 600;
  box-shadow: 0 1px 2px rgba(60,64,67,.12);
}
.btn-google:hover { background: #f8f9fa; border-color: #d2d4d7; color: #202124; }
.btn-google__icon {
  width: 18px; height: 18px; flex: 0 0 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.56 2.98-2.26 5.5-4.82 7.18l7.73 6c4.51-4.16 7.12-10.28 7.12-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
}
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--muted, #5a6b5a); font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border, #d8e0d8);
}
.auth-divider span { white-space: nowrap; }
.input-readonly { background: #f3f5f3; color: var(--muted, #5a6b5a); cursor: not-allowed; }

body.lms-app--landing .auth-page__wrap {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}
.public-landing__hero {
  margin-bottom: 1.25rem;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--green-mid), var(--green-accent));
  color: #fff;
  text-align: center;
}
.public-landing__hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.35rem); margin: 0.35rem 0 0.75rem; }
.public-landing__lead { max-width: 42rem; margin: 0 auto 1.25rem; font-size: 1.05rem; line-height: 1.55; opacity: 0.95; }
.public-landing__eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 700; opacity: 0.9; margin: 0; }
.public-landing__logo { margin: 0 auto 0.75rem; border-radius: 20px; background: rgba(255,255,255,0.12); }
.public-landing__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 0.75rem; }
.public-landing__section { margin-bottom: 1rem; }
.public-landing__features { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.65rem; }
.public-landing__features li { display: flex; align-items: flex-start; gap: 0.55rem; }
.public-landing__verify .btn { margin-top: 0.75rem; }
.public-landing__footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.public-landing__lang a { font-weight: 600; }

.auth-field-hint { font-size: 0.88rem; margin: -0.35rem 0 0.75rem; }
.auth-link-btn {
  background: none; border: none; padding: 0; color: var(--green-deep); font-weight: 600;
  cursor: pointer; text-decoration: underline; font-size: inherit;
}
.auth-email-fallback { margin-bottom: 0.5rem; }
.auth-login-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.auth-login-tabs__btn {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border, #d8e0d8);
  border-radius: 999px;
  background: var(--paper, #fff);
  color: var(--muted, #5a6b5a);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.auth-login-tabs__btn.is-active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}
.auth-optional-field input:not(:required) { border-style: dashed; }
.auth-alt { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* App shell */
.lms-app { display: flex; min-height: 100vh; }
.lms-app--auth { display: block; }
.lms-sidebar {
  width: var(--sidebar-w);
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  transform: translateX(0);
  transition: transform 0.25s ease;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 16px rgba(46, 125, 50, 0.04);
}
.lms-brand {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink);
  margin-bottom: 1.5rem; flex-shrink: 0;
}
.lms-brand__mark { width: 48px; height: 48px; border-radius: 12px; background: var(--green-surface); color: var(--green-primary); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.lms-brand__mark--logo {
  background: transparent;
  padding: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
}
.lms-brand__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.lms-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.lms-brand__text small { color: var(--muted); font-size: 0.72rem; text-transform: none; letter-spacing: 0.02em; }
.lms-nav {
  display: flex; flex-direction: column; gap: 0.25rem;
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  margin: 0 -0.35rem; padding: 0 0.35rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 125, 50, 0.25) transparent;
}
.lms-nav::-webkit-scrollbar { width: 6px; }
.lms-nav::-webkit-scrollbar-track { background: transparent; }
.lms-nav::-webkit-scrollbar-thumb {
  background: rgba(46, 125, 50, 0.2); border-radius: 99px;
}
.lms-nav::-webkit-scrollbar-thumb:hover { background: rgba(46, 125, 50, 0.35); }
.lms-nav__link {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0.85rem; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; border: none; background: none;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
}
.lms-nav__link:hover { background: #f1f3f5; color: var(--green-primary); }
.lms-nav__link.is-active { background: var(--green-surface); color: var(--green-primary); font-weight: 600; box-shadow: none; }
.lms-nav__icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; opacity: 0.9; color: var(--green-primary);
}
.lms-nav__icon .icon { width: 1.15rem; height: 1.15rem; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon--module { color: var(--green-deep); }
.icon--step { stroke-width: 2; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon--xl { width: 2rem; height: 2rem; }
.btn .icon { margin-right: 0.15rem; }
.lms-nav__text { flex: 1; min-width: 0; }
.lms-nav__section {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0.75rem 0 0.35rem 0.65rem;
}
.lms-nav__link--sub { font-size: 0.9rem; padding-left: 1.1rem; }
.lms-nav__badge {
  margin-left: auto; min-width: 1.1rem; padding: 0.05rem 0.35rem; border-radius: 99px;
  background: var(--orange); color: #fff; font-size: 0.65rem; font-weight: 700; text-align: center;
}
.admin-staff-form { max-width: 720px; }
.admin-staff-form__password { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.admin-staff-form__password h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.admin-staff-form__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.5rem; }
.admin-staff-actions .inline-form { margin: 0; }
.lms-sidebar__foot {
  flex-shrink: 0; margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--line); font-size: 0.85rem;
}
.lms-sidebar__foot a { color: var(--muted); text-decoration: none; }
.lms-sidebar__foot a:hover { color: var(--green-primary); }
.lms-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; background: var(--page-bg); }
.lms-topbar {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem;
  background: var(--page-bg); border-bottom: 1px solid transparent; position: sticky; top: 0; z-index: 100;
}
.lms-topbar__menu { display: none; border: 1px solid var(--line); background: var(--paper); padding: 0.4rem 0.65rem; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.lms-topbar__title { font-weight: 700; flex: 1; color: var(--ink); font-size: 0.95rem; }
.lms-topbar__user {
  font-size: 0.82rem; color: var(--muted); padding: 0.25rem 0.65rem;
  background: var(--green-surface); border-radius: 99px; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lang-pill { padding: 0.2rem 0.5rem; border-radius: 6px; text-decoration: none; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--line); color: var(--muted); margin-right: 0.25rem; }
.lms-content { padding: 1.25rem 1.75rem 2.5rem; flex: 1; max-width: 1100px; width: 100%; }
.portal-page { animation: portal-fade 0.35s ease; }
@keyframes portal-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Components */
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { margin: 0 0 0.35rem; }
.muted { color: var(--muted); }
.form-stack label, .form-grid label { display: block; margin-bottom: 0.85rem; font-weight: 600; font-size: 0.88rem; }
.form-stack input, .form-grid input, .form-grid select, .form-stack select,
.form-stack textarea, .form-grid textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.65rem 0.85rem;
  border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: #fff; color: var(--ink);
}
.form-stack textarea, .form-grid textarea {
  min-height: 110px; resize: vertical; line-height: 1.55;
}
.form-stack input:focus, .form-grid input:focus,
.form-stack select:focus, .form-grid select:focus,
.form-stack textarea:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.checkbox-row { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.65rem 1.15rem; border-radius: 8px; border: none; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--green-primary); color: #fff; box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28); }
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--green-mid); color: var(--green-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.flash { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash--success { background: var(--green-surface); color: var(--green-deep); }
.flash--error { background: #fdecea; color: #a32020; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
/* stat-card + panel base rules moved to Portal UI block above */
.continue-card {
  display: block; background: var(--green-primary);
  color: #fff; padding: 1.25rem 1.5rem; border-radius: var(--radius); text-decoration: none; margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.2);
}
.continue-card__label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.9; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.course-card {
  background: var(--paper); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: inherit;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.2s;
}
.course-card:hover { transform: translateY(-3px); }
.course-card h2 { margin: 0.5rem 0; font-size: 1.15rem; }
.course-card__progress {
  height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; position: relative;
}
.course-card__progress::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct, 0%);
  background: var(--green-primary); border-radius: 99px;
}
.progress-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 0.5rem 0; }
.progress-bar span { display: block; height: 100%; background: var(--green-primary); border-radius: 99px; }
.module-block { margin-bottom: 1.5rem; }
.lesson-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.lesson-list__item a { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0; text-decoration: none; color: var(--ink); }
.lesson-list__item.is-done a { color: var(--muted); }
.lesson-view { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.lesson-body.prose { max-width: 68ch; }
.lesson-video iframe, .lesson-video video, .lesson-video__iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; }
.lesson-video-block { margin-bottom: 1.25rem; }
.lesson-video--youtube { margin-bottom: 0.75rem; }
.lesson-video__alt {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem;
  background: var(--green-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lesson-video__alt--primary { margin-bottom: 0.5rem; }
.lesson-video__thumb-link {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.lesson-video__thumb-link img { display: block; width: 100%; height: auto; vertical-align: middle; }
.lesson-video__play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(200, 80, 40, 0.92);
  color: #fff;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  padding-left: 0.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.lesson-video__alt-title { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--green-deep); }
.lesson-video__alt-body p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.lesson-video__embed-extra { margin-top: 0.5rem; }
.lesson-video__embed-extra summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
@media (max-width: 560px) {
  .lesson-video__alt { grid-template-columns: 1fr; }
}
.lesson-view__foot { position: sticky; bottom: 0; background: var(--paper); padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.quiz-form .quiz-question { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; background: var(--paper); }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-option { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.65rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.quiz-option:has(input:checked) { border-color: var(--green-accent); background: var(--green-surface); }
.quiz-timer { font-weight: 700; color: var(--orange); margin-bottom: 1rem; font-size: 1.1rem; }
.result-card { text-align: center; padding: 2.5rem; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.result-card--pass { border: 2px solid var(--green-accent); }
.result-card--fail { border: 2px solid #e74c3c; }
.result-card__score { font-size: 3rem; font-family: var(--font-serif); color: var(--green-deep); margin: 0.5rem 0; }
.badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 99px; font-size: 0.75rem; font-weight: 700; background: var(--line); }
.badge--success { background: var(--green-surface); color: var(--green-deep); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--muted); }
.tab-nav { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-nav a { padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.tab-nav a.is-active { background: var(--green-primary); color: #fff; border-color: var(--green-primary); }
.tab-nav--sub a { font-size: 0.9rem; padding: 0.35rem 0.75rem; }

/* Portal UI — admin, student, instructor */
.portal-hero, .student-hero, .admin-hero {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.5rem 1.75rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--green-surface) 0%, var(--paper) 55%);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.portal-hero::before, .student-hero::before, .admin-hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: radial-gradient(ellipse at 100% 0%, rgba(76, 175, 80, 0.14), transparent 70%);
  pointer-events: none;
}
.portal-hero__body, .student-hero__text { position: relative; z-index: 1; flex: 1; min-width: 200px; }
.portal-hero__eyebrow, .student-hero__eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green-mid); font-weight: 700; margin: 0 0 0.35rem;
}
.portal-hero__title, .portal-hero h1, .student-hero h1, .admin-hero h1 { margin: 0 0 0.35rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.portal-hero__subtitle { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.portal-hero__actions, .admin-hero__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }

.portal-tabs {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.45rem; margin-bottom: 1.5rem; box-shadow: 0 2px 12px rgba(46, 125, 50, 0.06);
  position: sticky; top: 52px; z-index: 40;
}
.portal-tabs__scroll {
  display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.1rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.portal-tabs__tab {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem;
  border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600;
  font-size: 0.86rem; white-space: nowrap; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.portal-tabs__tab:hover { background: var(--green-surface); color: var(--green-deep); border-color: var(--line); }
.portal-tabs__tab.is-active {
  background: var(--green-primary);
  color: #fff; border-color: transparent; box-shadow: 0 3px 12px rgba(46, 125, 50, 0.22);
}
.portal-tabs__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.1rem; height: 1.1rem; flex-shrink: 0; color: var(--green-mid);
}
.portal-tabs__tab.is-active .portal-tabs__icon { color: #fff; }
.portal-tabs__icon .icon { width: 1.05rem; height: 1.05rem; }
.portal-tabs__badge {
  min-width: 1.15rem; padding: 0.05rem 0.4rem; border-radius: 99px;
  background: var(--orange); color: #fff; font-size: 0.68rem; font-weight: 700; text-align: center;
}
.portal-tabs__tab.is-active .portal-tabs__badge { background: #fff; color: var(--green-deep); }

.panel {
  background: var(--paper); border-radius: var(--radius); padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 16px rgba(46, 125, 50, 0.06); border: 1px solid var(--line); margin-bottom: 1.35rem;
}
.panel__head, .profile-panel__head {
  margin: -0.25rem 0 1.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.panel__head h2, .profile-panel__head h2 { margin: 0 0 0.2rem; font-size: 1.12rem; color: var(--ink); }
.panel__head p, .profile-panel__head p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.stat-card {
  position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.25rem;
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.06); border: 1px solid var(--line);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-accent));
}
.stat-card__value { display: block; font-size: 1.65rem; font-weight: 700; color: var(--green-deep); font-family: var(--font-serif); line-height: 1.1; }
.stat-card__label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table thead th {
  text-align: left; padding: 0.7rem 1rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--green-deep); background: var(--green-surface);
  border-bottom: 2px solid var(--line); font-weight: 700;
}
.data-table tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(232, 245, 239, 0.45); }
.data-table tbody tr:last-child td { border-bottom: none; }

.page-head { margin-bottom: 1.35rem; padding-bottom: 0.5rem; }
.page-head h1 { margin: 0 0 0.35rem; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.info-card {
  display: flex; gap: 0.85rem; padding: 1rem 1.15rem; background: var(--green-surface);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem;
}
.info-card__icon { font-size: 1.35rem; flex-shrink: 0; }
.info-card__body strong { display: block; color: var(--green-deep); margin-bottom: 0.15rem; }
.panel-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1fr 1.2fr; } }
.table-wrap { overflow-x: auto; }
.progress-bar--inline { height: 6px; margin-bottom: 0.35rem; max-width: 120px; }
.form-grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .form-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.instructor-attendance-form { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.mcq-option-row { border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.5rem; }
.mcq-option-row legend { font-size: 0.85rem; font-weight: 600; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; }
.inline-form { display: inline; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-split__hero { padding: 1.5rem; min-height: 200px; }
  .lms-sidebar { transform: translateX(-100%); }
  .lms-sidebar.is-open { transform: translateX(0); }
  .lms-main { margin-left: 0; }
  .lms-topbar__menu { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}

/* Phase 2 — payments, certificates, practical */
.status-banner { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; }
.status-banner--paid { background: var(--green-surface); color: var(--green-deep); }
.status-banner--pending { background: #fff4e6; color: #9a5b00; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot--green { background: var(--green-accent); }
.status-dot--red { background: #e74c3c; }
.package-grid, .slot-grid, .cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.package-card, .slot-card, .cert-card, .invoice-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.package-card__price { font-size: 1.35rem; font-weight: 700; color: var(--green-deep); font-family: var(--font-serif); }
.invoice-card { margin-bottom: 0.75rem; }
.invoice-card__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.badge--paid, .badge--approved { background: var(--green-surface); color: var(--green-deep); }
.badge--pending, .badge--partial { background: #fff4e6; color: #9a5b00; }
.badge--neutral { background: #eef2f6; color: #4a5568; }
.badge--rejected, .badge--overdue { background: #fdecea; color: #a32020; }
.installment-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.installment-list__item { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.installment-list__item--paid { color: var(--green-mid); }
.payment-review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.payment-review-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.booking-list { list-style: none; padding: 0; }
.booking-list__item { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }

/* —— Practical training hub —— */
.practical-hub__head { margin-bottom: 1.25rem; }
.practical-hub__head h1 { margin: 0 0 0.35rem; }
.practical-progress-card {
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  padding: 1.15rem 1.25rem; margin-bottom: 1.25rem;
  background: var(--green-surface); border: 1px solid var(--green-surface-strong);
  border-radius: 14px;
}
.practical-progress-card__icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: #fff; color: var(--green-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.practical-progress-card__body { flex: 1; min-width: 200px; }
.practical-progress-card__bar {
  height: 8px; background: #fff; border-radius: 99px; overflow: hidden; margin: 0.65rem 0 0.35rem;
}
.practical-progress-card__bar span {
  display: block; height: 100%; background: var(--green-primary); border-radius: 99px;
}
.practical-checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.practical-checklist__item {
  display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.55rem 0;
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.practical-checklist__item.is-done { color: var(--ink); font-weight: 600; }
.practical-checklist__item.is-done .icon { color: var(--green-primary); }
.practical-eligibility-panel__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.75rem; }
.practical-booking-list__item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.practical-booking-list__main { flex: 1; min-width: 220px; }
.practical-booking-list__main strong { margin-right: 0.5rem; }
.practical-booking-list__cancel { flex-shrink: 0; }
.practical-branch-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.practical-branch-filters .lang-pill.is-active {
  background: var(--green-surface); color: var(--green-primary); font-weight: 700;
}
.practical-location-panel { margin-bottom: 1.25rem; }
.practical-location-panel--browse {
  border: 2px solid var(--green-mid, #66bb6a);
  box-shadow: 0 4px 18px rgba(46, 125, 50, 0.08);
}
.practical-location-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
  margin-top: 0.75rem;
}
.practical-location-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.practical-location-form label span { font-weight: 600; color: var(--ink); }
.practical-location-form select {
  width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
.practical-location-form select:disabled,
.practical-location-form input:disabled { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }
.practical-location-form input[type="text"] {
  width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 8px;
}
.practical-location-form__school { grid-column: 1 / -1; }
.practical-location-form__hint { margin: 0.35rem 0 0; font-size: 0.88rem; }
.practical-location-summary,
.practical-location-hint { margin: 0.75rem 0 0; font-size: 0.92rem; }
.practical-school-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.practical-school-list__item {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft, #f8f9fa);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.practical-school-list__item.is-selected {
  border-color: var(--green-mid);
  background: var(--green-surface);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.12);
}
.practical-school-list__item strong { font-size: 0.92rem; }
.practical-browse-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--green-surface, #e8f5e9);
  border: 1px solid var(--green-mid, #81c784);
  font-size: 0.9rem;
  color: var(--ink);
}
.practical-slots-panel--locked {
  border-style: dashed;
  background: var(--bg-soft, #f8f9fa);
}
.practical-slots-panel--locked .practical-locked-booking {
  margin: 0;
  padding: 1rem 0 0.25rem;
}
.practical-slots-panel--locked .practical-locked-booking h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.slot-grid__empty { grid-column: 1 / -1; }

/* —— Feedback hub —— */
.feedback-hub__stats { margin-bottom: 1.25rem; }
.feedback-hub__layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start;
}
@media (max-width: 960px) {
  .feedback-hub__layout { grid-template-columns: 1fr; }
}
.feedback-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.35rem; box-shadow: 0 2px 12px rgba(46, 125, 50, 0.05);
}
.feedback-card__icon-head {
  display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1rem;
}
.feedback-card__icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-surface); color: var(--green-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.feedback-card__icon-head h2 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.feedback-card__icon-head p { margin: 0; font-size: 0.88rem; }
.feedback-tips {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.75rem 0.9rem; margin-bottom: 1.1rem;
  background: #f6fcf8; border: 1px solid #c5e6d0; border-radius: 10px;
  font-size: 0.88rem; color: var(--muted);
}
.feedback-tips p { margin: 0; }
.feedback-tips .icon { flex-shrink: 0; color: var(--green-deep); margin-top: 0.1rem; }
.feedback-categories { border: none; margin: 0 0 1rem; padding: 0; }
.feedback-categories legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.65rem; }
.feedback-category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem;
}
.feedback-category-option { cursor: pointer; }
.feedback-category-option input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-category-option__box {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.65rem 0.5rem; border: 2px solid var(--line); border-radius: 10px;
  background: #fafcfb; transition: border-color 0.15s, background 0.15s;
  text-align: center; min-height: 72px; justify-content: center;
}
.feedback-category-option input:checked + .feedback-category-option__box {
  border-color: var(--green-deep); background: var(--green-surface);
}
.feedback-category-option input:focus-visible + .feedback-category-option__box {
  outline: 2px solid var(--green-mid); outline-offset: 2px;
}
.feedback-category-option__icon { color: var(--green-deep); }
.feedback-category-option__label { font-size: 0.78rem; font-weight: 600; line-height: 1.2; }
.feedback-field { display: block; margin-bottom: 1rem; }
.feedback-field__label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; }
.feedback-field__label em { font-style: normal; font-weight: 400; }
.feedback-input, .feedback-textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff;
}
.feedback-textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.feedback-input:focus, .feedback-textarea:focus {
  outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--green-surface);
}
.feedback-char-count {
  display: block; text-align: right; font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem;
}
.feedback-char-count.is-warning { color: #9a5b00; }
.feedback-char-count.is-error { color: #a32020; }
.feedback-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.85rem 1rem; font-size: 1rem; border-radius: 10px;
}
.feedback-empty {
  text-align: center; padding: 2rem 1rem; color: var(--muted);
}
.feedback-empty__icon {
  display: inline-flex; width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-surface); color: var(--green-deep);
  align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
.feedback-thread { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.feedback-thread__item {
  padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb;
}
.feedback-thread__item--new { border-color: #f0d4a8; background: #fffbf5; }
.feedback-thread__item--resolved { border-color: #c5e6d0; }
.feedback-thread__head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.feedback-thread__cat {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 700; color: var(--green-deep);
}
.feedback-thread__subject { margin: 0 0 0.35rem; font-size: 1rem; }
.feedback-thread__message { margin: 0 0 0.5rem; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.feedback-thread__meta {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted); margin: 0;
}
.feedback-thread__pending { margin: 0.5rem 0 0; font-size: 0.82rem; }
.feedback-thread__reply {
  margin-top: 0.75rem; padding: 0.85rem; background: var(--green-surface);
  border-radius: 10px; border-left: 3px solid var(--green-deep);
}
.feedback-thread__reply-label {
  display: flex; align-items: center; gap: 0.35rem;
  font-weight: 700; font-size: 0.82rem; color: var(--green-deep); margin-bottom: 0.35rem;
}
.feedback-thread__reply p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.feedback-admin-toolbar { flex-wrap: wrap; gap: 0.75rem; }
.feedback-filter-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.feedback-filter-pills .lang-pill.is-active {
  background: var(--green-deep); border-color: var(--green-deep); color: #fff;
}
.feedback-admin-detail__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.feedback-admin-detail__head h2 { margin: 0.5rem 0 0.25rem; }
.feedback-admin-detail__meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 1rem; font-size: 0.88rem;
}
.feedback-admin-detail__subject { margin: 0 0 0.75rem; font-size: 1.1rem; }
.feedback-admin-detail__message {
  padding: 1rem 1.1rem; background: #f6f8f7; border-radius: 12px;
  border: 1px solid var(--line); line-height: 1.6; margin-bottom: 1.25rem;
  white-space: pre-wrap; word-break: break-word;
}
.feedback-admin-detail__actions { gap: 0.5rem; }
.feedback-table-cat { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.feedback-table-message { max-width: 280px; }
.feedback-row--new { background: #fffbf5; }

.booking-list__item--confirmed { border-left: 3px solid var(--green-accent); padding-left: 0.5rem; }
.lesson-list__item.is-locked { opacity: 0.65; }
/* ——— Certificates hub ——— */
.cert-hub-stats { margin-bottom: 1.25rem; }
.admin-cert-stats { margin-top: 0; }
.cert-roadmap-panel { margin-bottom: 1.25rem; }
.cert-roadmap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.cert-roadmap__item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.cert-roadmap__item--earned { border-color: rgba(46, 125, 50, 0.35); background: var(--green-surface); }
.cert-roadmap__item--ready { border-color: rgba(201, 162, 39, 0.45); }
.cert-roadmap__marker {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: var(--muted);
}
.cert-roadmap__item--earned .cert-roadmap__marker { background: var(--green-deep); color: #fff; }
.cert-roadmap__item--ready .cert-roadmap__marker { background: #fff8e6; color: var(--gold-deep); }
.cert-roadmap__num { font-weight: 700; font-size: 0.95rem; }
.cert-roadmap__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.cert-roadmap__desc { margin: 0 0 0.35rem; font-size: 0.9rem; }
.cert-roadmap__step { margin: 0; }
.cert-roadmap__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.65rem; }
.cert-type-badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--green-surface); color: var(--green-deep);
}
.cert-type-badge--sm { font-size: 0.72rem; }
.cert-type-badge--theory { background: #e8f4ec; color: var(--green-deep); }
.cert-type-badge--practical { background: #e8f0fa; color: #1a4d7a; }
.cert-type-badge--full { background: #fdf6e3; color: #8a6d12; }
.badge--muted { background: var(--line); color: var(--muted); }
.cert-empty-panel { text-align: center; padding: 2.5rem 1.5rem; }
.cert-empty-panel__icon { color: var(--gold); margin-bottom: 1rem; }
.cert-grid--premium { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cert-card--premium {
  position: relative; overflow: hidden; padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(165deg, #fffef9 0%, var(--paper) 45%);
}
.cert-card__ribbon {
  position: absolute; top: 0; right: 0; width: 4rem; height: 4rem;
  background: linear-gradient(135deg, transparent 50%, var(--gold) 50%);
  opacity: 0.35;
}
.cert-card__top { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.75rem; }
.cert-card__name { margin: 0 0 0.25rem; font-family: var(--font-serif); font-size: 1.15rem; color: var(--green-deep); }
.cert-card__course { margin: 0 0 0.75rem; font-size: 0.88rem; }
.cert-card__meta { margin: 0 0 1rem; display: grid; gap: 0.65rem; }
.cert-card__meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.cert-card__meta dd { margin: 0.15rem 0 0; font-weight: 600; }
.cert-serial { font-size: 0.82rem; word-break: break-all; cursor: pointer; }
.cert-card__actions { display: flex; flex-direction: column; gap: 0.45rem; }
.licence-pill--cert { font-size: 1rem; }
.licence-pill--tiny { font-size: 0.7rem; padding: 0.1rem 0.4rem; }

/* Print certificate */
.cert-print-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.25rem; max-width: 900px;
}
.certificate-doc { max-width: 900px; margin: 0 auto 2rem; }
.certificate-doc--premium .certificate-doc__frame {
  border: 4px double var(--gold);
  padding: 6px;
  background: linear-gradient(145deg, #c9a227, #f5e6a8, #c9a227);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.12);
}
.certificate-doc__inner {
  position: relative; padding: 2.5rem 2.25rem 2rem; text-align: center;
  background: #fffef8; overflow: hidden;
}
.certificate-doc__watermark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 5rem; font-weight: 700;
  color: rgba(46, 125, 50, 0.04); letter-spacing: 0.2em; pointer-events: none;
  transform: rotate(-18deg); user-select: none;
}
.certificate-doc__logo { margin-bottom: 0.5rem; }
.certificate-doc__eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold-deep);
  font-size: 0.72rem; font-weight: 700; margin: 0;
}
.certificate-doc__school { margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--muted); }
.certificate-doc__seal {
  width: 4.5rem; height: 4.5rem; margin: 1.25rem auto 0.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green-surface), #fff);
  border: 2px solid var(--gold); color: var(--green-deep);
}
.certificate-doc__type {
  font-family: var(--font-serif); font-size: 1.35rem; color: var(--green-deep);
  margin: 0 0 0.5rem; font-weight: 700;
}
.certificate-doc__lead { margin: 0.5rem 0 0.25rem; font-size: 1rem; color: var(--muted); }
.certificate-doc__name {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 5vw, 2.35rem);
  color: var(--green-deep); margin: 0.35rem 0 0.75rem; font-weight: 700;
}
.certificate-doc__course { margin: 0 0 0.5rem; font-size: 1.05rem; }
.certificate-doc__class { margin: 0 0 0.75rem; }
.certificate-doc__desc { max-width: 32rem; margin: 0 auto 1.25rem; font-size: 0.9rem; }
.certificate-doc__meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 28rem;
  margin: 0 auto 1.5rem; text-align: left;
}
.certificate-doc__meta-label {
  display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 0.2rem;
}
.certificate-doc__verify {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.25rem; margin: 1.5rem 0; padding: 1rem; background: rgba(255,255,255,0.7);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.certificate-doc__verify-text { text-align: left; max-width: 16rem; }
.certificate-doc__verify-url { display: block; font-size: 0.68rem; word-break: break-all; margin: 0.35rem 0; }
.certificate-doc__sign {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem;
  max-width: 28rem; margin-left: auto; margin-right: auto;
}
.certificate-doc__line { width: 100%; max-width: 180px; height: 1px; background: var(--ink); margin: 0 auto 0.4rem; }
.certificate-doc__sign p { margin: 0; font-size: 0.82rem; }

/* Public verify */
.verify-page { max-width: 520px; margin: 0 auto; }
.verify-page__hero { text-align: center; margin-bottom: 1rem; }
.verify-page__icon { color: var(--gold); margin-bottom: 0.75rem; }
.verify-page__form-panel { margin-bottom: 1rem; }
.verify-page__hint { margin: 1rem 0 0; font-size: 0.88rem; text-align: center; }
.verify-result { text-align: center; }
.verify-result__icon { color: var(--green-deep); margin-bottom: 0.75rem; }
.verify-result__icon--bad { color: #a32020; }
.verify-result__details {
  text-align: left; max-width: 22rem; margin: 1rem auto;
  display: grid; gap: 0.75rem;
}
.verify-result__details dt { font-size: 0.72rem; text-transform: uppercase; color: var(--muted); margin: 0; }
.verify-result__details dd { margin: 0.2rem 0 0; }
.verify-result__brand { margin: 1.25rem 0 0; font-size: 0.85rem; }
.receipt-doc, .receipt-table { width: 100%; max-width: 640px; margin: 0 auto 1rem; }
.receipt-table th { text-align: left; padding: 0.35rem 0.75rem 0.35rem 0; color: var(--muted); }
.verify-result--valid { border: 1px solid rgba(46, 125, 50, 0.25); }
.verify-result--invalid { border: 1px solid #e8b4b0; background: #fdecea; }

/* Certificate print guide */
.cert-print-guide { margin-bottom: 1.25rem; }
.cert-print-guide__summary {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-size: 1rem; padding: 0.25rem 0; list-style: none;
}
.cert-print-guide__summary::-webkit-details-marker { display: none; }
.cert-print-guide__body { padding-top: 1rem; }
.cert-print-guide__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem;
}
@media (max-width: 700px) { .cert-print-guide__grid { grid-template-columns: 1fr; } }
.cert-print-guide__list { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; }
.cert-print-guide__list--mono { list-style: none; padding-left: 0; }
.cert-print-guide__list--mono li { margin-bottom: 0.5rem; word-break: break-all; }
.cert-print-guide__checklist { margin: 0; padding-left: 1.25rem; font-size: 0.9rem; }
.cert-print-guide__checklist a { font-weight: 600; }

/* Bookings admin */
.booking-status {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-transform: capitalize;
}
.booking-status--pending { background: #fff3e0; color: #b45309; }
.booking-status--confirmed { background: #e3f2fd; color: #1565c0; }
.booking-status--completed { background: var(--green-surface); color: var(--green-deep); }
.booking-status--cancelled { background: #fdecea; color: #a32020; }
.booking-status--no_show { background: var(--line); color: var(--muted); }
.booking-row--pending { background: #fffdf8; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.admin-booking-stats { margin-bottom: 1rem; }

/* Activity feed */
.admin-activity-stats { margin-bottom: 1rem; }
.activity-feed { list-style: none; margin: 0; padding: 0; }
.activity-feed__item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem; align-items: start;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.activity-feed__item:last-child { border-bottom: none; }
.activity-feed__icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-surface); color: var(--green-deep);
}
.activity-feed__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.activity-feed__badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); background: var(--line); padding: 0.1rem 0.4rem; border-radius: 4px;
}
.activity-feed__sub { margin: 0.2rem 0 0.15rem; font-size: 0.88rem; }
.activity-feed__time { color: var(--muted); font-size: 0.78rem; }
.quiz-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 1rem; }
.quiz-class-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
  padding: 1.25rem 1rem; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.quiz-class-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow); }
.quiz-class-card__letter {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--green-deep);
  width: 3rem; height: 3rem; line-height: 3rem; border-radius: 50%; background: var(--green-surface);
}
.quiz-pick-list { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1rem; }
.quiz-pick-card {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
.quiz-pick-card:hover { border-color: var(--green-mid); }
.panel--highlight { border-left: 4px solid var(--orange); }
.quiz-breadcrumb { margin-bottom: 0.75rem; font-size: 0.92rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Student dashboard */
.student-hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.student-hero__eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.25rem; }
.student-hero__class { margin: 0.5rem 0 0; }
.licence-pill {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: 99px;
  background: var(--green-deep); color: #fff; font-weight: 700; font-size: 0.82rem;
}
.licence-pill--card { background: var(--green-surface); color: var(--green-deep); margin-bottom: 0.5rem; }
.student-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 768px) { .student-dashboard-grid { grid-template-columns: 1fr; } }
.progress-bar--lg { height: 12px; margin: 0.75rem 0; }
.progress-bar--thin { height: 5px; margin: 0.35rem 0; }
.student-grade-panel__pct { font-size: 1.75rem; font-weight: 700; font-family: var(--font-serif); color: var(--green-deep); margin: 0.25rem 0; }
.grade-breakdown { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.grade-breakdown__row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.9rem; }
.text-success { color: var(--green-mid); }
.student-eligible { color: var(--green-deep); font-weight: 600; margin-top: 0.75rem; }
.module-progress-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.module-progress-list__item { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.module-progress-list__item:last-child { border-bottom: none; }
.module-progress-list__head { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.student-quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.quick-link-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
  min-width: 0; overflow: hidden;
  padding: 1rem 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.15s;
}
.quick-link-card strong,
.quick-link-card small {
  display: block; width: 100%; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quick-link-card small { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.quick-link-card:hover { transform: translateY(-2px); border-color: var(--green-mid); }
.quick-link-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 12px;
  background: var(--green-surface); color: var(--green-deep);
}
.quick-link-card__icon .icon { width: 1.35rem; height: 1.35rem; }
.panel-grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 768px) { .panel-grid--2 { grid-template-columns: 1fr; } }
.activity-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: none; }
.activity-list small { display: block; }
.student-complete-banner { text-align: center; }
.course-card--primary { border-color: var(--green-mid); box-shadow: 0 0 0 2px var(--green-surface); }
.course-card__tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--orange); }
.course-card__desc { font-size: 0.9rem; color: var(--muted); margin: 0.5rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.82rem; color: var(--muted); }
.course-card__grade { font-weight: 700; color: var(--green-deep); }
.profile-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 0; }
.profile-dl dt { font-weight: 600; color: var(--muted); margin: 0; }
.profile-dl dd { margin: 0; }
.profile-stats-list { list-style: none; padding: 0; margin: 0; }
.profile-stats-list li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

/* Profile page */
.profile-hero {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--green-surface) 0%, var(--paper) 55%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.profile-hero__main { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.profile-hero__text h1 { margin: 0.15rem 0 0.35rem; }
.profile-hero__email { margin: 0; font-size: 0.95rem; }
.profile-hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.65rem; }
.profile-hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.profile-avatar {
  flex-shrink: 0;
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: #fff; background: var(--green-deep);
  box-shadow: 0 4px 14px rgba(0, 60, 40, 0.2);
  letter-spacing: 0.04em;
}
.profile-avatar--photo {
  background: #fff;
  border: 3px solid var(--green-surface-strong, #dce8dc);
  overflow: hidden;
  padding: 0;
}
.profile-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-panel--form { border-left: 4px solid var(--green-mid); }
.profile-edit-form { max-width: 28rem; }
.profile-photo-upload { margin-bottom: 0.5rem; }
.profile-photo-upload__preview {
  margin: 0.5rem 0 0.75rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #f8f9fa;
}
.profile-photo-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-upload input[type="file"] {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}
.required-mark { color: #c62828; font-weight: 700; }
.profile-role-tag {
  display: inline-block; padding: 0.22rem 0.6rem; border-radius: 99px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}
.profile-stat-grid { margin-bottom: 1.25rem; }
.profile-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-panel__head { margin-bottom: 1.15rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.profile-panel__head h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.profile-panel__head p { margin: 0; font-size: 0.88rem; }
.profile-panel--accent { border-left: 4px solid var(--green-mid); }
.profile-info-list { list-style: none; padding: 0; margin: 0; }
.profile-info-list__item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.profile-info-list__item:last-child { border-bottom: none; padding-bottom: 0; }
.profile-info-list__item:first-child { padding-top: 0; }
.profile-info-list__icon {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--green-deep);
  background: var(--green-surface);
}
.profile-info-list__label {
  display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.15rem;
}
.profile-info-list__item strong { font-size: 1rem; font-weight: 600; color: var(--ink); }
.profile-info-list__item a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.profile-info-list__item a:hover { text-decoration: underline; }
.profile-role-desc { font-size: 1.35rem; font-weight: 700; font-family: var(--font-serif); color: var(--green-deep); margin: 0 0 0.5rem; }
.profile-quick-links { margin-top: 0; }

/* Student courses & lessons */
.section-title { font-family: var(--font-serif); color: var(--ink); margin: 1.5rem 0 0.75rem; }
.course-hero { border-left: 4px solid var(--green-mid); }
.course-hero__top { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.course-hero__desc { max-width: 60ch; }
.course-hero__stats { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0.75rem 0; font-size: 0.92rem; }
.course-hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.learning-path-overview { list-style: none; padding: 0; margin: 0; counter-reset: path; }
.learning-path-overview li {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.learning-path-overview li:last-child { border-bottom: none; }
.learning-path-overview__n {
  flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--green-surface); color: var(--green-deep); font-weight: 700;
  display: grid; place-items: center; font-size: 0.85rem;
}
.course-page-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.course-page-head__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.5rem; font-size: 0.92rem; }
.continue-card--compact { padding: 1rem 1.25rem; margin-bottom: 1rem; }
.grade-strip {
  display: flex; flex-wrap: wrap; gap: 1rem; padding: 0.75rem 1rem; margin-bottom: 1.25rem;
  background: var(--green-surface); border-radius: var(--radius); font-size: 0.88rem;
}
.grade-strip__ok { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--green-deep); }
.course-modules { display: flex; flex-direction: column; gap: 1.25rem; }
.module-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.module-card__title { display: flex; gap: 1rem; align-items: flex-start; }
.module-card__title h2 { margin: 0; font-size: 1.2rem; }
.module-card__num {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--green-deep); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 1rem;
}
.module-card__progress-ring {
  flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: conic-gradient(var(--green-accent) calc(var(--pct) * 1%), var(--line) 0);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: var(--green-deep);
}
.module-card__progress-ring span {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center;
}
.lesson-timeline { list-style: none; padding: 0; margin: 0; }
.lesson-step {
  display: flex; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.lesson-step:last-child { border-bottom: none; }
.lesson-step--current { background: var(--green-surface); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: 8px; }
/* Locked topics — silver/faint look; titles stay readable */
.lesson-step--locked {
  background: linear-gradient(90deg, #f8f9fa 0%, #fafbfc 100%);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 8px;
}
.lesson-step--locked .lesson-step__marker {
  background: #eceff1;
  color: #78909c;
  border: 1px solid #cfd8dc;
}
.lesson-step--locked .lesson-step__title--locked {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #455a64;
  font-weight: 600;
  opacity: 1;
}
.lesson-step--locked .lesson-step__title--locked .icon {
  flex-shrink: 0;
  color: #90a4ae;
}
.lesson-step--locked .lesson-step__dur,
.lesson-step--locked .lesson-step__media {
  color: #90a4ae;
  opacity: 0.85;
}
.lesson-step--locked .lesson-step__hint {
  color: #90a4ae;
  font-size: 0.82rem;
}
.lesson-step--payment-lock {
  background: linear-gradient(90deg, #fafafa 0%, #f5f5f5 100%);
}
.lesson-step--payment-lock .lesson-step__marker { background: #eceff1; color: #78909c; border: 1px solid #cfd8dc; }
.lesson-step--quiz-lock .lesson-step__marker { background: #f3f4f6; color: #6b7280; }
.lesson-step--module-lock .lesson-step__marker { background: #eceff1; color: #78909c; border: 1px solid #cfd8dc; }
.module-card__lock-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lesson-step--done .lesson-step__marker { background: var(--green-surface); color: var(--green-deep); }
/* Whole module locked (payment tier) — faint panel, module title still clear */
.module-card--locked {
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
  border-color: #e0e0e0;
  box-shadow: none;
}
.module-card--locked .module-card__head h2,
.module-card--locked .module-card__title .muted {
  color: var(--ink);
  opacity: 1;
}
.module-card--locked .module-card__icon,
.module-card--locked .module-card__num,
.module-card--locked .module-card__progress-ring {
  opacity: 0.55;
  filter: grayscale(0.35);
}
.module-card--locked .lesson-step--locked {
  background: transparent;
}
.module-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 10px;
  background: var(--green-surface); color: var(--green-deep); margin-right: 0.5rem;
}
.module-card__head .module-card__title { display: flex; align-items: flex-start; gap: 0.5rem; }
.module-card__num {
  flex-shrink: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--green-deep); color: #fff; font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center; margin-top: 0.15rem;
}
.student-eligible { display: inline-flex; align-items: center; gap: 0.4rem; }
.muted .icon { vertical-align: -0.2em; margin-right: 0.2rem; }
.final-exam-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #c9a227); color: var(--green-deep);
}
.final-exam-card__icon .icon { width: 1.65rem; height: 1.65rem; }
.cert-card__icon { display: inline-flex; color: var(--gold); }
.cert-card__icon .icon { width: 2rem; height: 2rem; }
.lesson-step__marker {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--line); color: var(--muted);
  display: grid; place-items: center;
}
.lesson-step__body { flex: 1; min-width: 0; }
.lesson-step__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.lesson-step__title { font-weight: 600; text-decoration: none; color: var(--green-deep); }
.lesson-step__title--locked { color: #455a64; }
.lesson-step__dur { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.lesson-step__hint { margin: 0.35rem 0 0; font-size: 0.85rem; }
.lesson-step__actions { margin-top: 0.5rem; }
.module-card__exam { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.final-exam-card {
  display: flex; gap: 1.25rem; align-items: flex-start; border: 2px solid var(--gold);
  background: linear-gradient(135deg, #fffef8, var(--paper));
}
.final-exam-card__icon { font-size: 2.5rem; line-height: 1; }
.lesson-view__head-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.lesson-view__module { margin: 0 0 0.25rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lesson-view__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lesson-view__content { margin-bottom: 1rem; }
.lesson-nav-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.lesson-nav-link { font-size: 0.88rem; font-weight: 600; text-decoration: none; max-width: 45%; }
.lesson-nav-link--prev { text-align: left; }
.lesson-nav-link--next { text-align: right; margin-left: auto; }
.lesson-view__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.lesson-locked { text-align: center; padding: 2rem; }
.quiz-breadcrumb a { text-decoration: none; }
.lesson-editor-lang { margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.lesson-editor-lang h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.lesson-editor-doc { margin-bottom: 1rem; }
.lesson-editor-doc input[type="file"] { margin-top: 0.35rem; }
.tox-tinymce { border-radius: var(--radius) !important; border-color: var(--line) !important; }
.lesson-document {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #f8faf9 0%, #fff 12%);
}
.lesson-document__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--green-surface);
}
.lesson-document__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--green-deep);
}
.lesson-document__filename { margin: 0.2rem 0 0; font-size: 0.8rem; }
.lesson-document__fallback { font-size: 0.85rem; margin: 0.35rem 0 0; }
.lesson-document__toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.lesson-document__viewer {
  padding: 0.75rem 1rem 1rem;
  background: #e8ecea;
}
.lesson-document__embed,
.lesson-document__iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  height: min(72vh, 720px);
  border: none;
  border-radius: 8px;
  background: #525659;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.lesson-document__viewer object { width: 100%; }
.lesson-document__hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  text-align: center;
}
.lesson-document__viewer--office {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

/* Native PDF iframe reader */
.lesson-pdf-reader { width: 100%; }
.lesson-pdf-reader__loading {
  margin: 1.5rem auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
#pdf-idm-hint { margin-top: 0.5rem; font-size: 0.78rem; }
.lesson-pdf-reader__iframe {
  display: block;
  width: 100%;
  min-height: min(72vh, 720px);
  height: 70vh;
  border: none;
  border-radius: 8px;
  background: #525659;
}
.lesson-pdf-reader__pages {
  max-height: min(75vh, 820px);
  overflow-y: auto;
  padding: 0.75rem;
  background: #525659;
  border-radius: 8px;
}
.lesson-pdf-page {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.85rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  background: #fff;
}
.lesson-pdf-page:last-child { margin-bottom: 0; }
.lesson-pdf-reader__fallback {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff8f0;
  border: 1px solid #f0d8c8;
  border-radius: 8px;
  text-align: center;
}
.lesson-pdf-reader__fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.lesson-step__media { display: inline-flex; gap: 0.25rem; align-items: center; margin-left: 0.35rem; vertical-align: middle; }
.lesson-body.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.lesson-body.prose th, .lesson-body.prose td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; }
@media print {
  .no-print, .lms-sidebar, .lms-topbar, .btn, .cert-print-toolbar, .flash { display: none !important; }
  .lms-main { margin: 0 !important; }
  .lms-content { padding: 0 !important; max-width: none !important; }
  .certificate-doc { max-width: none; margin: 0; }
  .certificate-doc__frame { box-shadow: none; }
  .certificate-doc__inner { padding: 2rem 1.5rem; }
}

/* Admin panel */
.admin-hero {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--green-surface) 0%, var(--paper) 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.admin-hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.admin-tab-nav { margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab-badge {
  display: inline-block; min-width: 1.25rem; padding: 0.1rem 0.4rem; margin-left: 0.35rem;
  border-radius: 99px; background: var(--orange); color: #fff; font-size: 0.7rem; font-weight: 700;
}
.admin-alert-banner { flex-wrap: wrap; gap: 0.75rem; }
.admin-stat-grid { margin-bottom: 1.25rem; }
.stat-card--highlight { border-color: var(--green-mid); background: var(--green-surface); }
.stat-card--revenue .stat-card__value { font-size: 1.35rem; }
.admin-modules-panel { margin-bottom: 1.25rem; }
.admin-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
}
.admin-module-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.admin-module-card:hover {
  transform: translateY(-1px);
  border-color: var(--green-mid);
}
.admin-module-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: var(--green-surface);
  color: var(--green-deep);
  flex-shrink: 0;
}
.admin-module-card__body { min-width: 0; flex: 1; }
.admin-module-card__body strong,
.admin-module-card__body small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-module-card .badge { margin-left: auto; }
.admin-overview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .admin-overview-grid { grid-template-columns: 1fr; } }
.admin-mini-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.admin-mini-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.admin-mini-list li:last-child { border-bottom: none; }
.admin-mini-list a { text-decoration: none; color: inherit; }
.admin-mini-list a:hover strong { color: var(--green-deep); }
.admin-course-snapshot {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1rem;
}
.admin-course-chip {
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); display: flex; flex-direction: column; gap: 0.25rem;
}
.admin-quick-links { margin-top: 0.5rem; }
.admin-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; padding: 1rem 1.15rem;
}
.admin-search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; flex: 1; }
.admin-search-form input[type="search"] { flex: 1; min-width: 180px; max-width: 280px; }
.admin-toolbar__count { margin: 0; white-space: nowrap; }
.admin-toolbar__hint { margin: 0.5rem 0 0; font-size: 0.85rem; width: 100%; }
.admin-table-panel { padding: 0; overflow: hidden; }
.admin-table-panel .table-scroll { overflow-x: auto; }
.admin-data-table { margin: 0; }
.admin-data-table td, .admin-data-table th { padding: 0.75rem 1rem; vertical-align: middle; }
.admin-empty { padding: 1.5rem; text-align: center; }
.admin-payment-methods-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 420px);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .admin-payment-methods-layout { grid-template-columns: 1fr; }
}
.admin-payment-methods-mini li { align-items: flex-start; }
.admin-payment-method-form { margin: 0; }
.admin-payment-method-form__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.payment-method-hints {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-surface);
}
.payment-method-hint p { margin: 0.25rem 0; }
.payment-method-hint p:first-child { margin-top: 0; }
.payment-method-hint p:last-child { margin-bottom: 0; }
.admin-breadcrumb { margin: 0 0 1rem; font-size: 0.92rem; }
.admin-breadcrumb a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.admin-student-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.admin-student-hero__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-enrollment-list { list-style: none; padding: 0; margin: 0; }
.admin-enrollment-list__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.admin-enrollment-list__item:last-child { border-bottom: none; }
.admin-enrollment-list__item > div { flex: 1; min-width: 160px; }
.admin-grade-pill {
  font-weight: 700; color: var(--green-deep); font-family: var(--font-serif); font-size: 1.1rem;
}
.admin-course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.admin-course-card h3 { margin: 0.5rem 0 0.25rem; font-size: 1.1rem; }
.admin-course-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.admin-course-card__slug { font-size: 0.8rem; margin: 0; }
.admin-course-card__desc {
  font-size: 0.88rem; color: var(--muted); margin: 0.5rem 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.admin-course-card__stats {
  list-style: none; padding: 0; margin: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--muted);
}
.admin-course-card__stats strong { color: var(--green-deep); }
.admin-course-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.admin-layout-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 900px) { .admin-layout-split { grid-template-columns: 1fr; } }

/* —— Admin announcements compose —— */
.admin-announce-compose {
  border-top: 3px solid var(--green-primary);
  overflow: hidden;
}
.admin-compose-head {
  display: flex; align-items: flex-start; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.admin-compose-head__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-surface) 0%, #fff 100%);
  color: var(--green-deep);
  border: 1px solid var(--green-surface-strong);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.1);
}
.admin-compose-head h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.admin-compose-head p { margin: 0; font-size: 0.88rem; line-height: 1.45; }
.admin-announce-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-form-section {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--page-bg) 100%);
}
.admin-form-section__title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}
.admin-form-grid-2 { gap: 0.85rem 1rem; margin: 0; }
.admin-field { display: block; margin: 0; }
.admin-field--full { grid-column: 1 / -1; }
.admin-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}
.admin-form-section--settings { background: var(--green-surface); border-color: var(--green-surface-strong); }
.admin-form-settings-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 640px) { .admin-form-settings-grid { grid-template-columns: 1fr; } }
.admin-select { cursor: pointer; }
.admin-toggle-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin: 0; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-toggle-card:hover { border-color: var(--green-mid); }
.admin-toggle-card input { margin-top: 0.2rem; accent-color: var(--green-primary); flex-shrink: 0; }
.admin-toggle-card__box { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-toggle-card__box strong { font-size: 0.9rem; color: var(--ink); }
.admin-toggle-card__box small { font-size: 0.78rem; line-height: 1.35; }
.admin-form-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  padding-top: 0.25rem;
}
.admin-form-actions .btn-primary { min-width: 180px; }
.admin-announce-list-panel .profile-panel__head { margin-bottom: 1rem; }
.admin-empty-state {
  text-align: center; padding: 2rem 1rem;
  border: 1px dashed var(--line); border-radius: 12px;
  background: var(--page-bg);
}
.admin-empty-state__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-surface); color: var(--green-deep);
  margin-bottom: 0.75rem;
}
.admin-announce-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.admin-announce-card {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-announce-card:hover { border-color: var(--green-surface-strong); box-shadow: var(--shadow); }
.admin-announce-card.is-live { border-left: 4px solid var(--green-primary); }
.admin-announce-card__main { flex: 1; min-width: 220px; }
.admin-announce-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.admin-announce-card__head strong { font-size: 0.98rem; line-height: 1.35; }
.admin-announce-card__meta { display: block; margin-top: 0.45rem; font-size: 0.78rem; }
.admin-announce-card__actions { align-self: center; }
.admin-announce-list__item {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.admin-announce-preview { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.45; }
.admin-bar-chart { list-style: none; padding: 0; margin: 0; }
.admin-bar-chart li { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 0.65rem; align-items: center; padding: 0.4rem 0; }
.admin-bar-chart__track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.admin-bar-chart__fill { display: block; height: 100%; background: var(--green-deep); border-radius: 99px; }
.admin-bar-chart__fill--alt { background: var(--orange); }
.admin-bar-chart__label { font-size: 0.82rem; font-weight: 600; }
.admin-bar-chart__value { font-size: 0.85rem; white-space: nowrap; }
.admin-password-form { max-width: 320px; }
.student-announcements { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.25rem; }
.student-announcement { align-items: flex-start; }

/* —— Student portal UI (Ignite-style learner dashboard) —— */
.lms-app--student-ui .lms-sidebar--portal {
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 16px rgba(46, 125, 50, 0.04);
}
.lms-app--student-ui .lms-sidebar--portal .lms-brand { color: var(--green-deep); margin-bottom: 1.5rem; }
.lms-app--student-ui .lms-sidebar--portal .lms-brand__mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-surface); color: var(--green-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.lms-app--student-ui .lms-sidebar--portal .lms-brand__mark--logo {
  background: transparent;
  border: none;
  border-radius: 12px;
}
.lms-app--student-ui .lms-sidebar--portal .lms-brand__text small {
  color: var(--muted); opacity: 1; text-transform: none; letter-spacing: 0.02em; font-size: 0.72rem;
}
.lms-app--student-ui .lms-sidebar--portal .lms-nav__section {
  color: var(--muted); margin-top: 0.25rem;
}
.lms-app--student-ui .lms-sidebar--portal .lms-nav__link {
  color: var(--ink); padding: 0.7rem 0.85rem; border-radius: 10px; gap: 0.65rem;
}
.lms-app--student-ui .lms-sidebar--portal .lms-nav__link:hover {
  background: #f3f6f4; color: var(--green-deep);
}
.lms-app--student-ui .lms-sidebar--portal .lms-nav__link.is-active {
  background: var(--green-surface); color: var(--green-deep);
  box-shadow: none; font-weight: 600;
}
.lms-app--student-ui .lms-sidebar--portal .lms-nav__icon { color: var(--green-deep); opacity: 0.85; }
.lms-app--student-ui .lms-sidebar--portal .lms-sidebar__foot {
  border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto;
}
.lms-app--student-ui .lms-sidebar__marketing {
  display: block; margin-top: 0.65rem; font-size: 0.78rem; color: var(--muted); text-decoration: none;
}
.lms-app--student-ui .lms-sidebar__marketing:hover { color: var(--green-deep); }
.lms-sidebar-user {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem; background: #f6f8f7; border-radius: 12px; margin-bottom: 0.5rem;
}
.lms-sidebar-user__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-primary); color: #fff; font-weight: 700; font-size: 0.82rem;
  display: grid; place-items: center;
}
.lms-sidebar-user__avatar--photo {
  background: #fff;
  border: 2px solid var(--line);
  overflow: hidden;
  padding: 0;
}
.lms-sidebar-user__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lms-sidebar-user__meta { flex: 1; min-width: 0; }
.lms-sidebar-user__name {
  display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lms-sidebar-user__role { font-size: 0.72rem; color: var(--muted); }
.lms-sidebar-user__logout { margin: 0; }
.lms-sidebar-user__logout-btn {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  padding: 0.35rem; border-radius: 8px; display: inline-flex;
}
.lms-sidebar-user__logout-btn:hover { background: #e8ece9; color: var(--green-deep); }

.lms-app--student-ui .lms-main { background: var(--page-bg); }
.lms-app--student-ui .lms-topbar {
  background: var(--page-bg); border-bottom-color: transparent;
}
.lms-app--student-ui .lms-content { max-width: 1100px; padding-top: 1.25rem; }

.learner-dashboard { animation: portal-fade 0.35s ease; }
.learner-dashboard__head { margin-bottom: 1.5rem; }
.learner-dashboard__greeting {
  margin: 0 0 0.35rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  color: var(--ink); font-family: var(--font-serif);
}
.learner-dashboard__sub { margin: 0; color: var(--muted); font-size: 0.95rem; }

.learner-alert {
  display: flex; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap;
  padding: 1rem 1.1rem; border-radius: 12px; margin-bottom: 1rem;
  background: #fff; border: 1px solid var(--line);
}
.learner-alert p { margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--muted); }
.learner-alert--warn { border-color: #f0d4a8; background: #fffbf5; }
.learner-alert--info { border-color: #c5e6d0; background: #f6fcf8; }
.learner-alert .icon { flex-shrink: 0; color: var(--green-deep); margin-top: 0.1rem; }

.learner-program-card {
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.35rem; background: var(--green-surface); border: 1px solid var(--green-surface-strong);
  border-radius: 14px; margin-bottom: 1.25rem; position: relative;
  box-shadow: none;
}
.learner-program-card__icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: #fff; color: var(--green-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.learner-program-card__body { flex: 1; min-width: 200px; }
.learner-program-card__body h2 { margin: 0 0 0.35rem; font-size: 1.15rem; color: var(--ink); }
.learner-program-card__meta { margin: 0 0 0.65rem; color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.learner-program-card__stats {
  display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: var(--muted);
}
.learner-program-card__stats span { display: inline-flex; align-items: center; gap: 0.35rem; }
.learner-program-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.25rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  background: var(--green-success); color: #fff;
}

.learner-continue-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; margin-bottom: 1.5rem;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.06);
}
.learner-continue-banner:hover { transform: translateY(-1px); border-color: var(--green-surface-strong); color: var(--ink); }
.learner-continue-banner--done {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.06);
}
.learner-continue-banner__play {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-primary); color: #fff; display: grid; place-items: center;
}
.learner-continue-banner--done .learner-continue-banner__play { background: var(--green-surface); color: var(--green-deep); }
.learner-continue-banner__label { display: block; font-size: 0.78rem; opacity: 0.9; margin-bottom: 0.15rem; }
.learner-continue-banner strong { display: block; font-size: 1rem; }
.learner-continue-banner small { display: block; opacity: 0.85; margin-top: 0.2rem; }
.learner-continue-banner .icon:last-child { margin-left: auto; opacity: 0.9; }

.learner-section-title { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.learner-course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.15rem;
  margin-bottom: 1.75rem;
}
.learner-course-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(46, 125, 50, 0.05);
  display: flex; flex-direction: column;
}
.learner-course-card__head {
  display: flex; align-items: flex-start; gap: 0.85rem; padding: 1.1rem 1.15rem 0.75rem;
  text-decoration: none; color: inherit;
}
.learner-course-card__head:hover { background: #fafcfb; }
.learner-course-card__icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--green-surface); color: var(--green-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.learner-course-card__titles { flex: 1; min-width: 0; }
.learner-course-card__titles h3 {
  margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; color: var(--ink);
}
.learner-course-card__tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; font-size: 0.75rem; color: var(--muted);
}
.learner-course-card__tags span {
  padding: 0.15rem 0.45rem; background: #f3f6f4; border-radius: 6px;
}
.learner-course-card__head > .icon { flex-shrink: 0; color: var(--muted); margin-top: 0.25rem; }
.learner-course-card__progress { padding: 0 1.15rem 0.85rem; }
.learner-progress-bar {
  height: 8px; background: #e8ece9; border-radius: 99px; overflow: hidden;
}
.learner-progress-bar span {
  display: block; height: 100%; background: var(--green-primary); border-radius: 99px;
  transition: width 0.35s ease;
}
.learner-course-card__progress-meta {
  display: flex; justify-content: space-between; margin-top: 0.45rem;
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
}
.learner-course-card__cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 0 1rem 1rem; padding: 0.75rem 1rem;
  background: var(--green-primary); color: #fff; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: background 0.15s, transform 0.15s;
}
.learner-course-card__cta:hover { background: var(--green-hover); color: #fff; transform: translateY(-1px); }
.learner-course-card__cta-icon {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center;
}

.learner-stats-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem; margin-bottom: 1.5rem;
}
.learner-stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem; text-align: center;
}
.learner-stat-card--highlight { border-color: var(--green-mid); background: var(--green-surface); }
.learner-stat-card__value {
  display: block; font-size: 1.5rem; font-weight: 700; color: var(--green-deep);
  font-family: var(--font-serif);
}
.learner-stat-card__label { font-size: 0.78rem; color: var(--muted); }

.learner-recent-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem;
}
@media (max-width: 768px) {
  .learner-recent-grid { grid-template-columns: 1fr; }
  .learner-course-grid { grid-template-columns: 1fr; }
  .learner-program-card__badge { position: static; margin-top: 0.5rem; align-self: flex-start; }
}
.learner-recent-panel h3 { margin: 0 0 0.85rem; font-size: 1rem; }
.learner-recent-list { list-style: none; padding: 0; margin: 0; }
.learner-recent-list li { border-bottom: 1px solid var(--line); }
.learner-recent-list li:last-child { border-bottom: none; }
.learner-recent-list a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0;
  text-decoration: none; color: inherit;
}
.learner-recent-list a:hover strong { color: var(--green-deep); }
.learner-recent-list__icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--green-surface); color: var(--green-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.learner-recent-list strong { display: block; font-size: 0.9rem; }
.learner-recent-list small { display: block; color: var(--muted); margin-top: 0.15rem; }

