.student-register-form {
  max-height: 78vh;
  overflow-y: auto;
  padding-right: 4px;
}

.foreground-media-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foreground-media-header-actions .btn-close {
  margin: 0;
}

.media-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  background: #000;
}

.media-stage:fullscreen video,
.media-stage:fullscreen iframe,
.media-stage:fullscreen model-viewer {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.youtube-clean-player {
  pointer-events: none;
  user-select: none;
}

#studentContentBody .uploaded-exercise-frame {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 460px;
  border: 0;
}

/* Student dashboard */
.student-dashboard-page {
  display: grid;
  gap: 14px;
}

.student-dashboard-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 210px;
  padding: 30px 34px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(118deg, #17356f 0%, #31599f 54%, #76aa4b 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(23, 53, 111, 0.22);
}

.student-dashboard-hero::before,
.student-dashboard-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.student-dashboard-hero::before {
  width: 300px;
  height: 300px;
  top: -185px;
  right: 22%;
}

.student-dashboard-hero::after {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -145px;
}

.student-dashboard-copy,
.student-dashboard-visual {
  position: relative;
  z-index: 1;
}

.student-dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.25px;
}

.student-dashboard-copy h1 {
  margin: 0;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 850;
  letter-spacing: -0.6px;
}

.student-dashboard-copy > p {
  margin: 5px 0 13px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.student-assignment-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.student-assignment-pill b {
  color: rgba(255, 255, 255, 0.35);
}

.student-dashboard-copy > .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 9px 15px;
  margin-top: 16px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: #4c1d95;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 9px 18px rgba(30, 10, 72, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.student-dashboard-copy > .btn:hover {
  background: #faf7ff;
  box-shadow: 0 11px 22px rgba(30, 10, 72, 0.24);
  transform: translateY(-2px);
}

.student-dashboard-visual {
  display: grid;
  place-items: center;
  width: 180px;
  height: 150px;
  margin-right: 34px;
}

.student-dashboard-visual > span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 53px;
  transform: rotate(-5deg);
  backdrop-filter: blur(8px);
}

.student-dashboard-visual > .bi-star-fill {
  position: absolute;
  color: #fde68a;
  font-size: 15px;
}

.student-dashboard-visual .star-one { top: 8px; right: 8px; }
.student-dashboard-visual .star-two { bottom: 10px; left: 5px; font-size: 11px; }

.student-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.student-metric {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 96px;
  gap: 13px;
  padding: 15px;
  border: 1px solid #dfe6f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.student-metric::before {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #2563eb;
  content: "";
}

.student-metric.violet::before { background: #75a93c; }
.student-metric.rose::before { background: #e11d48; }
.student-metric.green::before { background: #10b981; }

.student-metric:hover {
  border-color: #c8d3e2;
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
  transform: translateY(-2px);
}

.student-metric > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 19px;
}

.student-metric.blue > span { background: #eaf2ff; color: #1d4ed8; }
.student-metric.violet > span { background: #edf6df; color: #5b9631; }
.student-metric.rose > span { background: #fff0f3; color: #e11d48; }
.student-metric.green > span { background: #e9fbf4; color: #059669; }

.student-metric strong {
  display: block;
  color: #172033;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.student-metric h3 {
  margin: 4px 0 0;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.student-metric p {
  margin: 2px 0 0;
  color: #657287;
  font-size: 11px;
}

.student-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 14px;
}

.student-dashboard-card {
  padding: 18px;
  border: 1px solid #d8e0eb;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

.student-subject-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ebeff5;
}

.student-subject-panel > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-card-icon,
.student-help-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: #f1eafe;
  color: #6d28d9;
  font-size: 17px;
}

.student-subject-panel h2,
.student-subject-panel p,
.student-help-card h2,
.student-help-card p {
  margin: 0;
}

.student-subject-panel h2,
.student-help-card h2 {
  color: #1e293b;
  font-size: 15px;
  font-weight: 850;
}

.student-subject-panel p,
.student-help-card p {
  margin-top: 2px;
  color: #7e8a9d;
  font-size: 11px;
}

.link-button {
  padding: 6px;
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 850;
}

.student-subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 248px;
  padding: 14px 3px 2px 0;
  overflow-y: auto;
}

.student-subject-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  background: #fbfcfe;
  color: #526075;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.student-subject-card:hover {
  border-color: #c4b5fd;
  background: #faf7ff;
  color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 7px 15px rgba(76, 29, 149, 0.08);
}

.student-subject-card > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 17px;
}

.student-subject-card.tone-1 > span { background: #edf6df; color: #5b9631; }
.student-subject-card.tone-2 > span { background: #fff3e8; color: #d97706; }
.student-subject-card.tone-3 > span { background: #e9fbf4; color: #059669; }

.student-subject-card strong,
.student-subject-card small {
  display: block;
}

.student-subject-card strong { color: #273449; font-size: 12px; font-weight: 850; }
.student-subject-card small { margin-top: 2px; color: #8995a7; font-size: 11px; }

.student-help-card {
  background: linear-gradient(145deg, #fff 0%, #faf7ff 55%, #eff8ff 100%);
}

.student-help-icon {
  margin-bottom: 12px;
  background: #fff3d9;
  color: #d97706;
}

.student-help-card ol {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 15px 0;
  list-style: none;
}

.student-help-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #526075;
  font-size: 11px;
  font-weight: 700;
}

.student-help-card li b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ede9fe;
  color: #6d28d9;
}

.student-help-card > .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 39px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #5b21b6, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(76, 29, 149, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.student-help-card > .btn:hover {
  box-shadow: 0 10px 20px rgba(76, 29, 149, 0.22);
  transform: translateY(-1px);
}

.student-dashboard-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  gap: 8px;
  color: #8793a5;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .student-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .student-dashboard-hero { min-height: 230px; padding: 23px 20px; }
  .student-dashboard-visual { display: none; }
  .student-assignment-pill { align-items: flex-start; border-radius: 12px; flex-wrap: wrap; }
  .student-dashboard-metrics { grid-template-columns: 1fr; }
  .student-subject-grid { grid-template-columns: 1fr; }
  .student-subject-panel > header { align-items: flex-start; }
  .student-subject-panel > header .link-button { display: none; }
}
