:root {
  --green-980: #08150d;
  --green-950: #0f2417;
  --green-900: #183723;
  --green-850: #1f4a2a;
  --green-800: #2d6a3c;
  --green-700: #3f8a4f;
  --green-500: #79c17e;
  --yellow-500: #f0c529;
  --yellow-400: #f6d55f;
  --yellow-200: #fff1b0;
  --sand-100: #fffdf4;
  --mist: rgba(255, 255, 255, 0.68);
  --mist-strong: rgba(255, 255, 255, 0.82);
  --ink-900: #112015;
  --ink-700: #46604d;
  --line-soft: rgba(24, 55, 35, 0.08);
  --line-mid: rgba(24, 55, 35, 0.14);
  --glow-green: 0 28px 70px rgba(39, 109, 62, 0.18);
  --glow-yellow: 0 24px 60px rgba(240, 197, 41, 0.16);
  --shadow-float: 0 28px 60px rgba(11, 31, 18, 0.12);
  --shadow-soft: 0 18px 40px rgba(11, 31, 18, 0.08);
  --radius-2xl: 34px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 12% 18%, rgba(240, 197, 41, 0.28), transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(63, 138, 79, 0.22), transparent 20%),
    radial-gradient(circle at 78% 72%, rgba(240, 197, 41, 0.18), transparent 24%),
    radial-gradient(circle at 20% 84%, rgba(63, 138, 79, 0.14), transparent 24%),
    linear-gradient(135deg, #f6fbf3 0%, #fffef9 48%, #f7fbf1 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

body::before {
  top: 8%;
  right: -6rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(240, 197, 41, 0.12);
}

body::after {
  left: -4rem;
  bottom: 8%;
  width: 18rem;
  height: 18rem;
  border-radius: 44% 56% 57% 43%;
  background: rgba(79, 145, 91, 0.14);
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px);
  gap: 2rem;
  padding: 2rem;
  align-items: stretch;
}

.login-hero,
.login-card,
.sidebar,
.panel,
.stat-card,
.table-card,
.formation-card,
.training-item {
  position: relative;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-float);
}

.login-hero {
  overflow: hidden;
  border-radius: 40px;
  padding: 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 4rem);
  color: white;
  background:
    linear-gradient(135deg, rgba(11, 31, 18, 0.9), rgba(31, 74, 42, 0.88)),
    linear-gradient(140deg, rgba(240, 197, 41, 0.18), transparent 36%);
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 22rem;
  height: 22rem;
  border-radius: 46% 54% 58% 42%;
  background:
    radial-gradient(circle at 35% 35%, rgba(240, 197, 41, 0.42), transparent 38%),
    radial-gradient(circle at 68% 70%, rgba(255, 255, 255, 0.12), transparent 30%);
  filter: blur(6px);
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0.84;
}

.login-hero h1,
.topbar h1,
.section-header h2,
.panel-heading h3,
.login-card h2,
.formation-card h3,
.formation-card h4 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.login-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  font-size: 1.16rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hero-logo {
  display: block;
  width: clamp(96px, 12vw, 150px);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.18));
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-highlights article {
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-highlights strong,
.stat-card strong {
  display: block;
  font-family: "Montserrat", sans-serif;
}

.hero-highlights strong {
  font-size: 1.18rem;
  margin-bottom: 0.35rem;
}

.hero-highlights span,
.login-card p,
.panel p,
.section-header p,
.stat-card p,
.video-item p,
.video-item small {
  opacity: 0.82;
}

.login-card {
  align-self: center;
  border-radius: 34px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 244, 0.82));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float), var(--glow-yellow);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(315deg, rgba(240, 197, 41, 0.08), transparent 35%);
  pointer-events: none;
}

.card-top,
.brand-block,
.formation-header,
.panel-heading,
.topbar,
.section-header,
.form-actions,
.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100%;
}

.sidebar-footer p {
  margin: 0;
  font-weight: 800;
  word-break: break-word;
}

.card-top {
  margin-bottom: 1.5rem;
}

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--green-900);
  background:
    linear-gradient(145deg, #ffe77d, #f0c529),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--glow-yellow);
}

