*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#080b1a;color:#eef2ff}.topbar{display:flex;justify-content:space-between;align-items:center;padding:16px 32px;background:#0d1230;border-bottom:1px solid #26305f;position:sticky;top:0}.brand{font-weight:800;font-size:22px}.brand span{color:#4f7cff}nav a{color:#dbe5ff;text-decoration:none;margin-left:18px;font-weight:600}.container{max-width:1180px;margin:0 auto;padding:32px}.hero{min-height:70vh;display:flex;align-items:center;background:radial-gradient(circle at top right,#1729a8,transparent 35%),linear-gradient(135deg,#0b1028,#111936);border-radius:24px;padding:48px}.hero h1{font-size:56px;margin:0}.hero p{font-size:20px;color:#c7d2fe}.btn{display:inline-block;background:#2563eb;color:#fff;padding:12px 18px;border-radius:12px;text-decoration:none;border:0;font-weight:700;cursor:pointer}.card{background:#101735;border:1px solid #26305f;border-radius:18px;padding:22px;margin-bottom:22px;box-shadow:0 12px 35px rgba(0,0,0,.25)}.auth{max-width:420px;margin:60px auto}.auth input,.form-grid input,.form-grid select{width:100%;padding:12px;border-radius:10px;border:1px solid #33406f;background:#080b1a;color:#fff;margin-bottom:12px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-items:end}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}.stat{background:#101735;border:1px solid #26305f;border-radius:18px;padding:24px}.stat b{font-size:36px;display:block}.stat span{color:#bcc7ee}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid #26305f;padding:12px}th{color:#93a7ff}.video-wrap{position:relative;padding-top:56.25%;background:#000;border-radius:16px;overflow:hidden}.video-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.watermark{position:absolute;right:20px;bottom:18px;background:rgba(0,0,0,.45);padding:8px 12px;border-radius:10px;color:#fff;font-size:13px}.error{background:#451a1a;color:#fecaca;padding:10px;border-radius:10px}.hint{color:#aab5df}.footer{text-align:center;color:#8c99c5;padding:28px}.linkbtn{background:transparent;border:0;color:#ff8a8a;cursor:pointer;font-weight:700}@media(max-width:700px){.topbar{display:block}.topbar nav{margin-top:12px}.topbar nav a{display:inline-block;margin:6px}.hero h1{font-size:38px}.container{padding:18px}}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo-brand span {
    color: #4f7cff;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #0b1020;
  border-right: 1px solid #1f2a44;
  padding: 24px 18px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 40px;
}

