.teacher-case-page {
  --case-green: #78d7ff;
  --case-blue: #7f8cff;
  --teacher-accent: #78d7ff;
  --teacher-violet: #8a78ff;
}

.teacher-case-page .case-hero::before {
  background: radial-gradient(circle, rgba(74,175,255,.22), rgba(120,93,255,.10) 46%, transparent 70%);
}

.teacher-case-page .case-stage {
  background: linear-gradient(145deg, #07111c, #0b2540 55%, #171534);
}

.teacher-shell {
  min-height: 563px;
  display: grid;
  grid-template-columns: 205px 1fr;
  background: linear-gradient(145deg, rgba(8,18,30,.94), rgba(11,26,45,.92));
}

.teacher-sidebar {
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,.09);
  background: rgba(5,14,24,.52);
}

.teacher-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 12px;
}

.teacher-logo b {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--teacher-accent), #a7e9ff);
  color: #061321;
}

.teacher-profile {
  margin-top: 42px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.teacher-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(120,215,255,.15);
  border: 1px solid rgba(120,215,255,.28);
  color: var(--teacher-accent);
  font: 600 11px "DM Mono", monospace;
}

.teacher-profile strong,
.teacher-profile span {
  display: block;
}

.teacher-profile strong {
  margin-top: 12px;
  font-size: 13px;
}

.teacher-profile span {
  margin-top: 4px;
  color: #718391;
  font-size: 10px;
}

.teacher-menu {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.teacher-menu div {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border-radius: 10px;
  color: #778a99;
  font-size: 11px;
}

.teacher-menu div:first-child {
  color: #dff6ff;
  background: rgba(120,215,255,.10);
}

.teacher-menu i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .72;
}

.teacher-dashboard {
  position: relative;
  padding: 42px;
  overflow: hidden;
}

.teacher-dashboard::after {
  content: "";
  position: absolute;
  width: 370px;
  height: 370px;
  right: -140px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,140,255,.18), transparent 68%);
}

.teacher-kicker {
  position: relative;
  z-index: 1;
  color: var(--teacher-accent);
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.teacher-dashboard h2 {
  position: relative;
  z-index: 1;
  margin: 13px 0 6px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.05em;
}

.teacher-dashboard > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #7f93a3;
  font-size: 13px;
}

.teacher-dashboard-grid {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 15px;
}

.teacher-panel {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 20px;
  background: rgba(4,15,27,.56);
}

.teacher-panel > span {
  color: #728696;
  font: 500 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.teacher-panel > strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: -.035em;
}

.teacher-class-panel {
  grid-row: span 2;
  min-height: 260px;
}

.teacher-lesson-progress {
  height: 7px;
  margin-top: 24px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}

.teacher-lesson-progress i {
  display: block;
  width: 66%;
  height: 100%;
  background: linear-gradient(90deg, var(--teacher-accent), var(--teacher-violet));
  border-radius: inherit;
}

.teacher-class-list {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}

.teacher-class-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #94a4b0;
  font-size: 11px;
}

.teacher-class-list b {
  color: #d9e7ef;
  font-weight: 600;
}

.teacher-payment-status {
  display: inline-flex;
  margin-top: 19px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #9effc4;
  border: 1px solid rgba(158,255,196,.24);
  background: rgba(46,207,112,.07);
  font-size: 10px;
  font-weight: 700;
}

.teacher-mini-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 52px;
  margin-top: 17px;
}

.teacher-mini-bars i {
  width: 12px;
  border-radius: 4px 4px 2px 2px;
  background: rgba(120,215,255,.34);
}

.teacher-mini-bars i:nth-child(1) { height: 28%; }
.teacher-mini-bars i:nth-child(2) { height: 58%; }
.teacher-mini-bars i:nth-child(3) { height: 43%; }
.teacher-mini-bars i:nth-child(4) { height: 78%; background: rgba(138,120,255,.55); }
.teacher-mini-bars i:nth-child(5) { height: 92%; background: var(--teacher-accent); }

.teacher-case-page .result-card {
  background: linear-gradient(145deg, rgba(120,215,255,.08), rgba(138,120,255,.05));
}

@media (max-width: 900px) {
  .teacher-shell { grid-template-columns: 145px 1fr; }
  .teacher-sidebar { padding-inline: 14px; }
  .teacher-dashboard { padding: 32px; }
  .teacher-dashboard-grid { grid-template-columns: 1fr; }
  .teacher-class-panel { grid-row: auto; }
  .teacher-case-page .case-stage { min-height: 810px; }
}

@media (max-width: 640px) {
  .teacher-shell { grid-template-columns: 1fr; }
  .teacher-sidebar { display: none; }
  .teacher-dashboard { padding: 28px 20px; }
  .teacher-dashboard h2 { font-size: 39px; }
  .teacher-case-page .case-stage { min-height: 760px; }
}