.login-form,
.data-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
}

label span,
.field-label {
  color: var(--green-900);
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(24, 55, 35, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-900);
  padding: 0.9rem 1rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

input:hover,
select:hover,
textarea:hover {
  background: rgba(255, 255, 255, 0.94);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(63, 138, 79, 0.55);
  box-shadow: 0 0 0 5px rgba(91, 168, 95, 0.12);
  transform: translateY(-1px);
}

.primary-button,
.ghost-button,
.nav-link {
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.primary-button {
  min-height: 54px;
  border-radius: 18px;
  color: white;
  font-weight: 800;
  letter-spacing: 0.01em;
  background:
    linear-gradient(135deg, var(--green-850), var(--green-700));
  box-shadow: 0 18px 36px rgba(40, 104, 57, 0.22);
}

.inline-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.95rem 1.2rem;
  text-decoration: none;
}

.primary-button:hover,
.ghost-button:hover,
.nav-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  color: var(--green-900);
  background: linear-gradient(180deg, rgba(255, 241, 176, 0.9), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.login-hint {
  min-height: 1.2rem;
  margin: 0;
  color: var(--ink-700);
  font-weight: 700;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.sidebar {
  border-radius: 32px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  color: white;
  background:
    linear-gradient(180deg, rgba(10, 26, 17, 0.96), rgba(24, 55, 35, 0.93)),
    linear-gradient(160deg, rgba(240, 197, 41, 0.12), transparent 30%);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(240, 197, 41, 0.12);
  filter: blur(8px);
}

.brand-block {
  align-items: center;
  justify-content: flex-start;
}

.brand-block h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.brand-block p,
.sidebar-footer span {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.side-nav {
  display: grid;
  gap: 0.55rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 50px;
  border-radius: 18px;
  padding: 0 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(240, 197, 41, 0.18), rgba(255, 255, 255, 0.08));
  color: #fff7cb;
  box-shadow: inset 0 0 0 1px rgba(240, 197, 41, 0.18);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  line-height: 1;
}

.nav-link.active .nav-icon {
  background: rgba(240, 197, 41, 0.18);
}

.full-width {
  width: 100%;
}

.main-content {
  padding: 0.25rem 0;
}

.topbar {
  align-items: flex-start;
  padding: 1rem 1rem 1.4rem;
}

.topbar h1 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.pill {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(24, 55, 35, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--green-900);
}

.tag {
  background: rgba(255, 241, 176, 0.78);
  color: var(--green-900);
}

.tag.warning {
  background: rgba(240, 197, 41, 0.2);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.full-screen-section.active {
  min-height: calc(100vh - 170px);
}

.stats-grid,
.panel-grid,
.formation-grid {
  display: grid;
  gap: 1rem;
}

.formation-shell {
  display: grid;
  gap: 1.25rem;
}

.formation-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.report-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.report-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.report-card p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.report-export-button {
  min-width: 180px;
}

.formation-course-card {
  display: grid;
  gap: 1rem;
  padding: 0;
  overflow: hidden;
}

.formation-course-cover {
  position: relative;
  min-height: 170px;
  padding: 1.4rem;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(12, 31, 18, 0.14), rgba(12, 31, 18, 0.34)),
    radial-gradient(circle at top right, rgba(255, 236, 145, 0.5), transparent 34%),
    linear-gradient(135deg, #395b8f, #7f98b7);
}

.formation-course-cover::after {
  content: "";
  position: absolute;
  inset: auto -22px -36px auto;
  width: 132px;
  height: 132px;
  border-radius: 38% 62% 44% 56%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
}

.formation-course-cover.theme-identity {
  background:
    linear-gradient(180deg, rgba(12, 31, 18, 0.12), rgba(12, 31, 18, 0.32)),
    radial-gradient(circle at top right, rgba(255, 224, 127, 0.52), transparent 36%),
    linear-gradient(135deg, #4e5b90, #8fa4c6);
}

.formation-course-cover.theme-basic {
  background:
    linear-gradient(180deg, rgba(12, 31, 18, 0.12), rgba(12, 31, 18, 0.3)),
    radial-gradient(circle at top right, rgba(255, 234, 136, 0.5), transparent 35%),
    linear-gradient(135deg, #93603a, #c08d5a);
}

.formation-course-cover.theme-prayer {
  background:
    linear-gradient(180deg, rgba(12, 31, 18, 0.14), rgba(12, 31, 18, 0.3)),
    radial-gradient(circle at top right, rgba(255, 230, 135, 0.5), transparent 36%),
    linear-gradient(135deg, #526c58, #95a89e);
}

.formation-course-cover-epf1 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(7, 37, 52, 0.18)),
    linear-gradient(135deg, #87d7ef 0%, #57b9dd 28%, #0b889c 62%, #0f6f62 100%);
}

.formation-course-cover-epf1::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.1);
}

.formation-course-cover-epf4 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(59, 25, 58, 0.16)),
    linear-gradient(135deg, #dbe8f7 0%, #c7d7ee 26%, #d8b5c7 58%, #bf6d8e 100%);
}

.formation-course-cover-epf4::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.12);
}

.formation-course-cover-epf3 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(82, 34, 52, 0.18)),
    linear-gradient(135deg, #63c2e2 0%, #89d4ea 16%, #f2d8cf 44%, #e79272 66%, #3b315f 100%);
}

