:root {
  --bg-dark: #020604;
  --bg-dark-soft: #08100c;
  --green-primary: #2fa31f;
  --green-light: #79d13b;
  --green-dark: #167a13;
  --white: #ffffff;
  --off-white: #f7f8f6;
  --text-dark: #111827;
  --text-muted: #667085;
  --border-light: #e2e7e3;
  --amber: #e7a92f;
  --steel: #42788a;
  --danger: #c94545;
  --shadow: 0 16px 40px rgba(8, 18, 13, 0.12);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.55;
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.hidden {
  display: none !important;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--white);
  background: rgba(2, 6, 4, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.brand-image {
  width: 170px;
  height: 68px;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.brand-mark {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 24px;
  font-weight: 800;
}

.brand-copy strong::first-letter {
  color: var(--green-light);
}

.brand-copy small {
  max-width: 165px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 8px;
  line-height: 1.25;
  text-transform: uppercase;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.main-nav button,
.footer-grid button {
  color: inherit;
  background: none;
  border: 0;
  padding: 8px 0;
}

.main-nav button {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 600;
}

.main-nav button:hover,
.main-nav button.active {
  color: var(--green-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--green-primary);
  border-color: var(--green-primary);
  box-shadow: 0 8px 22px rgba(47, 163, 31, 0.2);
}

.button-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-secondary {
  color: #18211c;
  background: var(--white);
  border-color: #cad2cc;
}

.button-secondary:hover {
  border-color: var(--green-primary);
  color: var(--green-dark);
}

.button-danger {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

.button-danger:hover {
  background: #8f1c13;
  border-color: #8f1c13;
}

.button-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.button-ghost:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}

.button-block {
  width: 100%;
}

.icon-button {
  width: 43px;
  height: 43px;
  display: inline-grid;
  place-items: center;
  position: relative;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button {
  color: var(--green-light);
}

.cart-button span {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  position: absolute;
  top: -7px;
  right: -7px;
  padding: 0 4px;
  color: var(--white);
  background: var(--green-primary);
  border: 2px solid var(--bg-dark);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.menu-toggle,
.mobile-auth {
  display: none;
}

.hero {
  min-height: 675px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 30%, rgba(121, 209, 59, 0.14), transparent 32%),
    radial-gradient(circle at 14% 72%, rgba(66, 120, 138, 0.12), transparent 28%),
    linear-gradient(104deg, rgba(2, 6, 4, 0.99) 0%, rgba(5, 15, 10, 0.98) 51%, rgba(10, 28, 18, 0.94) 100%);
}

.hero-photo {
  min-height: 735px;
  background:
    linear-gradient(90deg, rgba(2, 6, 4, 0.97) 0%, rgba(2, 6, 4, 0.9) 36%, rgba(2, 6, 4, 0.45) 62%, rgba(2, 6, 4, 0.08) 100%),
    radial-gradient(circle at 64% 20%, rgba(121, 209, 59, 0.12), transparent 28%),
    url("assets/fortixseg-hero-home.jpg?v=3") center / cover no-repeat;
}

.hero::before {
  width: 47%;
  height: 100%;
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  background:
    linear-gradient(135deg, transparent 0 20%, rgba(121, 209, 59, 0.1) 20% 21%, transparent 21% 45%, rgba(255, 255, 255, 0.06) 45% 46%, transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px);
}

.hero-photo::before {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(2, 6, 4, 0.08), rgba(2, 6, 4, 0.3)),
    linear-gradient(135deg, transparent 0 57%, rgba(121, 209, 59, 0.1) 57% 57.5%, transparent 57.5%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 92px);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 50%, #000);
}

.hero-photo .hero-grid-lines {
  opacity: 0.22;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 92%);
}

.hero-layout {
  min-height: 675px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 0.9fr);
  align-items: center;
  gap: 70px;
  position: relative;
  z-index: 1;
  padding-top: 62px;
  padding-bottom: 64px;
}

.hero-photo .hero-layout {
  min-height: 735px;
  grid-template-columns: minmax(0, 690px) 1fr;
}

.hero-photo .hero-copy {
  max-width: 690px;
}

.hero-photo .hero-visual {
  display: none;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--green-light);
}

.eyebrow::before,
.section-kicker::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 680px;
  margin: 18px 0 22px;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero h1 strong {
  display: block;
  margin-top: 10px;
  color: var(--green-light);
  font-size: 0.67em;
}

.hero-copy > p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
}

.hero-differentials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 34px;
}

.hero-photo .hero-differentials {
  max-width: 680px;
  gap: 0;
  margin-top: 38px;
}

.hero-differentials span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
}

.hero-photo .hero-differentials span {
  min-height: 54px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-photo .hero-differentials span:first-child {
  padding-left: 0;
}

.hero-photo .hero-differentials span:last-child {
  border-right: 0;
}

.hero-differentials i {
  color: var(--green-light);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.hero-visual {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.industrial-frame {
  width: 82%;
  height: 530px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(121, 209, 59, 0.13), transparent 42%),
    linear-gradient(145deg, #1a2d24, #07100c 72%);
  box-shadow:
    0 32px 86px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.industrial-frame::before,
.industrial-frame::after {
  content: "";
  position: absolute;
}

.industrial-frame::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 4, 0.08), transparent 45%, rgba(2, 6, 4, 0.34)),
    radial-gradient(circle at 54% 32%, transparent 0 31%, rgba(0, 0, 0, 0.36) 74%),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(255, 255, 255, 0.035) 50px),
    linear-gradient(125deg, transparent 48%, rgba(121, 209, 59, 0.1) 48% 49%, transparent 49%);
  z-index: 1;
}