.sidebar-logo img {
  width: 80px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.sidebar-logo h2 {
  color: white;
  font-size: 22px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-nav a {
  color: #dbe5ff;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 12px;
  transition: 0.3s;
  font-weight: 600;
}

.sidebar-nav a:hover {
  background: #172554;
}

.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
  padding: 32px;
}

.footer {
  text-align: center;
  color: #94a3b8;
  padding: 20px;
}

@media(max-width:900px){

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .layout {
    flex-direction: column;
  }

}

/* Phase 2 Access Control Styles */
.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.status-pending-payment {
  background: rgba(234, 179, 8, 0.15);
  color: #fde68a;
}

.status-completed {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.status-blocked {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.small-btn {
  padding: 8px 12px;
  font-size: 13px;
}

td select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #33406f;
  background: #080b1a;
  color: #fff;
}

/* Phase 3 Secure Signed Video Player */
.secure-note {
  color: #aab5df;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.35);
  padding: 10px 12px;
  border-radius: 12px;
  display: inline-block;
}

.secure-video-box {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #26305f;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
}

.secure-video {
  width: 100%;
  max-height: 78vh;
  display: block;
  background: #000;
}

.dynamic-watermark {
  position: absolute;
  top: 8%;
  left: 6%;
  z-index: 10;
  background: rgba(0,0,0,0.38);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  pointer-events: none;
  user-select: none;
  transition: all 0.8s ease;
  border: 1px solid rgba(255,255,255,0.18);
}
/* Phase 4 Watch Analytics */
.watch-progress-box{background:rgba(15,23,42,.7);border:1px solid #26305f;padding:14px;border-radius:14px;margin:14px 0}.watch-progress-meta{display:flex;justify-content:space-between;gap:12px;color:#cbd5e1;margin-bottom:10px}.progress-bar{width:100%;height:10px;background:#0f172a;border-radius:999px;overflow:hidden;border:1px solid #26305f}.progress-bar div{height:100%;background:linear-gradient(90deg,#2563eb,#22c55e);border-radius:999px;transition:width .4s ease}.mini-progress{width:90px;height:8px;background:#0f172a;border-radius:999px;overflow:hidden;border:1px solid #26305f;margin-bottom:4px}.mini-progress div{height:100%;background:linear-gradient(90deg,#2563eb,#22c55e)}

/* Phase 5 S3 Upload UI */
#videoFile {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #4f7cff;
  background: #080b1a;
  color: #fff;
}

#uploadStatusCard .progress-bar {
  margin-top: 12px;
}

/* Phase 6 Student Dashboard Search + UX */
.student-hero {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .45), transparent 35%),
    linear-gradient(135deg, #0b1028, #111936);
  border: 1px solid #26305f;
  border-radius: 24px;
  padding: 34px;
  margin-bottom: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.student-hero h1 {
  margin: 0;
  font-size: 34px;
}

.student-hero p {
  color: #c7d2fe;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #93c5fd !important;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

.student-stats {
  margin-bottom: 24px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}

.filter-card h2 {
  margin-top: 0;
}

.filter-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.filter-form input,
.filter-form select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #33406f;
  background: #080b1a;
  color: #fff;
}

.secondary-btn {
  background: #334155;
}

.recording-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.compact-grid {
  margin-bottom: 26px;
}

.recording-card {
  background: #101735;
  border: 1px solid #26305f;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  transition: .25s ease;
}

.recording-card:hover {
  transform: translateY(-3px);
  border-color: #4f7cff;
}

.recording-thumb {
  height: 120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(79,124,255,.55), transparent 30%),
    linear-gradient(135deg, #111936, #172554);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recording-thumb span {
  font-size: 34px;
  font-weight: 900;
  color: white;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recording-body {
  padding: 18px;
}

.recording-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.recording-badges span {
  background: rgba(37,99,235,.16);
  color: #bfdbfe;
  border: 1px solid rgba(79,124,255,.25);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.recording-body h3 {
  margin: 0 0 10px;
  line-height: 1.3;
}

.recording-body p {
  color: #cbd5e1;
  margin: 7px 0;
}

.mini-dashboard-progress {
  height: 9px;
  margin: 14px 0 12px;
}

.recording-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recording-footer small {
  color: #aab5df;
  font-weight: 700;
}

@media(max-width: 1050px) {
  .filter-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 650px) {
  .filter-form {
    grid-template-columns: 1fr;
  }

  .student-hero {
    padding: 24px;
  }

  .student-hero h1 {
    font-size: 26px;
  }
}

/* Phase 6.1 Corporate Dashboard Logo Upgrade */
.corporate-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 170px;
  position: relative;
  overflow: hidden;
}

.corporate-hero::after {
  content: "";
  position: absolute;
  right: 90px;
  top: 20px;
  width: 420px;
  height: 140px;
  background: radial-gradient(circle, rgba(79,124,255,.2), transparent 65%);
  filter: blur(8px);
}

.hero-logo-box {
  position: relative;
  z-index: 1;
  min-width: 230px;
  text-align: center;
}

.hero-logo-box img {
  width: 155px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.35));
}

.hero-logo-box span {
  display: block;
  margin-top: 4px;
  letter-spacing: .5em;
  color: #f97316;
  font-weight: 900;
  font-size: 13px;
}

.corporate-stats .stat {
  position: relative;
  padding-left: 86px;
  min-height: 110px;
}

.stat-icon {
  position: absolute;
  left: 24px;
  top: 30px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(37,99,235,.22);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 900;
}

.stat-icon.purple {
  background: rgba(147,51,234,.22);
  color: #c084fc;
}

.stat-icon.green {
  background: rgba(34,197,94,.18);
  color: #86efac;
}

.stat-icon.orange {
  background: rgba(249,115,22,.18);
  color: #fdba74;
}

.logo-thumb {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.4), transparent 35%),
    linear-gradient(135deg, #08111f, #111936);
  position: relative;
  flex-direction: column;
}

.logo-thumb img {
  width: 110px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,.45));
}

.logo-thumb small {
  color: #f97316;
  letter-spacing: .28em;
  font-size: 11px;
  font-weight: 900;
  margin-top: 6px;
}

.continue-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: stretch;
}

.continue-card .recording-thumb {
  height: auto;
  min-height: 150px;
}

.list-recording-grid {
  grid-template-columns: 1fr;
}

.list-card {
  display: grid;
  grid-template-columns: 145px 1fr;
}

.small-logo-thumb {
  height: auto;
  min-height: 135px;
}