.formation-course-cover-epf3::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.12);
}

.formation-course-cover-fh1 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(118, 62, 127, 0.16)),
    linear-gradient(135deg, #e1c1ee 0%, #d6aee9 34%, #c88ee0 68%, #b673d7 100%);
}

.formation-course-cover-fh1::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.1);
}

.formation-course-cover-fh2 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(61, 146, 122, 0.18)),
    linear-gradient(135deg, #d6f2ea 0%, #b9e7dc 24%, #8fd6c7 54%, #74c7b8 76%, #c8f1e8 100%);
}

.formation-course-cover-fh2::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.1);
}

.formation-course-cover-epf2 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(57, 79, 151, 0.16)),
    linear-gradient(135deg, #d1d7ea 0%, #e8eef7 18%, #fff2bf 36%, #d8dff2 58%, #8f9fd0 100%);
}

.formation-course-cover-epf2::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.12);
}

.formation-course-cover-epf5 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(104, 46, 20, 0.18)),
    linear-gradient(135deg, #5a3f34 0%, #bf8d67 26%, #d8bca9 52%, #d06c43 76%, #ece7f1 100%);
}

.formation-course-cover-epf5::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.1);
}

.formation-course-cover-epf6 {
  min-height: 230px;
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(32, 55, 112, 0.2)),
    linear-gradient(135deg, #08235a 0%, #2c5fa7 24%, #91b4e0 48%, #f2f7ff 72%, #ffffff 100%);
}

.formation-course-cover-epf6::after {
  inset: auto -26px -42px auto;
  width: 156px;
  height: 156px;
  background: rgba(255, 255, 255, 0.12);
}

.epf1-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.epf1-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%);
  opacity: 0.68;
}

.epf1-cover-art::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -12%;
  width: 82%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, rgba(26, 150, 100, 0.45), rgba(0, 98, 90, 0.74));
  transform: rotate(-18deg);
}

.epf4-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.epf4-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 46%);
  opacity: 0.72;
}

.epf4-cover-art::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -12%;
  width: 82%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, rgba(211, 101, 149, 0.48), rgba(180, 69, 116, 0.78));
  transform: rotate(-18deg);
}

.epf3-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.epf3-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 46%);
  opacity: 0.74;
}

.epf3-cover-art::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -12%;
  width: 82%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, rgba(220, 120, 89, 0.5), rgba(68, 49, 98, 0.82));
  transform: rotate(-18deg);
}

.fh1-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.fh1-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 48%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 26%);
}

.fh2-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.fh2-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 48%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 26%);
}

.epf2-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.epf2-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 46%);
  opacity: 0.72;
}

.epf2-cover-art::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -12%;
  width: 82%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, rgba(113, 132, 206, 0.5), rgba(86, 97, 170, 0.82));
  transform: rotate(-18deg);
}