.industrial-frame::after {
  width: 260px;
  height: 14px;
  right: -40px;
  top: 76px;
  transform: rotate(-34deg);
  background: repeating-linear-gradient(90deg, var(--amber) 0 22px, #141b17 22px 44px);
  border-radius: 999px;
  opacity: 0.88;
  z-index: 3;
}

.hero-worker-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-worker-stage::before {
  width: 240px;
  height: 240px;
  content: "";
  position: absolute;
  left: 50%;
  top: 26%;
  transform: translate(-50%, -50%);
  background: rgba(121, 209, 59, 0.24);
  border-radius: 50%;
  filter: blur(52px);
}

.hero-worker-stage::after {
  height: 92px;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(2, 6, 4, 0.85), transparent);
}

.hero-worker-art {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.42));
}

.worker-scan-card {
  width: 148px;
  position: absolute;
  right: 23px;
  top: 24px;
  z-index: 5;
  padding: 13px 14px 14px;
  color: var(--white);
  background: rgba(3, 9, 6, 0.72);
  border: 1px solid rgba(121, 209, 59, 0.35);
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.worker-scan-card span,
.worker-scan-card strong {
  display: block;
}

.worker-scan-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.worker-scan-card strong {
  margin-top: 3px;
  color: var(--green-light);
  font-size: 24px;
  line-height: 1;
}

.worker-scan-card i {
  width: 100%;
  height: 4px;
  display: block;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.worker-scan-card i::before {
  width: 72%;
  height: 100%;
  content: "";
  display: block;
  background: linear-gradient(90deg, var(--green-light), var(--green-primary));
  border-radius: inherit;
}

.worker-illustration {
  width: 290px;
  height: 410px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.worker-head {
  width: 112px;
  height: 126px;
  position: absolute;
  left: 89px;
  top: 72px;
  background: #bb8565;
  border-radius: 45% 45% 42% 42%;
  box-shadow: inset -18px -8px 0 rgba(68, 35, 25, 0.12);
}

.helmet {
  width: 158px;
  height: 82px;
  position: absolute;
  left: 66px;
  top: 30px;
  z-index: 3;
  background: #e9b82e;
  border-radius: 82px 82px 18px 18px;
  box-shadow: inset -18px -8px 0 rgba(134, 87, 0, 0.16);
}

.helmet::after {
  width: 188px;
  height: 18px;
  content: "";
  position: absolute;
  left: -16px;
  bottom: -5px;
  background: #f2c53e;
  border-radius: 5px;
}

.helmet span {
  width: 17px;
  height: 70px;
  display: block;
  margin: 4px auto;
  background: rgba(255, 255, 255, 0.32);
}

.worker-body {
  width: 290px;
  height: 250px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  background: #e57d22;
  border-radius: 72px 72px 0 0;
  box-shadow: inset -45px 0 0 rgba(75, 32, 8, 0.12);
}

.worker-body::before {
  width: 80px;
  height: 62px;
  content: "";
  position: absolute;
  left: 105px;
  top: 0;
  background: #101a15;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 24% 100%);
}

.reflective {
  width: 34px;
  height: 250px;
  position: absolute;
  top: 34px;
  background: #d8e8a6;
  border: 8px solid #75844d;
}

.reflective-left {
  left: 56px;
  transform: rotate(18deg);
}

.reflective-right {
  right: 56px;
  transform: rotate(-18deg);
}

.vest-badge {
  position: absolute;
  right: 28px;
  top: 94px;
  padding: 6px 8px;
  color: #111;
  background: #eef5d8;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.scene-label {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 4;
  max-width: calc(100% - 44px);
  padding: 11px 14px 11px 12px;
  background: rgba(3, 9, 6, 0.68);
  border-left: 3px solid var(--green-light);
  border-radius: 0 7px 7px 0;
  backdrop-filter: blur(12px);
}

.scene-label span,
.scene-label strong {
  display: block;
}

.scene-label span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  text-transform: uppercase;
}

.scene-label strong {
  color: var(--white);
  font-size: 11px;
}

.compliance-panel {
  width: 310px;
  position: absolute;
  right: 0;
  bottom: 28px;
  z-index: 5;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 8px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
}

.compliance-panel > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.compliance-panel > div:last-child {
  border-bottom: 0;
}

.check-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green-primary);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.compliance-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.compliance-panel strong {
  display: block;
  color: var(--text-dark);
  font-size: 12px;
}

.stats-band {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 34px rgba(5, 15, 10, 0.07);
}

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

.stats-grid article {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 32px;
  border-right: 1px solid var(--border-light);
}

.stats-grid article:last-child {
  border-right: 0;
}

.stats-grid strong {
  color: var(--green-dark);
  font-size: 27px;
}

.stats-grid span {
  color: var(--text-muted);
  font-size: 12px;
}

.content-section {
  padding: 92px 0;
}

.section-muted {
  background: #eef1ee;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.form-heading h2,
.dashboard-heading h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.split-heading > div {
  max-width: 700px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  background: none;
  border: 0;
  padding: 10px 0;
  font-weight: 800;
}

.text-action span {
  font-size: 20px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}

.benefit-item {
  min-height: 220px;
  padding: 34px;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.benefit-item > span {
  color: var(--green-primary);
  font-size: 11px;
  font-weight: 800;
}

.benefit-item h3 {
  margin: 32px 0 9px;
  font-size: 18px;
}

.benefit-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.course-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(16, 24, 20, 0.06);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.course-visual {
  height: 158px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: var(--white);
  background: var(--course-bg);
}

.course-visual::before {
  width: 120px;
  height: 120px;
  content: "";
  position: absolute;
  right: -24px;
  top: 20px;
  border: 16px solid rgba(255, 255, 255, 0.1);
  transform: rotate(32deg);
}

.course-visual::after {
  width: 100%;
  height: 9px;
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background: repeating-linear-gradient(135deg, var(--amber) 0 12px, #111713 12px 24px);
}

.course-code {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 35px;
  font-weight: 800;
}

.course-category {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 4px 7px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.course-body {
  padding: 22px;
}

.course-body h3 {
  min-height: 70px;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.4;
}

.course-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 17px;
  color: var(--text-muted);
  font-size: 11px;
}

.course-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.course-price span {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.course-price strong {
  font-size: 21px;
}

.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.course-actions .button {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 12px;
}

.faq-section {
  padding: 92px 0;
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.1fr;
  gap: 90px;
}

.faq-list {
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--text-dark);
  background: none;
  border: 0;
  text-align: left;
  font-weight: 700;
}

.faq-item button span {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 400;
}

.faq-item > div {
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease;
}

.faq-item p {
  margin: 0;
  padding: 0 45px 22px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-item.open > div {
  max-height: 140px;
}

.faq-item.open button span {
  transform: rotate(45deg);
}

.page-hero {
  padding: 80px 0;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(2, 6, 4, 0.99), rgba(8, 28, 17, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 70px);
}

.page-hero h1 {
  max-width: 850px;
  margin: 14px 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
}

.page-hero p {
  max-width: 750px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
}

.company-hero {
  background:
    linear-gradient(105deg, rgba(2, 6, 4, 0.99), rgba(17, 52, 28, 0.96)),
    repeating-linear-gradient(135deg, transparent 0 32px, rgba(255, 255, 255, 0.035) 32px 33px);
}

.certificate-hero {
  background: linear-gradient(110deg, #07100c, #123b28);
}

.about-hero {
  background: linear-gradient(110deg, #07100c, #1c3239);
}

.contact-hero {
  background: linear-gradient(110deg, #07100c, #3c2c12);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.catalog-toolbar > span {
  color: var(--text-muted);
  font-size: 13px;
}

.search-field {
  width: min(440px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.search-field svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.b2b-grid,
.contact-layout,
.editorial-grid,
.validation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}

.feature-list article {
  display: flex;
  gap: 12px;
  padding: 23px;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.feature-list article > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green-primary);
  border-radius: 4px;
  font-size: 12px;
}

.feature-list h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.feature-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.form-panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-heading span,
.dashboard-heading span,
.modal-heading > span,
.app-topbar span,
.lesson-top > span,
.quiz-heading > span,
.drawer-header span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-heading h2 {
  margin-top: 6px;
  font-size: 27px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  color: #34423a;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #ccd5ce;
  border-radius: 6px;
  outline: 0;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(47, 163, 31, 0.1);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}

.steps-grid article {
  min-height: 240px;
  padding: 32px;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.steps-grid span {
  color: var(--green-primary);
  font-size: 12px;
  font-weight: 800;
}

.steps-grid h2 {
  margin: 52px 0 10px;
  font-size: 19px;
}

.steps-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.validation-layout {
  grid-template-columns: 0.8fr 1.2fr;
}

.validation-form {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.validation-form small {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
}

.validation-result {
  min-height: 240px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--green-primary);
  border-radius: 8px;
}

.validation-result.empty {
  border-left-color: #94a29a;
}

.validation-result.invalid {
  border-left-color: var(--danger);
}

.status-seal {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green-primary);
  border: 8px solid #dff3da;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 800;
}

.validation-result.invalid .status-seal,
.validation-result.empty .status-seal {
  background: #708078;
  border-color: #e4e9e6;
}

.validation-result.invalid .status-seal {
  background: var(--danger);
  border-color: #fae0e0;
}

.validation-result h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.validation-result p {
  margin: 2px 0;
  color: var(--text-muted);
}

.editorial-copy > p {
  margin: 0 0 24px;
  color: #38433d;
  font-size: 18px;
}

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
  border-top: 1px solid var(--border-light);
}

.values-row article {
  padding: 24px 18px 0 0;
}

.values-row strong,
.values-row span {
  display: block;
}

.values-row span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.contact-notes {
  border-top: 1px solid var(--border-light);
}

.contact-notes > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-notes span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.contact-notes h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.contact-notes p {
  grid-column: 2;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--bg-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
  padding-top: 62px;
  padding-bottom: 48px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid strong {
  margin-bottom: 13px;
  color: var(--white);
}

.footer-brand > strong {
  color: var(--green-light);
  font-size: 25px;
}

.footer-brand p {
  max-width: 310px;
  margin: 0;
  font-size: 13px;
}

.footer-logo {
  width: 220px;
  height: auto;
  display: block;
  margin-bottom: 16px;
  object-fit: contain;
  filter: none;
}

.logo-on-dark {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.logo-on-light {
  filter:
    drop-shadow(1px 0 0 rgba(0, 0, 0, 0.9))
    drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.9));
}

.footer-email,
.contact-email {
  color: var(--green-light);
  font-weight: 700;
  text-decoration: none;
}

.footer-email {
  margin-top: 12px;
  font-size: 12px;
}

.contact-email {
  color: var(--green-dark);
}

.footer-grid button {
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
  font-size: 12px;
}

.footer-grid button:hover {
  color: var(--green-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.footer-bottom i {
  font-style: normal;
}

.app-page {
  min-height: calc(100vh - 78px);
  background: #eef1ee;
}

.app-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 25px 18px;
  color: var(--white);
  background: #08100c;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #08100c;
  background: var(--green-light);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.app-brand strong,
.app-brand small {
  display: block;
}

.app-brand small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  text-transform: uppercase;
}

.app-sidebar nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 25px;
}

.app-sidebar nav button,
.sidebar-logout {
  width: 100%;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}

.app-sidebar nav button:hover,
.app-sidebar nav button.active {
  color: var(--white);
  background: rgba(121, 209, 59, 0.13);
}

.app-sidebar nav button.active {
  border-left: 3px solid var(--green-light);
}

.sidebar-logout {
  margin-top: 20px;
  color: #ffaaaa;
  border: 1px solid rgba(255, 120, 120, 0.18);
}

.corporate-sidebar {
  background: #0b1713;
}

.admin-sidebar {
  background: #101a1e;
}

.app-main {
  min-width: 0;
  padding: 34px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.app-topbar h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.metric-grid article {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 23px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--green-primary);
  border-radius: 7px;
}

.metric-grid span,
.metric-grid small {
  color: var(--text-muted);
  font-size: 11px;
}

.metric-grid strong {
  margin: 6px 0;
  font-size: 31px;
}

.warning-number {
  color: #b57300;
}

.portal-insights,
.api-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}

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

.insight-card,
.api-status-grid article {
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  box-shadow: 0 14px 30px rgba(8, 18, 13, 0.06);
}

.insight-card.primary {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(121, 209, 59, 0.18), transparent 44%),
    #08100c;
  border-color: rgba(121, 209, 59, 0.32);
}

.insight-card.warning {
  border-color: #f3d28a;
  background: #fffaf0;
}

.insight-card span,
.api-status-grid span,
.api-status-grid small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.insight-card.primary span {
  color: rgba(255, 255, 255, 0.62);
}

.insight-card h2,
.api-status-grid strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.insight-card.primary h2 {
  color: var(--green-light);
}

.insight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.insight-card.primary p {
  color: rgba(255, 255, 255, 0.72);
}

.api-status-grid strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.api-status-grid strong.ok {
  color: var(--green-dark);
}

.api-status-grid strong.pending {
  color: #a36c00;
}

.portal-view {
  min-width: 0;
  display: none;
}

.portal-view.active {
  display: block;
}

.portal-view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-primary);
  border-radius: 7px;
}

.portal-view-heading > div {
  min-width: 0;
  max-width: 720px;
}

.portal-view-heading span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-view-heading h2 {
  margin: 5px 0 7px;
  font-size: 27px;
  line-height: 1.1;
}

.portal-view-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.portal-course-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.portal-course-cover {
  min-height: 245px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--course-bg);
}

.portal-course-cover span {
  font-size: 25px;
  font-weight: 800;
}

.portal-course-card > div:last-child {
  min-width: 0;
  padding: 22px;
}

.portal-course-card h3,
.portal-data-card h3 {
  margin: 7px 0 9px;
  font-size: 18px;
}

.portal-course-card p,
.portal-data-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 12px;
}

.portal-data-card {
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.portal-data-card > span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-copy,
.grade-copy {
  display: block;
  margin: 18px 0;
  color: var(--green-dark);
  font-size: 22px;
}

.grade-copy {
  font-size: 34px;
}

.learning-library {
  min-width: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

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

.resource-list button {
  width: 100%;
  padding: 16px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  text-align: left;
}

.resource-list button.active {
  background: #edf7ea;
  border-color: rgba(47, 163, 31, 0.5);
  box-shadow: inset 3px 0 0 var(--green-primary);
}

.resource-list span,
.resource-list strong,
.resource-list small {
  display: block;
}

.resource-list span {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-list strong {
  margin: 4px 0;
  font-size: 12px;
}

.resource-list small {
  color: var(--text-muted);
  font-size: 10px;
}

.media-viewer {
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.media-viewer-header span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.media-viewer-header h3 {
  margin: 5px 0 18px;
  font-size: 20px;
}

.video-stage {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(121, 209, 59, 0.14), transparent 45%),
    #07100c;
  border-radius: 7px;
  text-align: center;
}

.video-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.video-stage > * {
  position: relative;
  z-index: 1;
}

.video-stage button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #08100c;
  background: var(--green-light);
  border: 0;
  border-radius: 50%;
  font-weight: 800;
}

.video-stage small {
  color: rgba(255, 255, 255, 0.58);
}

.pdf-viewer {
  width: 100%;
  height: 560px;
  display: block;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.media-download {
  margin-top: 14px;
}

.portal-form {
  max-width: 850px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.portal-toolbar .search-field {
  width: min(430px, 100%);
}

.portal-toolbar > span {
  color: var(--text-muted);
  font-size: 12px;
}

.admin-course-manager {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1.22fr);
  align-items: start;
  gap: 18px;
}

.admin-course-list-panel,
.admin-course-editor {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  box-shadow: 0 10px 30px rgba(13, 26, 18, 0.05);
}

.admin-course-list-panel {
  padding: 18px;
}

.admin-course-toolbar {
  align-items: stretch;
}

.admin-course-toolbar .search-field {
  width: 100%;
}

.admin-course-toolbar select {
  width: 138px;
  min-height: 43px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #cad2cc;
  border-radius: 6px;
}

.admin-course-list {
  display: grid;
  gap: 10px;
}

.admin-course-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fbfcfb;
  border: 1px solid #dde4df;
  border-radius: 7px;
}

.admin-course-item:hover {
  border-color: #a8b7ac;
}

.admin-course-item-main {
  min-width: 0;
}

.admin-course-item h4 {
  margin: 7px 0 4px;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.admin-course-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.admin-course-item-side {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 9px;
}

.admin-course-item-side strong {
  color: #123d20;
  font-size: 14px;
}

.admin-course-item-side .button {
  min-height: 35px;
  padding: 7px 13px;
  font-size: 11px;
}

.course-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-status.published {
  color: #17652b;
  background: #e6f5e9;
}

.course-status.draft {
  color: #80510a;
  background: #fff2d2;
}

.portal-empty-state {
  min-height: 140px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 25px;
  color: var(--text-muted);
  background: #f7f9f7;
  border: 1px dashed #cbd5ce;
  border-radius: 7px;
  text-align: center;
  font-size: 12px;
}

.portal-empty-state strong,
.portal-empty-state span {
  display: block;
}

.admin-course-editor {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.admin-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.admin-editor-heading span,
.admin-resource-manager > div:first-child > span {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-editor-heading h3 {
  margin: 4px 0 0;
  color: #111827;
  font-size: 20px;
}

.admin-editor-close {
  flex: 0 0 38px;
  color: #fff;
  background: #101a14;
  border-color: #101a14;
  font-size: 23px;
}

.admin-course-editor .form-grid {
  gap: 16px;
}

.admin-course-editor .field small {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

.admin-resource-manager {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.admin-resource-manager h4 {
  margin: 4px 0 3px;
  color: #111827;
  font-size: 17px;
}

.admin-resource-manager p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.admin-upload-field {
  min-height: 80px;
  display: grid;
  place-items: center;
  margin-top: 16px;
  padding: 14px;
  color: #123d20;
  background: #f3f8f4;
  border: 1px dashed #91aa97;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-upload-field:hover {
  color: var(--green-dark);
  border-color: var(--green-primary);
}

.admin-upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.admin-file-selection {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 10px;
}

.admin-file-selection strong {
  color: #111827;
}

.admin-resource-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-resource-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 36px 36px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: #f8faf8;
  border: 1px solid #e0e6e1;
  border-radius: 6px;
}

.admin-resource-type {
  min-width: 43px;
  padding: 5px 7px;
  color: #fff;
  background: #a72920;
  border-radius: 4px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-resource-type.video {
  background: #195a78;
}

.admin-resource-item strong,
.admin-resource-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resource-item strong {
  color: #1b241e;
  font-size: 11px;
}

.admin-resource-item small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

.admin-resource-item .icon-button {
  width: 36px;
  height: 36px;
  color: #183a22;
  background: #fff;
  border: 1px solid #d7dfd9;
  border-radius: 6px;
}

.admin-resource-item .icon-button.danger {
  color: #a52218;
}

.admin-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

#adminCourseSaveStatus {
  flex: 1 1 100%;
  min-height: 16px;
  color: var(--text-muted);
  font-size: 10px;
}

.portal-table-section {
  margin-top: 0;
}

.purchase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 16px;
  background: #f3f7f3;
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.purchase-summary span {
  color: var(--text-muted);
  font-size: 11px;
}

.purchase-summary strong {
  color: var(--green-dark);
  font-size: 22px;
}

.portal-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.portal-list-card > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.portal-list-card strong,
.portal-list-card small {
  display: block;
}

.portal-list-card small {
  color: var(--text-muted);
  font-size: 11px;
}

.portal-list-card.locked {
  opacity: 0.7;
}

.document-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: #101a15;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-section {
  min-width: 0;
  margin-top: 22px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.enrolled-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.enrolled-course {
  min-width: 0;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.course-mini-visual {
  min-height: 235px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, #1d6671, #0a1513);
}

.course-mini-visual.epi {
  background: linear-gradient(145deg, #b76522, #1b2520);
}

.course-mini-visual::after {
  width: 100px;
  height: 100px;
  content: "";
  position: absolute;
  right: -35px;
  bottom: 25px;
  border: 15px solid rgba(255, 255, 255, 0.1);
  transform: rotate(35deg);
}

.course-mini-visual span {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 800;
}

.enrolled-content {
  min-width: 0;
  padding: 24px;
}

.course-status {
  display: inline-block;
  color: #955f00;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-status.complete {
  color: var(--green-dark);
}

.enrolled-content h3 {
  margin: 8px 0 25px;
  font-size: 17px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.progress-label strong {
  color: var(--text-dark);
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin-bottom: 22px;
  background: #dfe5e1;
  border-radius: 4px;
}

.progress-track i {
  height: 100%;
  display: block;
  background: var(--green-primary);
  border-radius: 4px;
  transition: width 250ms ease;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 12px;
}

th {
  color: var(--text-muted);
  background: #f5f7f5;
  font-size: 10px;
  text-transform: uppercase;
}

.table-status {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.table-status.complete {
  color: #166314;
  background: #e1f5dc;
}

.table-status.progress {
  color: #8c5a00;
  background: #fff0cd;
}

.table-status.pending {
  color: #884242;
  background: #fae5e5;
}

.certificate-link {
  color: var(--green-dark);
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
}

.bulk-form {
  display: grid;
  grid-template-columns: 2fr 0.7fr auto;
  align-items: end;
  gap: 16px;
}

.bulk-form .field {
  margin-bottom: 0;
}

.admin-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.lesson-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
}

.lesson-sidebar {
  padding: 30px 25px;
  color: var(--white);
  background: #07100c;
}

.back-link {
  margin-bottom: 35px;
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
  background: none;
  border: 0;
  font-size: 12px;
}

.lesson-sidebar h1 {
  margin: 10px 0 26px;
  font-size: 23px;
}

.lesson-progress {
  margin-bottom: 35px;
}

.lesson-progress > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.lesson-sidebar .progress-track {
  background: rgba(255, 255, 255, 0.15);
}

.module-list {
  display: flex;
  flex-direction: column;
}

.module-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  align-items: center;
  gap: 8px;
  padding: 11px 8px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 11px;
}

.module-list button.active {
  color: var(--white);
  background: rgba(121, 209, 59, 0.1);
}

.module-list button.complete b {
  color: var(--green-light);
}

.module-list button span,
.module-list button b {
  font-size: 10px;
}

.lesson-content {
  min-width: 0;
  padding: 40px;
  background: #eef1ee;
}

.lesson-top h2 {
  margin: 5px 0 24px;
  font-size: 28px;
}

.video-placeholder {
  min-height: 480px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(rgba(5, 12, 8, 0.84), rgba(5, 12, 8, 0.94)),
    repeating-linear-gradient(45deg, #18261f 0 24px, #111a16 24px 48px);
  border-radius: 7px;
  text-align: center;
}

.play-symbol {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  padding-left: 5px;
  color: var(--white);
  background: var(--green-primary);
  border-radius: 50%;
  font-size: 23px;
}

.video-placeholder span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
}

.lesson-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 0;
}

.quiz-panel {
  margin-top: 20px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 7px;
}

.quiz-heading h2 {
  margin: 4px 0 8px;
}

.quiz-heading p {
  margin: 0 0 25px;
  color: var(--text-muted);
}

.quiz-question {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.quiz-question h3 {
  margin: 0 0 15px;
  font-size: 15px;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  background: #f7f9f7;
  border-radius: 5px;
  font-size: 12px;
}

.quiz-result {
  margin-top: 20px;
  padding: 20px;
  border-left: 4px solid var(--green-primary);
  background: #eff9ec;
}

.quiz-result.failed {
  border-left-color: var(--danger);
  background: #fff0f0;
}

.quiz-result h3 {
  margin: 0 0 5px;
}

.certificate-page {
  min-height: calc(100vh - 78px);
  padding: 28px;
  background: #dfe4e0;
}

.certificate-toolbar {
  max-width: 1120px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 20px;
}

.certificate-toolbar > div {
  display: flex;
  gap: 9px;
}

.certificate-sheet {
  width: min(1120px, 100%);
  aspect-ratio: 1.414 / 1;
  min-height: 690px;
  margin: 0 auto;
  padding: 18px;
  background: #fffdf7;
  box-shadow: 0 20px 60px rgba(13, 25, 18, 0.17);
}

.certificate-border {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px;
  border: 2px solid #234735;
  outline: 7px double #a7b49a;
  outline-offset: -13px;
  text-align: center;
}

.certificate-brand {
  position: absolute;
  left: 50px;
  top: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.certificate-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.certificate-brand strong,
.certificate-brand small {
  display: block;
}

.certificate-brand small {
  color: var(--text-muted);
  font-size: 8px;
}

.certificate-label {
  color: var(--green-dark);
  font-size: 19px;
  font-weight: 800;
}

.certificate-border > p {
  margin: 12px 0 3px;
  color: #505b55;
}

.certificate-border > h1 {
  margin: 5px 0;
  color: #183328;
  font-family: Georgia, serif;
  font-size: 45px;
  font-weight: 400;
}

.certificate-border > h2 {
  margin: 7px 0 25px;
  font-size: 25px;
}

.certificate-meta {
  display: flex;
  gap: 50px;
  padding: 14px 28px;
  border-top: 1px solid #cad2cc;
  border-bottom: 1px solid #cad2cc;
}

.certificate-meta span,
.certificate-meta b,
.certificate-meta i {
  display: block;
}

.certificate-meta b {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.certificate-meta i {
  font-style: normal;
  font-weight: 700;
}

.certificate-footer {
  width: calc(100% - 100px);
  position: absolute;
  left: 50px;
  bottom: 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.signature {
  min-width: 230px;
}

.signature span {
  display: block;
  margin-bottom: 8px;
  border-top: 1px solid #45564c;
}

.signature strong,
.signature small {
  display: block;
}

.signature small {
  color: var(--text-muted);
  font-size: 9px;
}

.certificate-code {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}

.certificate-code strong,
.certificate-code small {
  display: block;
}

.certificate-code strong {
  font-size: 11px;
}

.certificate-code small {
  color: var(--text-muted);
  font-size: 8px;
}

.fake-qr {
  width: 72px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 5px;
  background: #fff;
  border: 2px solid #14251d;
}

.fake-qr i {
  background: #14251d;
}

.fake-qr i:nth-child(2),
.fake-qr i:nth-child(4),
.fake-qr i:nth-child(8) {
  background: #fff;
  border: 3px solid #14251d;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  padding: 22px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 4, 0.76);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  position: relative;
  z-index: 1;
  overflow-y: auto;
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.auth-dialog {
  width: min(570px, 100%);
}

.small-dialog {
  width: min(500px, 100%);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  color: #304038;
  background: #edf1ee;
  border: 0;
  border-radius: 5px;
  font-size: 22px;
  line-height: 1;
}

.course-modal-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 32px;
}

.course-modal-visual {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: var(--white);
  background: var(--course-bg);
  border-radius: 6px;
}

.course-modal-visual strong {
  font-size: 53px;
}

.course-modal-visual span {
  max-width: 180px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.course-detail-head {
  padding-right: 35px;
}

.course-detail-head > span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-detail-head h2 {
  margin: 6px 0 12px;
  font-size: 28px;
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-meta span {
  padding: 5px 8px;
  color: #435148;
  background: #edf2ee;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.detail-copy h3 {
  margin: 18px 0 6px;
  font-size: 14px;
}

.detail-copy p,
.detail-copy li {
  color: var(--text-muted);
  font-size: 12px;
}

.detail-copy ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 20px;
  margin: 8px 0;
  padding-left: 18px;
}

.detail-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.detail-purchase span,
.detail-purchase strong {
  display: block;
}

.detail-purchase span {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.detail-purchase strong {
  font-size: 25px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand small {
  color: var(--text-muted);
  font-size: 9px;
}

.auth-tabs,
.account-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 25px;
  padding: 4px;
  background: #edf1ee;
  border-radius: 7px;
}

.auth-tabs button,
.account-type button {
  min-height: 38px;
  padding: 8px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.auth-tabs button.active,
.account-type button.active {
  color: var(--green-dark);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(13, 30, 20, 0.08);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.modal-heading {
  margin-bottom: 20px;
}

.modal-heading h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.forgot-link {
  display: block;
  margin: -4px 0 16px auto;
  padding: 0;
  color: var(--green-dark);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.demo-credentials {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 15px;
  background: #f2f5f2;
  border-left: 3px solid var(--green-primary);
}

.demo-credentials strong {
  font-size: 11px;
}

.demo-credentials button {
  padding: 3px 0;
  color: var(--green-dark);
  background: none;
  border: 0;
  text-align: left;
  font-size: 11px;
}

.demo-credentials small {
  color: var(--text-muted);
  font-size: 10px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  visibility: hidden;
  opacity: 0;
  background: rgba(2, 6, 4, 0.6);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.cart-drawer {
  width: min(440px, 100%);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -20px 0 55px rgba(0, 0, 0, 0.2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  border-bottom: 1px solid var(--border-light);
}

.drawer-header h2 {
  margin: 2px 0 0;
}

.drawer-close {
  color: var(--text-dark);
  border-color: var(--border-light);
  font-size: 23px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
}

.empty-cart {
  display: grid;
  place-items: center;
  min-height: 250px;
  color: var(--text-muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-code {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #163a26;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.cart-item strong,
.cart-item small {
  display: block;
}

.cart-item strong {
  font-size: 12px;
}

.cart-item small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.cart-item button {
  align-self: start;
  padding: 0;
  color: var(--danger);
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 700;
}

.cart-summary {
  padding: 24px;
  border-top: 1px solid var(--border-light);
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-summary strong {
  font-size: 22px;
}

.cart-summary small {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  text-align: center;
  font-size: 9px;
}

.virtual-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 97;
  pointer-events: none;
}

.assistant-launcher {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  position: relative;
  margin-left: auto;
  color: var(--white);
  background: var(--green-primary);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 14px 38px rgba(2, 6, 4, 0.35);
  pointer-events: auto;
  transition: transform 160ms ease, background 160ms ease;
}

.assistant-launcher:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.assistant-launcher svg,
.assistant-form button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-notification {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  position: absolute;
  right: -5px;
  top: -5px;
  padding: 0 5px;
  color: #121811;
  background: var(--amber);
  border: 2px solid var(--white);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
}

.assistant-panel {
  width: min(390px, calc(100vw - 28px));
  height: min(600px, calc(100vh - 112px));
  display: flex;
  visibility: hidden;
  position: absolute;
  right: 0;
  bottom: 72px;
  flex-direction: column;
  overflow: hidden;
  background: #f3f6f3;
  border: 1px solid rgba(24, 52, 36, 0.2);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.assistant-panel.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.assistant-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
  color: var(--white);
  background: #07100c;
  border-bottom: 3px solid var(--green-primary);
}

.assistant-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.assistant-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #07100c;
  background: var(--green-light);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.assistant-identity strong,
.assistant-identity span {
  display: block;
}

.assistant-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.assistant-identity div > span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.assistant-identity i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  background: var(--green-light);
  border-radius: 50%;
}

.assistant-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-size: 21px;
}

.assistant-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 16px;
  scroll-behavior: smooth;
}

.assistant-message {
  max-width: 88%;
  align-self: flex-start;
  padding: 11px 13px;
  color: #253129;
  background: var(--white);
  border: 1px solid #dce4de;
  border-radius: 7px;
  box-shadow: 0 4px 15px rgba(14, 30, 20, 0.05);
}

.assistant-message.user {
  align-self: flex-end;
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.assistant-message-label {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-message.user .assistant-message-label {
  color: rgba(255, 255, 255, 0.68);
}

.assistant-message p {
  margin: 0;
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.5;
}

.assistant-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.assistant-message-actions button,
.assistant-suggestions button {
  min-height: 32px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: #edf6ea;
  border: 1px solid #bcd8b6;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 700;
}

.assistant-message-actions button:hover,
.assistant-suggestions button:hover {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.assistant-typing {
  width: 52px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  background: var(--white);
  border: 1px solid #dce4de;
  border-radius: 7px;
}

.assistant-typing i {
  width: 6px;
  height: 6px;
  background: #8b9b91;
  border-radius: 50%;
  animation: assistantTyping 900ms ease-in-out infinite;
}

.assistant-typing i:nth-child(2) {
  animation-delay: 120ms;
}

.assistant-typing i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes assistantTyping {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}

.assistant-suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 14px;
  background: var(--white);
  border-top: 1px solid #dce4de;
}

.assistant-suggestions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.assistant-form {
  padding: 11px 14px 13px;
  background: var(--white);
  border-top: 1px solid #dce4de;
}

.assistant-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.assistant-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 7px;
}

.assistant-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: var(--text-dark);
  background: #f7f9f7;
  border: 1px solid #cbd5ce;
  border-radius: 6px;
  outline: 0;
  font-size: 12px;
}

.assistant-form input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(47, 163, 31, 0.1);
}

.assistant-form button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green-primary);
  border: 0;
  border-radius: 6px;
}

.assistant-form button svg {
  width: 20px;
  height: 20px;
}

.assistant-form small {
  display: block;
  margin-top: 7px;
  color: #7b8780;
  font-size: 8px;
  text-align: center;
}

.assistant-inline-action {
  margin-top: 14px;
}

.toast {
  min-width: 260px;
  max-width: calc(100% - 40px);
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 130;
  visibility: hidden;
  padding: 13px 18px;
  color: var(--white);
  background: #09120e;
  border-left: 4px solid var(--green-light);
  border-radius: 6px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  text-align: center;
  font-size: 12px;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 13px;
  }

  .main-nav button {
    font-size: 11px;
  }

  .desktop-auth {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr 470px;
    gap: 38px;
  }

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

  .course-grid-featured .course-card:nth-child(4) {
    display: none;
  }

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

  .portal-insights,
  .api-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-card-grid,
  .portal-card-grid.compact {
    grid-template-columns: 1fr;
  }

  .learning-library {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .enrolled-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-course-manager {
    grid-template-columns: 1fr;
  }

  .admin-course-editor {
    position: static;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 70px;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px;
    background: #07100c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav button {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 13px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .mobile-auth {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 386px;
    z-index: 2;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 14px 24px 20px;
    background: #07100c;
  }

  .mobile-auth.open {
    display: grid;
  }

  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 82px;
    padding-bottom: 70px;
  }

  .hero-photo {
    min-height: 690px;
    background-position: 62% center;
  }

  .hero-photo .hero-layout {
    min-height: 690px;
    grid-template-columns: 1fr;
  }

  .hero-photo .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    width: min(650px, 100%);
  }

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

  .stats-grid article:nth-child(2) {
    border-right: 0;
  }

  .stats-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-light);
  }

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

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

  .course-grid-featured .course-card:nth-child(4) {
    display: block;
  }

  .faq-layout,
  .b2b-grid,
  .contact-layout,
  .editorial-grid,
  .validation-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .app-main {
    padding: 22px;
  }

  .lesson-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .lesson-content {
    padding: 25px;
  }

  .video-placeholder {
    min-height: 390px;
  }

  .bulk-form {
    grid-template-columns: 1fr 0.6fr;
  }

  .bulk-form .button {
    grid-column: 1 / -1;
  }

  .certificate-sheet {
    min-height: 600px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand-image {
    width: 132px;
    height: 58px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    min-height: 690px;
    background-position: 64% center;
  }

  .hero-layout {
    padding-top: 58px;
  }

  .hero-photo .hero-layout {
    min-height: 690px;
    padding-top: 72px;
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .hero-differentials {
    display: grid;
  }

  .hero-photo .hero-differentials {
    display: grid;
    gap: 12px;
  }

  .hero-photo .hero-differentials span {
    min-height: auto;
    padding: 0;
    border-right: 0;
  }

  .hero-visual {
    min-height: auto;
    display: block;
  }

  .industrial-frame {
    width: 100%;
    height: 452px;
  }

  .hero-worker-art {
    width: 100%;
    height: 100%;
    bottom: 0;
  }

  .worker-scan-card {
    width: 132px;
    top: 14px;
    right: 14px;
    padding: 11px 12px 12px;
  }

  .worker-scan-card strong {
    font-size: 21px;
  }

  .scene-label {
    left: 14px;
    bottom: 18px;
    max-width: calc(100% - 28px);
  }

  .compliance-panel {
    width: 100%;
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid article {
    min-height: 92px;
    padding: 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .stats-grid article:last-child {
    border-bottom: 0;
  }

  .content-section,
  .faq-section {
    padding: 64px 0;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .benefit-grid,
  .course-grid,
  .feature-list,
  .steps-grid,
  .values-row {
    grid-template-columns: 1fr;
  }

  .course-grid-featured .course-card:nth-child(4) {
    display: none;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 60px 0;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .form-panel {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .validation-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .app-shell,
  .lesson-shell {
    display: block;
  }

  .app-sidebar,
  .lesson-sidebar {
    min-height: auto;
  }

  .app-sidebar {
    padding: 16px;
  }

  .app-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 15px;
  }

  .sidebar-logout {
    margin-top: 10px;
  }

  .app-main {
    padding: 17px 14px 40px;
  }

  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .portal-insights,
  .api-status-grid {
    grid-template-columns: 1fr;
  }

  .portal-view-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .portal-view-heading .button {
    width: 100%;
  }

  .portal-course-card,
  .learning-library {
    grid-template-columns: 1fr;
  }

  .portal-course-cover {
    min-height: 145px;
  }

  .video-stage {
    min-height: 250px;
    padding: 24px;
  }

  .pdf-viewer {
    height: 420px;
  }

  .portal-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-course-toolbar select {
    width: 100%;
  }

  .admin-course-list-panel,
  .admin-course-editor {
    padding: 15px;
  }

  .admin-course-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-course-item-side {
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .admin-course-item-side .button {
    justify-self: end;
  }

  .admin-resource-item {
    grid-template-columns: auto minmax(0, 1fr) 34px 34px;
    gap: 7px;
  }

  .admin-resource-item .icon-button {
    width: 34px;
    height: 34px;
  }

  .admin-editor-actions .button {
    flex: 1 1 100%;
  }

  .portal-list-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid article {
    min-height: 128px;
    padding: 16px;
  }

  .metric-grid strong {
    font-size: 25px;
  }

  .dashboard-section {
    padding: 17px;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .enrolled-course {
    grid-template-columns: 1fr;
  }

  .course-mini-visual {
    min-height: 145px;
  }

  .bulk-form {
    grid-template-columns: 1fr;
  }

  .bulk-form .button {
    grid-column: auto;
  }

  .lesson-sidebar {
    padding: 22px 16px;
  }

  .module-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .lesson-content {
    padding: 25px 14px 45px;
  }

  .video-placeholder {
    min-height: 245px;
  }

  .lesson-actions {
    display: grid;
  }

  .quiz-panel {
    padding: 18px;
  }

  .certificate-page {
    padding: 14px;
  }

  .certificate-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .certificate-toolbar > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .certificate-sheet {
    aspect-ratio: auto;
    min-height: 720px;
    padding: 9px;
  }

  .certificate-border {
    padding: 110px 18px 170px;
  }

  .certificate-brand {
    left: 28px;
    top: 35px;
  }

  .certificate-border > h1 {
    font-size: 34px;
  }

  .certificate-border > h2 {
    font-size: 19px;
  }

  .certificate-meta {
    flex-direction: column;
    gap: 10px;
  }

  .certificate-footer {
    width: calc(100% - 50px);
    left: 25px;
    align-items: center;
    flex-direction: column;
    gap: 25px;
  }

  .course-modal-grid {
    grid-template-columns: 1fr;
  }

  .course-modal-visual {
    min-height: 180px;
  }

  .detail-copy ul {
    grid-template-columns: 1fr;
  }

  .detail-purchase {
    align-items: stretch;
    flex-direction: column;
  }

  .modal {
    padding: 10px;
  }

  .modal-dialog {
    max-height: calc(100vh - 20px);
    padding: 24px 18px;
  }

  .auth-tabs,
  .account-type {
    margin-right: 30px;
  }
}

@media (max-width: 700px) {
  .virtual-assistant {
    right: 14px;
    bottom: 14px;
  }

  .assistant-launcher {
    width: 54px;
    height: 54px;
  }

  .assistant-panel {
    width: auto;
    height: min(650px, calc(100vh - 92px));
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    transform-origin: center bottom;
  }

  .assistant-messages {
    padding: 15px 13px;
  }

  .assistant-message {
    max-width: 92%;
  }

  .assistant-suggestions {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .certificate-toolbar {
    display: none !important;
  }

  .page {
    display: none !important;
  }

  #page-certificate-view {
    display: block !important;
    padding: 0;
  }

  .certificate-sheet {
    width: 100%;
    min-height: 0;
    box-shadow: none;
  }
}
