:root {
  --bg: #151a24;
  --bg-deep: #151a24;
  --panel: #202a39;
  --panel-2: #263346;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f6fb;
  --muted: rgba(245, 246, 251, 0.58);
  --blue: #2563eb;
  --sidebar-border: #6f6b71;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 122, 255, 0) 24.66%, rgba(5, 122, 255, 0.12) 100%),
    #151a24;
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  position: fixed;
  inset: 18px auto 18px 18px;
  z-index: 3;
  display: flex;
  width: 339px;
  flex-direction: column;
  justify-content: space-between;
  padding: 82px 22px 17px;
  border: 0.8px solid var(--sidebar-border);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  box-shadow: none;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-nav a,
.support-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14.575px 11px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: all 0.2s ease;
}

.side-nav a:hover,
.support-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.side-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: rgba(255, 255, 255, 0.68);
}

.side-icon svg {
  width: 26px;
  height: 26px;
}

.side-bottom {
  display: grid;
  gap: 30px;
}

.support-link {
  margin: 0 13px 20px;
  padding: 18px 9px;
  border-color: rgba(255, 255, 255, 0.1);
  border-style: solid;
  border-width: 1px 0;
  border-radius: 0;
}

.student-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 2px;
  border-top: 0;
  font-size: 16px;
  line-height: 1;
}

.student-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.shell {
  width: calc(100% - 389px);
  margin-left: 370px;
  padding: 24px 19px 54px 0;
}

.gc-head h1 {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-hero {
  overflow: hidden;
  width: 100%;
  max-height: 350px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: #0d1725;
}

.brand-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.program-card {
  position: relative;
  display: flex;
  width: 174px;
  aspect-ratio: 0.69;
  align-items: flex-end;
  justify-content: center;
  padding: 34px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  text-transform: uppercase;
}

.program-card span {
  display: none;
}

.course-layout {
  display: grid;
  grid-template-columns: 755px minmax(0, 1fr);
  gap: 19px;
  align-items: start;
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 173.5px);
  gap: 19px;
  justify-content: flex-start;
  padding-bottom: 20px;
}

.module-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 254px;
  padding: 20px;
  overflow: hidden;
  border: 0.5px solid rgba(147, 147, 147, 0.35);
  border-radius: 14px;
  background-color: #151d27;
  background-position: center;
  background-size: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  text-transform: uppercase;
  transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0) scale(1);
  animation: unfold3D 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.module-cover:nth-child(1) { animation-delay: 0.1s; }
.module-cover:nth-child(2) { animation-delay: 0.2s; }
.module-cover:nth-child(3) { animation-delay: 0.3s; }
.module-cover:nth-child(4) { animation-delay: 0.4s; }
.module-cover:nth-child(5) { animation-delay: 0.5s; }
.module-cover:nth-child(6) { animation-delay: 0.6s; }
.module-cover:nth-child(7) { animation-delay: 0.7s; }
.module-cover:nth-child(8) { animation-delay: 0.8s; }
.module-cover:nth-child(9) { animation-delay: 0.9s; }
.module-cover:nth-child(n+10) { animation-delay: 1s; }

.module-cover::before {
  position: relative;
  z-index: 15;
  display: block;
  width: 90px;
  height: 28px;
  margin: 0 auto 20px;
  border: 0.1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(1px) saturate(180%);
  box-shadow:
    inset 0 0.1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -0.1px 0 rgba(255, 255, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  color: #fff;
  content: attr(data-module);
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 28px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.module-cover::after {
  position: absolute;
  top: 0;
  left: -150%;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.module-cover:hover {
  z-index: 2;
  transform: perspective(1000px) translateY(-12px) rotateX(2deg) scale(1.025);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15), 0 10px 15px rgba(37, 99, 235, 0.1);
}

.module-cover:hover::before {
  background-color: #2563eb;
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.module-cover:hover::after {
  left: 150%;
}

.bonus-actions {
  display: grid;
  gap: 14px;
  padding-top: 28px;
}

.bonus-actions a {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-radius: 16px;
  background: var(--blue);
  box-shadow: 0 15px 32px rgba(46, 109, 241, 0.18);
  font-size: 18px;
  font-weight: 800;
}

@keyframes unfold3D {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(-30deg) rotateY(10deg) translateY(60px) scale(0.9);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0) scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.crumbs span {
  color: rgba(255, 255, 255, 0.9);
}

.stream-title {
  margin: 0 0 30px;
  font-size: 28px;
}

.lesson-stream {
  display: grid;
  gap: 16px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 102px;
  padding: 14px 22px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(90deg, #2a3a56, #2a3340);
}

.lesson-thumb {
  display: grid;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 85%, rgba(73, 132, 186, 0.55), transparent 42%),
    linear-gradient(135deg, #101a24, #223a50);
  text-align: center;
  text-transform: uppercase;
}

.lesson-row.salebot .lesson-thumb {
  background: linear-gradient(135deg, #0b54f3, #00308f);
}

.lesson-thumb b {
  max-width: 118px;
  font-size: 16px;
  font-weight: 950;
  line-height: 0.98;
}

.lesson-info {
  display: grid;
  gap: 7px;
}

.lesson-info small,
.lesson-meta,
.lesson-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lesson-info strong {
  font-size: 17px;
  line-height: 1.2;
}

.lesson-state {
  justify-self: end;
  font-size: 24px;
}

.lesson {
  max-width: 1320px;
}

.lesson h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.lesson-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 34px;
}

.lesson-meta span {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
}

.content-panel,
.homework-panel,
.table-card {
  border: 0;
  background: transparent;
}

.content-panel {
  padding: 0;
}

.content-panel h2 {
  display: none;
}

.content-panel p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.42;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 24px;
  border-radius: 12px;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 40px 0;
}

.doc-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(46, 109, 241, 0.65);
  border-radius: 8px;
  background: rgba(46, 109, 241, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.attachment-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 650;
}

.attachments {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.attachments summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.attachments div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.homework-panel {
  margin-top: 36px;
  padding: 24px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(46, 39, 93, 0.42));
}

.lesson-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.lesson-nav a {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.lesson-nav a:last-child {
  justify-items: end;
  text-align: right;
}

.lesson-nav strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
}

.lesson-nav span {
  font-size: 14px;
}

.homework-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.homework-panel p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.35;
}

.homework-panel label {
  display: block;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

textarea,
input[type="file"] {
  width: 100%;
}

textarea {
  display: block;
  min-height: 52px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.button {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #151515;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.page-head,
.hero,
.grid,
.course-card,
.module,
.lesson-list,
.nested,
.stats,
.progress,
.eyebrow,
.status,
.flag {
  all: unset;
}

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

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

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
    margin: 10px;
    padding: 24px;
  }

  .shell {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }

  .module-card-grid,
  .course-layout {
    grid-template-columns: 1fr;
  }

  .lesson-row {
    grid-template-columns: 1fr;
  }
}