.epf5-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.epf5-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 46%);
  opacity: 0.74;
}

.epf5-cover-art::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -12%;
  width: 82%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, rgba(228, 138, 71, 0.46), rgba(179, 76, 42, 0.82));
  transform: rotate(-18deg);
}

.epf6-cover-art {
  position: relative;
  width: 100%;
  min-height: 230px;
  padding: 1rem 1rem 1.2rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.epf6-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 46%);
  opacity: 0.76;
}

.epf6-cover-art::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -12%;
  width: 82%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, rgba(23, 41, 116, 0.56), rgba(10, 22, 74, 0.9));
  transform: rotate(-18deg);
}

.fh1-cover-top,
.fh1-cover-title,
.fh1-cover-image,
.fh2-cover-top,
.fh2-cover-title,
.fh2-cover-image,
.epf2-cover-badge,
.epf2-cover-copy,
.epf2-cover-emblem,
.epf5-cover-badge,
.epf5-cover-copy,
.epf5-cover-emblem,
.epf6-cover-badge,
.epf6-cover-copy,
.epf6-cover-emblem {
  position: relative;
  z-index: 1;
}

.fh1-cover-top {
  justify-self: center;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(48, 22, 56, 0.92);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.fh2-cover-top {
  justify-self: center;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(25, 62, 57, 0.92);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.fh1-cover-title {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  text-align: center;
  color: #311f35;
}

.fh2-cover-title {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  text-align: center;
  color: #173a34;
}

.fh1-cover-title span,
.fh1-cover-title strong,
.fh1-cover-title small,
.fh2-cover-title span,
.fh2-cover-title strong,
.fh2-cover-title small {
  display: block;
}

.fh1-cover-title span,
.fh1-cover-title small,
.fh2-cover-title span,
.fh2-cover-title small {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.fh1-cover-title span {
  font-size: 0.78rem;
}

.fh2-cover-title span {
  font-size: 0.78rem;
}

.fh1-cover-title strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.fh2-cover-title strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.fh1-cover-title small {
  font-size: 0.72rem;
}

.fh2-cover-title small {
  font-size: 0.72rem;
}

.epf2-cover-badge {
  width: 38px;
  height: 54px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(79, 97, 161, 0.94), rgba(60, 78, 142, 0.98));
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.epf2-cover-copy {
  color: #4b5a86;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
}

.epf2-cover-copy span,
.epf2-cover-copy small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.epf2-cover-copy strong {
  display: block;
  margin-top: 0.1rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.62rem;
  line-height: 1.02;
  font-weight: 500;
}

.epf2-cover-copy small {
  margin-top: 0.08rem;
  color: #495273;
}

.epf5-cover-badge {
  width: 38px;
  height: 54px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(73, 45, 31, 0.96), rgba(58, 34, 24, 0.98));
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.epf5-cover-copy {
  color: #4f2f1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.epf5-cover-copy span,
.epf5-cover-copy small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.epf5-cover-copy strong {
  display: block;
  margin-top: 0.1rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.72rem;
  line-height: 1.02;
  font-weight: 500;
}

.epf5-cover-copy small {
  margin-top: 0.08rem;
  color: #543425;
}

.epf6-cover-badge {
  width: 38px;
  height: 54px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(9, 39, 106, 0.96), rgba(6, 28, 82, 0.98));
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.epf6-cover-copy {
  color: #17346d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
}

.epf6-cover-copy span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.epf6-cover-copy strong {
  display: block;
  margin-top: 0.1rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.72rem;
  line-height: 1.02;
  font-weight: 500;
}

.fh1-cover-image {
  display: grid;
  place-items: end center;
  margin-top: 0.15rem;
}

.fh2-cover-image {
  display: grid;
  place-items: end center;
  margin-top: 0.15rem;
}

.epf2-cover-emblem {
  display: grid;
  justify-content: center;
  margin-top: 0.3rem;
}

.epf5-cover-emblem {
  display: grid;
  justify-content: center;
  margin-top: 0.3rem;
}

.epf6-cover-emblem {
  display: grid;
  justify-content: center;
  margin-top: 0.3rem;
}

.fh1-cover-scene {
  position: relative;
  width: 100%;
  height: 108px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(249, 242, 250, 0.96)),
    linear-gradient(135deg, rgba(143, 91, 160, 0.2), transparent);
  border: 1px solid rgba(102, 55, 117, 0.12);
  box-shadow: var(--shadow-soft);
}

.fh2-cover-scene {
  position: relative;
  width: 100%;
  height: 108px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 250, 247, 0.96)),
    linear-gradient(135deg, rgba(68, 163, 137, 0.2), transparent);
  border: 1px solid rgba(28, 95, 81, 0.12);
  box-shadow: var(--shadow-soft);
}

.fh1-cover-scene::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -10%;
  width: 58%;
  height: 76%;
  background: linear-gradient(180deg, rgba(222, 214, 220, 0.96), rgba(194, 183, 191, 0.98));
  clip-path: polygon(0 100%, 18% 35%, 53% 28%, 68% 0, 100% 0, 100% 100%);
}