.small-logo-thumb img {
  width: 92px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.progress-row strong {
  color: #22c55e;
  font-size: 20px;
}

.corporate-filter {
  border-color: rgba(79,124,255,.35);
}

@media(max-width: 900px) {
  .corporate-hero {
    display: block;
  }

  .hero-logo-box {
    margin-top: 18px;
    text-align: left;
  }

  .continue-card,
  .list-card {
    grid-template-columns: 1fr;
  }

  .continue-card .recording-thumb,
  .small-logo-thumb {
    min-height: 120px;
  }
}
/* Phase 7 Admin Controls */
.admin-control-table td { vertical-align: top; }
.admin-actions-stack { display: grid; gap: 10px; min-width: 520px; }
.inline-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.inline-control input, .inline-control select { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #33406f; background: #080b1a; color: #fff; }
.enrollment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.enrollment-list small { color: #94a3b8; }
.enrollment-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(37,99,235,.13); border: 1px solid rgba(79,124,255,.32); color: #bfdbfe; border-radius: 999px; padding: 6px 8px 6px 12px; }
.enrollment-pill button { border: 0; border-radius: 999px; background: rgba(239,68,68,.9); color: #fff; width: 22px; height: 22px; cursor: pointer; font-weight: 900; }
.danger-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.danger-btn, .success-btn { border: 0; border-radius: 999px; padding: 8px 13px; cursor: pointer; font-weight: 800; color: #fff; }
.danger-btn { background: #dc2626; }
.success-btn { background: #16a34a; }
@media(max-width: 900px) { .admin-actions-stack { min-width: 360px; } .inline-control { grid-template-columns: 1fr; } }

/* Phase 8 Materials Upload */
.file-label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.file-label input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #4f7cff;
  background: #080b1a;
  color: #fff;
}

.watch-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notes-btn {
  background: #16a34a;
}

#materialProgressWrap {
  margin-top: 12px;
}

/* Phase 9 Secure Materials Viewer */
.material-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.material-secure-box {
  position: relative;
  min-height: 75vh;
  border: 1px solid #26305f;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1020;
  margin-top: 18px;
}

.material-frame {
  width: 100%;
  height: 78vh;
  border: 0;
  background: #111827;
}

.material-image {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.material-watermark {
  position: absolute;
  z-index: 10;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,.42);
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 14px;
  border-radius: 999px;
  pointer-events: none;
  user-select: none;
  font-size: 13px;
  font-weight: 800;
}

.material-download-notice {
  padding: 48px;
  text-align: center;
}

.material-download-notice p {
  color: #cbd5e1;
}

.notes-btn {
  background: #16a34a;
}

/* Phase 10 Reports Center */
.report-stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 22px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.report-card {
  background: #101735;
  border: 1px solid #26305f;
  color: #eef2ff;
  text-decoration: none;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  transition: .25s ease;
}

.report-card:hover {
  transform: translateY(-3px);
  border-color: #4f7cff;
}

.report-card h3 {
  margin: 0 0 10px;
}

.report-card p {
  color: #cbd5e1;
  min-height: 66px;
}

.report-card span {
  color: #93c5fd;
  font-weight: 800;
}

.two-column-reports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.two-column-reports small {
  color: #94a3b8;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

@media(max-width: 900px) {
  .two-column-reports {
    grid-template-columns: 1fr;
  }
}

/* Phase 11 Team Users & Roles */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.role-card {
  background: rgba(15, 23, 42, .75);
  border: 1px solid #26305f;
  border-radius: 16px;
  padding: 16px;
}

.role-card h4 {
  margin: 0 0 8px;
  color: #bfdbfe;
}

.role-card p {
  margin: 0;
  color: #cbd5e1;
}

.role-badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.role-admin {
  background: rgba(239,68,68,.18);
  color: #fca5a5;
}

.role-training {
  background: rgba(37,99,235,.18);
  color: #93c5fd;
}

.role-support {
  background: rgba(34,197,94,.16);
  color: #86efac;
}

.role-viewer {
  background: rgba(234,179,8,.16);
  color: #fde68a;
}

.team-users-table td {
  vertical-align: top;
}

.team-action-stack {
  display: grid;
  gap: 10px;
  min-width: 560px;
}

@media(max-width: 900px) {
  .team-action-stack {
    min-width: 360px;
  }
}

/* Phase 12 PWA + Mobile */
@media(max-width: 768px) {

  body {
    font-size: 15px;
  }

  .sidebar {
    width: 100%;
    position: relative;
    min-height: auto;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 14px;
  }

  .stats,
  .report-grid,
  .role-grid,
  .two-column-reports {
    grid-template-columns: 1fr !important;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .card {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .secure-video {
    max-height: 240px;
  }

  .material-frame {
    height: 65vh;
  }

  .btn {
    width: 100%;
  }
}

/* Phase 13 Email OTP Login */
.login-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: #101735;
  border: 1px solid #26305f;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.login-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 14px;
}

.login-card h1 {
  margin: 0 0 8px;
}

.login-card p {
  color: #cbd5e1;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-form input {
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #33406f;
  background: #080b1a;
  color: #fff;
}

.login-divider {
  color: #94a3b8;
  margin: 18px 0;
}

.otp-btn {
  display: block;
  text-decoration: none;
  background: #16a34a;
}

.login-link {
  display: block;
  margin-top: 14px;
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
}

.success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.35);
  color: #86efac !important;
  padding: 10px;
  border-radius: 12px;
}

.error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.35);
  color: #fca5a5 !important;
  padding: 10px;
  border-radius: 12px;
}

/* Phase 15 Live Classes */
.live-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 18px;
}

.live-class-card {
  background: linear-gradient(180deg,#101735,#0b1020);
  border: 1px solid #26305f;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.live-class-card h3 {
  margin-top: 8px;
}

.live-badge {
  display: inline-block;
  background: rgba(239,68,68,.16);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.35);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.live-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.live-notes {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: #dbeafe;
}

.live-join-btn {
  margin-top: 18px;
  display: block;
  text-align: center;
  background: #dc2626;
}

/* Phase 15.1 Live Classes Corporate UI Fix */
.muted-text {
  color: #cbd5e1;
  margin-top: 6px;
}

.live-title-row {
  margin-bottom: 18px;
}

.live-admin-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.live-create-card textarea {
  min-height: 92px;
  resize: vertical;
}

.live-info-card {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.35), transparent 38%),
    linear-gradient(135deg, #101735, #0b1020);
  border: 1px solid #26305f;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.live-info-icon {
  width: 58px;
  height: 58px;
  background: rgba(37,99,235,.18);
  border: 1px solid rgba(79,124,255,.35);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.live-info-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
}

.live-student-hero {
  margin-bottom: 24px;
}

.live-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 18px;
}

.corporate-live-card {
  background:
    radial-gradient(circle at top right, rgba(220,38,38,.22), transparent 35%),
    linear-gradient(180deg,#101735,#0b1020);
  border: 1px solid #26305f;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transition: .25s ease;
}

.corporate-live-card:hover {
  transform: translateY(-3px);
  border-color: #4f7cff;
}

.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-badge {
  display: inline-block;
  background: rgba(239,68,68,.16);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.35);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.platform-pill {
  display: inline-block;
  background: rgba(37,99,235,.16);
  color: #bfdbfe;
  border: 1px solid rgba(79,124,255,.32);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.live-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.live-notes {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: #dbeafe;
}

.live-join-btn {
  margin-top: 18px;
  display: block;
  text-align: center;
  background: #dc2626;
}

.no-live-card {
  grid-column: 1/-1;
}

@media(max-width: 900px) {
  .live-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* Phase 16 Attendance */
.status-pill {
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.active-pill {
  background:rgba(16,185,129,.16);
  color:#6ee7b7;
  border:1px solid rgba(16,185,129,.35);
}

.inactive-pill {
  background:rgba(239,68,68,.16);
  color:#fca5a5;
  border:1px solid rgba(239,68,68,.35);
}

/* Phase 17 Assignments */
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.assignment-card {
  background: linear-gradient(180deg,#101735,#0b1020);
  border: 1px solid #26305f;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.assignment-card h3 {
  margin-top: 12px;
}

.assignment-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.assignment-feedback {
  margin: 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(37,99,235,.12);
  color: #dbeafe;
  border: 1px solid rgba(79,124,255,.28);
}

.review-form {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.review-form input,
.review-form select,
.review-form textarea,
.form-grid textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #33406f;
  background: #080b1a;
  color: #fff;
}

.form-grid textarea {
  min-height: 110px;
  resize: vertical;
}
.drive-sync-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.pending-pill {
  background: rgba(234,179,8,.16);
  color: #fde68a;
  border: 1px solid rgba(234,179,8,.35);
}

@media(max-width: 900px) {
  .drive-sync-grid {
    grid-template-columns: 1fr;
  }
}
.stats-grid{display:grid;gap:18px}
/* Phase 21 Polish & Stabilization */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg,#101735,#0b1020);
  border: 1px solid #26305f;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.error-card h1 {
  font-size: 84px;
  margin: 0;
  color: #93c5fd;
}

.error-card h2 {
  margin: 8px 0;
}

.error-card p {
  color: #cbd5e1;
}

code {
  display: inline-block;
  background: #080b1a;
  border: 1px solid #33406f;
  padding: 10px 14px;
  border-radius: 10px;
  color: #bfdbfe;
}

.sidebar {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
}

.sidebar-nav {
  padding-bottom: 40px;
}

.main-content {
  margin-left: 260px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #33406f;
  border-radius: 10px;
}