.fh1-cover-scene::after {
  content: "";
  position: absolute;
  right: -2%;
  top: -16%;
  width: 44%;
  height: 118%;
  background: radial-gradient(circle at 35% 50%, rgba(224, 216, 212, 0.98) 0 34%, rgba(206, 195, 191, 0.95) 35% 54%, rgba(184, 169, 165, 0.92) 55% 100%);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.fh2-cover-scene::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -10%;
  width: 58%;
  height: 76%;
  background: linear-gradient(180deg, rgba(221, 228, 224, 0.96), rgba(194, 206, 201, 0.98));
  clip-path: polygon(0 100%, 18% 35%, 53% 28%, 68% 0, 100% 0, 100% 100%);
}

.fh2-cover-scene::after {
  content: "";
  position: absolute;
  right: -2%;
  top: -16%;
  width: 44%;
  height: 118%;
  background: radial-gradient(circle at 35% 50%, rgba(229, 223, 217, 0.98) 0 34%, rgba(211, 202, 195, 0.95) 35% 54%, rgba(189, 175, 167, 0.92) 55% 100%);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.epf2-cover-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(84, 108, 198, 0.94), rgba(66, 88, 171, 0.98));
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 30px rgba(46, 58, 112, 0.2);
}

.epf2-cover-dove {
  font-size: 3rem;
  color: rgba(240, 242, 255, 0.96);
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.epf5-cover-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(187, 111, 72, 0.94), rgba(155, 81, 48, 0.98));
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 30px rgba(94, 52, 30, 0.18);
}

.epf5-cover-dove {
  font-size: 3rem;
  color: rgba(255, 239, 232, 0.96);
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.epf6-cover-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(45, 98, 192, 0.94), rgba(15, 58, 143, 0.98));
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 30px rgba(19, 37, 88, 0.2);
}

.epf6-cover-dove {
  font-size: 3rem;
  color: rgba(236, 244, 255, 0.98);
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.epf1-cover-badge,
.epf1-cover-copy,
.epf1-cover-emblem,
.epf4-cover-badge,
.epf4-cover-copy,
.epf4-cover-emblem,
.epf3-cover-badge,
.epf3-cover-copy,
.epf3-cover-emblem {
  position: relative;
  z-index: 1;
}

.epf1-cover-badge {
  width: 38px;
  height: 54px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(10, 104, 116, 0.9), rgba(9, 91, 100, 0.94));
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.epf1-cover-copy {
  color: #15303d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.epf1-cover-copy span {
  display: block;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.epf1-cover-copy strong {
  display: block;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}

.epf4-cover-badge {
  width: 38px;
  height: 54px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(140, 60, 93, 0.92), rgba(116, 39, 73, 0.95));
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.epf4-cover-copy {
  color: #6f3656;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.epf4-cover-copy span {
  display: block;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.epf4-cover-copy strong {
  display: block;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1.02;
  font-weight: 500;
}

.epf3-cover-badge {
  width: 38px;
  height: 54px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(198, 74, 32, 0.96), rgba(171, 61, 25, 0.98));
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.epf3-cover-copy {
  color: #9c552e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.epf3-cover-copy span {
  display: block;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.epf3-cover-copy strong {
  display: block;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.78rem;
  line-height: 1.02;
  font-weight: 500;
}

.epf1-cover-emblem {
  display: grid;
  justify-content: center;
  margin-top: 0.3rem;
}

.epf4-cover-emblem {
  display: grid;
  justify-content: center;
  margin-top: 0.3rem;
}

.epf3-cover-emblem {
  display: grid;
  justify-content: center;
  margin-top: 0.3rem;
}

.epf1-cover-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 131, 138, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(8, 87, 94, 0.9), rgba(9, 88, 76, 0.94));
  border: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 30px rgba(7, 42, 48, 0.2);
}

.epf1-cover-dove {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.14));
}

.epf4-cover-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(191, 117, 146, 0.92), rgba(172, 96, 130, 0.96));
  border: 4px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 30px rgba(88, 42, 67, 0.18);
}

.epf4-cover-dove {
  font-size: 3rem;
  color: rgba(255, 240, 245, 0.96);
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.epf3-cover-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(225, 120, 86, 0.94), rgba(206, 99, 69, 0.98));
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 30px rgba(88, 42, 67, 0.18);
}

.epf3-cover-dove {
  font-size: 3rem;
  color: rgba(255, 242, 236, 0.96);
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.formation-course-badge {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 94px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.formation-course-badge strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.18rem;
  line-height: 1.05;
}

.formation-course-badge span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formation-course-body {
  display: grid;
  gap: 0.9rem;
  padding: 0 1.35rem 1.35rem;
}

.formation-course-label {
  color: var(--ink-700);
  font-size: 0.98rem;
}

.formation-course-card h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  line-height: 1.2;
}

.formation-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.formation-course-actions .primary-button,
.formation-course-actions .ghost-button {
  min-height: 46px;
  padding: 0 1rem;
}

.users-summary-grid {
  margin-bottom: 1rem;
}

.stat-card.compact strong {
  font-size: 1.6rem;
}

.muted-text {
  color: var(--ink-700);
  font-weight: 700;
}

.formation-course-track {
  color: var(--green-900);
  font-weight: 800;
}

.formation-detail-view {
  display: grid;
  gap: 1.25rem;
}

.formation-detail-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 253, 244, 0.8));
  box-shadow: var(--shadow-float);
}

.formation-detail-copy {
  display: grid;
  gap: 0.45rem;
}

.formation-detail-copy h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  letter-spacing: -0.04em;
}

.formation-detail-copy p {
  margin: 0;
  color: var(--ink-700);
}

.formation-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.formation-detail-content {
  display: grid;
  gap: 1rem;
}

.formation-chapter-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow-soft);
}

.formation-chapter-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.formation-chapter-top h4 {
  margin: 0.35rem 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  color: var(--green-900);
}

.formation-chapter-index {
  color: var(--ink-700);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.formation-chapter-summary {
  margin: 0;
  color: var(--ink-700);
}

.formation-topic-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
  color: var(--ink-900);
}

.formation-video-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 208, 0.52), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(240, 197, 41, 0.22);
}

.formation-video-panel h5 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.formation-video-panel p {
  margin: 0;
  color: var(--ink-700);
}

.formation-video-frame {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 18px;
  background: #f5f6f1;
}

.formation-video-placeholder {
  min-height: 200px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(57, 91, 143, 0.12), rgba(192, 141, 90, 0.14)),
    rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(24, 55, 35, 0.18);
  color: var(--ink-700);
}

.formation-comment-box {
  display: grid;
  gap: 0.55rem;
}

.formation-comment-box textarea {
  min-height: 120px;
}

.formation-admin-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.formation-admin-tools .wide {
  grid-column: 1 / -1;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-grid {
  margin-top: 1rem;
  grid-template-columns: 1.2fr 1fr;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.chart-panel {
  min-height: 320px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.embed-panel {
  margin-top: 1rem;
}

.embed-copy {
  margin: 0.6rem 0 1rem;
  color: var(--ink-700);
}

.embed-link {
  text-decoration: none;
}

.embed-frame-wrap {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(24, 55, 35, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.embed-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: white;
}

.donation-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  min-height: calc(100vh - 170px);
}

.donation-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.donation-topbar h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.donation-topbar p {
  margin: 0.35rem 0 0;
  color: var(--ink-700);
}

.donation-notice {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 241, 176, 0.45);
  border: 1px solid rgba(240, 197, 41, 0.22);
  color: var(--green-900);
}

.donation-frame {
  width: 100%;
  min-height: calc(100vh - 250px);
  border: 1px solid rgba(24, 55, 35, 0.1);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.stat-card,
.panel,
.table-card,
.formation-card {
  overflow: hidden;
  border-radius: 28px;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  backdrop-filter: blur(14px);
}

.stat-card::before,
.panel::before,
.table-card::before,
.formation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 30%);
  pointer-events: none;
}

.stat-card span {
  color: var(--ink-700);
  font-weight: 800;
}

.stat-card strong {
  margin-top: 0.6rem;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--green-900);
}

.emphasis-panel {
  background:
    linear-gradient(135deg, rgba(255, 241, 176, 0.42), rgba(255, 255, 255, 0.82)),
    linear-gradient(180deg, rgba(63, 138, 79, 0.08), transparent);
}

.overview-logo {
  display: block;
  width: 112px;
  max-width: 100%;
  height: auto;
  margin: 0.6rem 0 1rem;
}

.chart-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.chart-row {
  display: grid;
  gap: 0.45rem;
}

.chart-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chart-row-top span {
  color: var(--ink-900);
  font-weight: 700;
}

.chart-row-top strong {
  color: var(--green-900);
  font-family: "Montserrat", sans-serif;
}

.chart-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 55, 35, 0.08);
}

.chart-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow-500), var(--green-700));
}

.chart-empty {
  margin: 1rem 0 0;
  color: var(--ink-700);
  font-weight: 700;
}

.status-donut-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
  align-items: center;
  margin-top: 1rem;
}

.status-donut {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#e8efe7 0 100%);
}

.status-donut::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(24, 55, 35, 0.06);
}

.donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.donut-center strong {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  color: var(--green-900);
}

.donut-center span {
  color: var(--ink-700);
  font-weight: 700;
}

.status-legend {
  display: grid;
  gap: 0.75rem;
}

.legend-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.legend-row span {
  color: var(--ink-900);
  font-weight: 700;
}

.legend-row strong {
  font-family: "Montserrat", sans-serif;
  color: var(--green-900);
}

.section-header {
  margin-bottom: 1rem;
  padding: 0.4rem 0.35rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: end;
  gap: 1.35rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.35rem 0 0.15rem;
}

.filter-grid label {
  gap: 0.7rem;
}

.filter-grid input,
.filter-grid select,
.filter-grid textarea {
  min-height: 56px;
  padding: 0.95rem 1rem;
}

.field-help {
  display: block;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.photo-field {
  display: grid;
  gap: 0.8rem;
}

.photo-preview,
.viewer-photo {
  width: 140px;
  height: 140px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(24, 55, 35, 0.12);
  background: rgba(24, 55, 35, 0.04);
}

.viewer-photo {
  width: 180px;
  height: 180px;
}

.table-action-button {
  min-height: 38px;
  border: none;
  border-radius: 12px;
  padding: 0 0.9rem;
  background: rgba(24, 55, 35, 0.08);
  color: var(--green-900);
  font-weight: 800;
  cursor: pointer;
  margin-right: 0.45rem;
}

.table-action-button.danger {
  background: rgba(189, 62, 35, 0.12);
  color: #8a2e1a;
}

.table-view-row {
  cursor: pointer;
}

.table-view-row:hover {
  background: rgba(63, 138, 79, 0.07);
}

.section-header h2 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  letter-spacing: -0.04em;
}

.form-grid,
.training-grid,
.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.wide {
  grid-column: span 2;
}

.training-panel {
  padding: 1.2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(237, 247, 236, 0.78), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.training-item {
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.training-item h4 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.training-group-title {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  color: var(--green-900);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.table-wrap {
  overflow-x: auto;
}

.pagination-bar {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-summary {
  color: var(--ink-700);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-button {
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgba(24, 55, 35, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-900);
  font-weight: 800;
  cursor: pointer;
}

.page-button.active {
  background: linear-gradient(135deg, var(--green-850), var(--green-700));
  color: white;
  border-color: transparent;
}

.page-button:disabled {
  opacity: 0.45;
  cursor: default;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(24, 55, 35, 0.08);
}

th {
  color: var(--green-900);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
}

tbody tr:hover {
  background: rgba(240, 197, 41, 0.06);
}

.editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 21, 13, 0.38);
  backdrop-filter: blur(10px);
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding: 0.8rem 1.05rem 0.8rem 0.85rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #159447, #23c063);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 20px 40px rgba(20, 132, 66, 0.3);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.whatsapp-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.whatsapp-copy {
  display: grid;
  gap: 0.12rem;
  line-height: 1.1;
}

.whatsapp-copy small {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.82;
}

.whatsapp-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.editor-window {
  width: min(1120px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border-radius: 30px;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 244, 0.9));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-float), var(--glow-yellow);
}

.viewer-window {
  width: min(920px, 100%);
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.viewer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.viewer-card {
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.viewer-card.wide {
  grid-column: span 2;
}

.viewer-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green-900);
  font-weight: 800;
}

.viewer-card strong {
  color: var(--ink-900);
  font-size: 1rem;
  line-height: 1.5;
}

.viewer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  color: var(--green-900);
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255, 241, 176, 0.9), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow-soft);
}

.formation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.formation-header {
  align-items: flex-start;
}

.progress-bar {
  width: 100%;
  height: 12px;
  margin: 0.9rem 0 1rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(24, 55, 35, 0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow-500), var(--green-700));
}

.video-list {
  display: grid;
  gap: 0.8rem;
}

.video-item {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(24, 55, 35, 0.08);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.video-item h4 {
  font-size: 1rem;
}

.video-item p,
.video-item small {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--ink-700);
}

.video-item textarea {
  min-height: 92px;
  margin-top: 0.8rem;
  resize: vertical;
}

.inline-form {
  margin-top: 1rem;
  align-items: end;
}

.inline-form .primary-button {
  min-height: 52px;
  padding: 0 1rem;
}

@media (max-width: 1220px) {
  .login-screen,
  .dashboard,
  .stats-grid,
  .panel-grid,
  .dashboard-charts,
  .formation-library-grid,
  .report-library-grid,
  .filter-grid,
  .formation-grid,
  .form-grid,
  .viewer-grid,
  .training-grid,
  .inline-form,
  .formation-admin-tools {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: auto;
  }

  .dashboard {
    gap: 1rem;
  }

  .main-content {
    padding: 0;
  }

  .wide {
    grid-column: auto;
  }

  .viewer-card.wide {
    grid-column: auto;
  }

  .wide-panel {
    grid-column: auto;
  }

  .status-donut-wrap {
    grid-template-columns: 1fr;
  }

  .status-donut {
    margin: 0 auto;
  }

  .formation-detail-header {
    grid-template-columns: 1fr;
  }

  .formation-detail-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .login-screen,
  .dashboard {
    padding: 1rem;
  }

  .login-hero,
  .login-card,
  .sidebar,
  .stat-card,
  .panel,
  .table-card,
  .formation-card,
  .training-panel {
    border-radius: 24px;
  }

  .login-hero,
  .login-card {
    padding: 1.3rem;
  }

  .topbar,
  .section-header,
  .panel-heading,
  .editor-head,
  .form-actions,
  .sidebar-footer,
  .formation-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-meta {
    justify-content: flex-start;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .formation-course-actions {
    width: 100%;
  }

  .formation-course-actions .primary-button,
  .formation-course-actions .ghost-button {
    width: 100%;
  }

  .formation-video-frame {
    min-height: 240px;
  }
}
