:root{
  --dashboard-bg-1:#f7f3ff;
  --dashboard-bg-2:#eef3ff;
  --dashboard-surface:rgba(255,255,255,0.76);
  --dashboard-surface-strong:rgba(255,255,255,0.9);
  --dashboard-border:rgba(123,97,255,0.16);
  --dashboard-border-strong:rgba(123,97,255,0.24);
  --dashboard-shadow:0 24px 60px rgba(101,82,188,0.14);
  --dashboard-shadow-soft:0 14px 34px rgba(101,82,188,0.1);
  --dashboard-text:#211d36;
  --dashboard-muted:#726b8f;
  --dashboard-primary:#7b61ff;
  --dashboard-primary-dark:#5f48da;
  --dashboard-primary-soft:#ebe6ff;
  --dashboard-teal:#8ce5d1;
  --dashboard-pink:#ffc7df;
  --dashboard-green:#2fc98d;
  --dashboard-danger:#ff6d7a;
  --dashboard-dark:#231d3f;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:'Inter',sans-serif;
  color:var(--dashboard-text);
  background:
    radial-gradient(circle at top left, rgba(140,229,209,0.28), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(123,97,255,0.2), transparent 22%),
    linear-gradient(135deg,var(--dashboard-bg-1),var(--dashboard-bg-2));
  overflow-x:hidden;
}

body::before,
body::after{
  content:"";
  position:fixed;
  border-radius:50%;
  filter:blur(42px);
  pointer-events:none;
  z-index:0;
}

body::before{
  width:420px;
  height:420px;
  top:-120px;
  right:-100px;
  background:rgba(123,97,255,0.22);
}

body::after{
  width:360px;
  height:360px;
  bottom:-120px;
  left:-80px;
  background:rgba(140,229,209,0.18);
}

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

.sidebar{
  position:fixed;
  top:18px;
  left:18px;
  bottom:18px;
  width:88px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
  padding:18px 0;
  z-index:20;
  border-radius:30px;
  background:linear-gradient(180deg,rgba(37,31,66,0.96),rgba(53,44,92,0.94));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 30px 60px rgba(35,29,63,0.34);
}

.sidebar-brand{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(255,255,255,0.14),rgba(123,97,255,0.34));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.2);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}

.sidebar-brand:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 14px 24px rgba(123,97,255,0.32);
}

.sidebar-brand img{
  width:34px;
  height:34px;
  object-fit:contain;
}

.side-menu{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.item{
  position:relative;
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  color:rgba(255,255,255,0.72);
  font-size:22px;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.item-text{
  display:none;
}

.item::before{
  content:"";
  position:absolute;
  left:-14px;
  width:4px;
  height:34px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--dashboard-teal),#ffffff);
  opacity:0;
  transform:scaleY(.5);
  transition:opacity .2s ease, transform .2s ease;
}

.item::after{
  content:attr(data-label);
  position:absolute;
  left:66px;
  padding:9px 12px;
  border-radius:12px;
  background:rgba(35,29,63,0.96);
  color:#fff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.01em;
  opacity:0;
  transform:translateY(4px);
  pointer-events:none;
  white-space:nowrap;
  transition:opacity .2s ease, transform .2s ease;
}

.item:hover{
  color:#fff;
  background:rgba(255,255,255,0.12);
  transform:translateY(-2px);
}

.item:hover::after{
  opacity:1;
  transform:translateY(0);
}

.item.active{
  color:#fff;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  box-shadow:0 18px 32px rgba(123,97,255,0.35);
}

.item.active::before{
  opacity:1;
  transform:scaleY(1);
}

.topbar,
.main{
  position:relative;
  margin-left:124px;
}

.topbar{
  position:sticky;
  top:18px;
  z-index:40;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:18px 22px;
  margin-top:18px;
  margin-right:18px;
  border-radius:30px;
  background:rgba(255,255,255,0.62);
  border:1px solid rgba(255,255,255,0.72);
  backdrop-filter:blur(18px);
  overflow:visible;
  box-shadow:var(--dashboard-shadow-soft);
}

.top-left,
.top-right{
  display:flex;
  align-items:center;
  gap:14px;
}

.language-selector{
  position:relative;
  z-index:60;
}

.lang-btn{
  min-width:84px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px 0 12px;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,0.78);
  color:var(--dashboard-text);
  box-shadow:0 12px 24px rgba(101,82,188,0.1);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.lang-btn__icon{
  font-size:16px;
  line-height:1;
}

.lang-btn__text{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.lang-btn:hover{
  transform:translateY(-2px);
  background:#fff;
  box-shadow:0 18px 30px rgba(101,82,188,0.14);
}

.lang-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:188px;
  display:none;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:18px;
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(123,97,255,0.12);
  box-shadow:0 18px 34px rgba(101,82,188,0.14);
  backdrop-filter:blur(18px);
  z-index:30;
}

.lang-dropdown.active{
  display:flex;
}

.lang-dropdown [data-lang]{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 12px;
  border:none;
  border-radius:14px;
  background:transparent;
  color:var(--dashboard-text);
  text-align:left;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.lang-dropdown [data-lang]:hover{
  color:var(--dashboard-primary-dark);
  background:rgba(123,97,255,0.1);
  transform:translateX(2px);
}

.lang-dropdown [data-lang].is-active{
  color:var(--dashboard-primary-dark);
  background:rgba(123,97,255,0.14);
  box-shadow:inset 0 0 0 1px rgba(123,97,255,0.12);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
}

.brand-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--dashboard-primary);
}

.brand h2{
  margin:0;
  font-family:'Baloo 2',cursive;
  font-size:32px;
  line-height:1;
  color:var(--dashboard-primary);
}

.logo-inline{
  width:46px;
  height:46px;
  object-fit:contain;
}

.logout-btn{
  border:none;
  padding:12px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,#ff7f8c,#ff6674);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(255,109,122,0.24);
  transition:transform .2s ease, box-shadow .2s ease;
}

.logout-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 34px rgba(255,109,122,0.32);
}

#avatar{
  width:46px;
  height:46px;
  border-radius:16px;
  object-fit:cover;
  border:2px solid rgba(123,97,255,0.3);
  box-shadow:0 12px 26px rgba(123,97,255,0.18);
}

.main{
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,360px);
  gap:24px;
  padding:22px 18px 30px;
  align-items:start;
}

.main--full{
  grid-template-columns:1fr;
}

.left,
.right{
  min-width:0;
}

.right{
  position:sticky;
  top:114px;
}

#dashboard-section,
#exam-section,
#classes-section,
#bootcamp-section,
#profile-section{
  animation:dashboardFade .3s ease;
}

@keyframes dashboardFade{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.hero,
.redeem,
.panel,
.card-stat{
  position:relative;
  background:var(--dashboard-surface);
  border:1px solid rgba(255,255,255,0.74);
  border-radius:28px;
  box-shadow:var(--dashboard-shadow);
  backdrop-filter:blur(18px);
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hero:hover,
.redeem:hover,
.panel:hover,
.card-stat:hover{
  transform:translateY(-3px);
  box-shadow:0 32px 70px rgba(101,82,188,0.18);
  border-color:var(--dashboard-border-strong);
}

.hero,
.redeem,
.panel{
  padding:26px;
  margin-bottom:22px;
}

.panel-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  flex-wrap:wrap;
}

.panel-heading h3{
  margin:0;
}

.panel-note{
  margin:0 0 14px;
  color:var(--dashboard-muted);
  font-size:14px;
}

.panel-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.panel-error{
  padding:12px 14px;
  border-radius:14px;
  background:#fff0f0;
  color:#a21f1f;
  font-weight:700;
}

.card-stat{
  padding:22px;
}

.student-school-panel{
  position:relative;
  padding:24px;
  margin-bottom:22px;
  overflow:hidden;
  border:1px solid var(--dashboard-border);
  border-radius:26px;
  background:
    radial-gradient(circle at 92% 8%,rgba(140,229,209,.32),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.9),rgba(240,237,255,.92));
  box-shadow:var(--dashboard-shadow-soft);
}

.student-school-heading{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.student-school-heading h2{
  margin:7px 0 4px;
  font-family:'Baloo 2',sans-serif;
  font-size:clamp(1.6rem,3vw,2.2rem);
}

.student-school-heading p{
  margin:0;
  color:var(--dashboard-muted);
}

.student-school-role{
  min-width:110px;
  padding:12px 15px;
  border:1px solid rgba(123,97,255,.15);
  border-radius:16px;
  text-align:center;
  background:rgba(255,255,255,.8);
}

.student-school-role span,
.student-school-role strong{
  display:block;
}

.student-school-role span{
  color:var(--dashboard-muted);
  font-size:.74rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.student-school-role strong{
  margin-top:4px;
  color:var(--dashboard-primary-dark);
}

.student-school-stats{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.student-school-stats>div{
  min-width:125px;
  padding:12px 14px;
  border:1px solid var(--dashboard-border);
  border-radius:15px;
  background:rgba(255,255,255,.78);
}

.student-school-stats span{
  color:var(--dashboard-muted);
  font-size:.78rem;
  font-weight:700;
}

.student-school-stats strong{
  display:block;
  margin-top:3px;
  font-size:1.3rem;
}

.student-groups-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.student-group-card{
  padding:14px 16px;
  border:1px solid var(--dashboard-border);
  border-radius:16px;
  background:rgba(255,255,255,.84);
}

.student-group-card strong,
.student-group-card span{
  display:block;
}

.student-group-card span{
  margin-top:5px;
  color:var(--dashboard-muted);
  font-size:.82rem;
}

.student-group-courses{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.student-group-courses small{
  padding:5px 8px;
  border-radius:999px;
  color:#14794b;
  font-size:.72rem;
  font-weight:800;
  background:rgba(20,121,75,.09);
}

.student-group-courses small.upcoming{
  color:#6b4cc5;
  background:rgba(115,87,245,.09);
}

.student-group-courses small.overdue{
  color:#b42318;
  background:rgba(180,35,24,.08);
}

.student-group-courses small.empty{
  padding:0;
  color:var(--dashboard-muted);
  font-weight:600;
  background:transparent;
}

.student-school-empty{
  grid-column:1/-1;
  margin:0;
  padding:12px 0 0;
  color:var(--dashboard-muted);
}

.student-activities-panel{
  padding:24px;
  margin-bottom:22px;
  border:1px solid var(--dashboard-border);
  border-radius:26px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--dashboard-shadow-soft);
}

.student-activities-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.student-activities-heading h2{
  margin:7px 0 4px;
  font-family:'Baloo 2',sans-serif;
  font-size:clamp(1.6rem,3vw,2.2rem);
}

.student-activities-heading p{
  max-width:680px;
  margin:0;
  color:var(--dashboard-muted);
}

.student-activity-count{
  min-width:110px;
  padding:12px 15px;
  border:1px solid var(--dashboard-border);
  border-radius:16px;
  text-align:center;
  background:#fff;
}

.student-activity-count span,.student-activity-count strong{display:block}
.student-activity-count span{color:var(--dashboard-muted);font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.student-activity-count strong{margin-top:4px;color:var(--dashboard-primary-dark);font-size:1.35rem}
.student-activities-list{display:grid;gap:14px;margin-top:18px}
.student-activity-card{padding:18px;border:1px solid var(--dashboard-border);border-radius:19px;background:#fff}
.student-activity-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.student-activity-card h3{margin:4px 0;font-family:'Baloo 2',sans-serif;font-size:1.3rem}
.student-activity-card p{margin:6px 0;color:var(--dashboard-muted);line-height:1.55;white-space:pre-wrap}
.student-activity-state{padding:7px 10px;border-radius:999px;color:var(--dashboard-primary-dark);font-size:.73rem;font-weight:800;background:rgba(123,97,255,.1)}
.student-activity-state.late{color:#b42318;background:rgba(180,35,24,.08)}
.student-submission-form{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--dashboard-border)}
.student-submission-form label{display:grid;gap:7px;color:var(--dashboard-muted);font-size:.78rem;font-weight:800}
.student-submission-form textarea,.student-submission-form input[type='file']{width:100%;padding:11px 12px;border:1px solid var(--dashboard-border);border-radius:13px;color:var(--dashboard-text);font:inherit;background:#fff}
.student-submission-form button{justify-self:start;padding:11px 15px;border:0;border-radius:12px;color:#fff;font-weight:800;background:var(--dashboard-primary)}
.student-submission-status{min-height:20px;margin:2px 0 0!important;font-weight:700}
.student-submission-status.success{color:#14794b}.student-submission-status.error{color:#b42318}
.student-grade-result{margin-top:14px;padding:14px;border-radius:15px;color:#18583d;background:rgba(20,121,75,.08)}
.student-grade-result strong,.student-grade-result span{display:block}
.student-grade-result span{margin-top:5px;font-size:.85rem}
.student-notifications-panel{padding:24px;margin-bottom:22px;border:1px solid var(--dashboard-border);border-radius:26px;background:rgba(255,255,255,.9);box-shadow:var(--dashboard-shadow-soft)}
.student-notifications-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.student-notifications-heading h2{margin:7px 0 0;font-family:'Baloo 2',sans-serif;font-size:clamp(1.6rem,3vw,2.2rem)}
.student-notification-actions{display:flex;align-items:center;gap:10px}
.student-notification-actions button{padding:9px 12px;border:1px solid var(--dashboard-border);border-radius:11px;color:var(--dashboard-primary-dark);font-weight:800;background:#fff}
.student-notification-badge{min-width:25px;padding:4px 7px;border-radius:999px;color:#fff;text-align:center;font-size:.76rem;font-weight:900;background:var(--dashboard-primary)}
.student-notifications-list{display:grid;gap:10px;margin-top:18px}
.student-notification{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--dashboard-border);border-radius:16px;background:#fff}
.student-notification.unread{border-color:var(--dashboard-border-strong);box-shadow:0 8px 18px rgba(101,82,188,.08)}
.student-notification-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;color:#fff;font-weight:900;background:linear-gradient(135deg,var(--dashboard-primary),#a18cff)}
.student-notification-copy{min-width:0;flex:1}
.student-notification-copy strong,.student-notification-copy span,.student-notification-copy small{display:block}
.student-notification-copy span{margin-top:3px;color:var(--dashboard-muted);font-size:.85rem}
.student-notification-copy small{margin-top:5px;color:var(--dashboard-muted);font-size:.72rem}
.student-notification button{padding:7px 9px;border:1px solid var(--dashboard-border);border-radius:9px;color:var(--dashboard-primary-dark);font-weight:800;background:#fff}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);
  gap:24px;
  min-height:250px;
  background:
    linear-gradient(140deg,rgba(255,255,255,0.82),rgba(243,239,255,0.96));
}

@media(max-width:680px){
  .student-school-heading{
    flex-direction:column;
  }

  .student-activities-heading{
    display:block;
  }

  .student-activity-count{
    width:max-content;
    margin-top:14px;
  }

  .student-activity-card-head{
    display:block;
  }

  .student-activity-state{
    display:inline-block;
    margin-top:10px;
  }

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

  .student-school-role{
    text-align:left;
  }

  .student-school-stats,
  .student-groups-list{
    display:grid;
    grid-template-columns:1fr;
  }
}

.hero::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  right:-50px;
  top:-50px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(123,97,255,0.16), transparent 62%);
}

.hero-copy,
.hero-aside{
  position:relative;
  z-index:1;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}

.hero-kicker{
  display:inline-flex;
  align-self:flex-start;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(123,97,255,0.12);
  color:var(--dashboard-primary-dark);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero h1{
  margin:0;
  font-size:clamp(34px,5vw,48px);
  line-height:.98;
  letter-spacing:-.03em;
}

.hero-subtitle{
  max-width:640px;
  margin:0;
  color:var(--dashboard-muted);
  font-size:16px;
  line-height:1.7;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:4px;
}

.hero-aside{
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:center;
}

.hero-aside-card{
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(123,97,255,0.12);
  border-radius:22px;
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
  padding:22px;
}

.hero-aside-card strong{
  display:block;
  margin-top:8px;
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.hero-aside-card p{
  margin:10px 0 0;
  color:var(--dashboard-muted);
  line-height:1.6;
}

.hero-aside-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--dashboard-primary);
}

.hero-tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:13px;
  font-weight:700;
}

.primary,
.secondary,
.redeem button,
.btn-primary,
.btn-danger,
.admin-add-course button,
.course-admin-actions button,
.code-generate button,
.bootcamp-btn{
  border:none;
  border-radius:16px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.primary,
.secondary,
.redeem button,
.btn-primary,
.admin-add-course button,
.course-admin-actions button,
.code-generate button{
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  box-shadow:0 16px 28px rgba(123,97,255,0.22);
}

.btn-danger{
  padding:12px 18px;
  background:linear-gradient(135deg,#ff4d4d,#ff7a7a);
  color:#fff;
  box-shadow:0 16px 28px rgba(255,77,77,.18);
}

.primary:hover,
.secondary:hover,
.redeem button:hover,
.btn-primary:hover,
.btn-danger:hover,
.admin-add-course button:hover,
.course-admin-actions button:hover,
.code-generate button:hover,
.bootcamp-btn:hover{
  transform:translateY(-2px);
}

.primary{
  padding:14px 22px;
  font-size:15px;
}

.secondary{
  padding:12px 18px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}

.enrollments-scroll{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:420px;
  overflow-y:auto;
  padding-right:6px;
}

.enrollment-card{
  display:grid;
  grid-template-columns:minmax(180px,.8fr) minmax(240px,1.2fr);
  gap:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 25px rgba(0,0,0,.07);
}

.enrollment-main h4{
  margin:0 0 5px;
  color:var(--dashboard-text);
}

.enrollment-main span,
.enrollment-main small,
.enrollment-detail span{
  display:block;
  color:var(--dashboard-muted);
  line-height:1.45;
}

.enrollment-main span{
  font-weight:800;
  color:var(--dashboard-primary);
}

.enrollment-detail{
  display:grid;
  gap:5px;
  font-size:14px;
}

.enrollment-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-top:10px;
}

.enrollment-actions button{
  border:none;
  border-radius:12px;
  padding:9px 12px;
  background:#ff5b5b;
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.card-stat{
  min-height:124px;
}

.card-stat::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(123,97,255,0.08),transparent 60%);
}

.card-stat--courses::before{
  background:linear-gradient(135deg,rgba(140,229,209,0.18),transparent 65%);
}

.card-stat span,
.card-stat strong{
  position:relative;
  z-index:1;
}

.card-stat span{
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--dashboard-muted);
}

.card-stat strong{
  display:block;
  margin-top:12px;
  font-size:42px;
  line-height:1;
}

.redeem h3,
.panel h3{
  margin:0;
  font-size:22px;
  line-height:1.2;
}

.redeem-help,
.panel p{
  color:var(--dashboard-muted);
  line-height:1.6;
}

.redeem-help{
  margin:10px 0 0;
  max-width:640px;
}

.redeem-box{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.redeem input,
.admin-input-group input,
.admin-input-group select,
.select-courses,
.admin-filters input,
.admin-filters select,
.admin-users-container input,
.admin-add-course input,
.module-editor textarea{
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(123,97,255,0.14);
  background:rgba(255,255,255,0.9);
  color:var(--dashboard-text);
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.8);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.redeem input:focus,
.admin-input-group input:focus,
.admin-input-group select:focus,
.select-courses:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.admin-users-container input:focus,
.admin-add-course input:focus,
.module-editor textarea:focus{
  border-color:rgba(123,97,255,0.38);
  box-shadow:0 0 0 5px rgba(123,97,255,0.08);
  background:#fff;
}

.admin-input-group input[readonly]{
  color:var(--dashboard-muted);
  background:rgba(245,242,255,0.78);
  cursor:not-allowed;
}

.redeem button{
  padding:0 20px;
  white-space:nowrap;
}

#codeMsg{
  min-height:20px;
  margin:12px 0 0;
  font-size:13px;
  color:var(--dashboard-primary-dark);
  font-weight:600;
}

.section-title{
  margin:0 0 18px;
  font-size:32px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.section-title--left{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.section-title--left::after{
  content:"";
  width:84px;
  height:5px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--dashboard-primary),rgba(140,229,209,0.85));
}

.courses{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.courses > p{
  margin:0;
  padding:22px 24px;
  border-radius:22px;
  background:rgba(255,255,255,0.72);
  border:1px dashed rgba(123,97,255,0.22);
  color:var(--dashboard-muted);
  text-align:center;
}

.course-row{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.course-row-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.course-row-head--empty{
  align-items:center;
  padding:18px;
  border:1px solid rgba(123,97,255,0.12);
  border-radius:18px;
  background:rgba(255,255,255,0.72);
}

.course-row-head--empty p{
  margin:0;
  color:var(--dashboard-muted);
  font-weight:800;
}

.course-title{
  margin:0;
  font-size:24px;
  letter-spacing:-.02em;
}

.validity-badge{
  min-width:190px;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(47,201,141,0.14),rgba(140,229,209,0.18));
  border:1px solid rgba(47,201,141,0.18);
  color:#147a56;
  box-shadow:0 12px 22px rgba(47,201,141,0.08);
}

.validity-badge.expired{
  background:rgba(255,109,122,0.12);
  border-color:rgba(255,109,122,0.18);
  color:#a52636;
}

.validity-badge span{
  font-weight:900;
  line-height:1.2;
}

.validity-badge small{
  color:inherit;
  opacity:.76;
  font-size:12px;
  font-weight:700;
}

.course-row-lessons{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x proximity;
}

.course-row-lessons::-webkit-scrollbar{
  height:8px;
}

.course-row-lessons::-webkit-scrollbar-thumb{
  background:rgba(123,97,255,0.2);
  border-radius:999px;
}

.lesson-card{
  min-width:280px;
  max-width:280px;
  flex:0 0 auto;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,0.95),rgba(247,244,255,0.98));
  border:1px solid rgba(123,97,255,0.12);
  box-shadow:0 14px 28px rgba(101,82,188,0.1);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.lesson-card:hover{
  transform:translateY(-4px);
  border-color:rgba(123,97,255,0.22);
  box-shadow:0 22px 36px rgba(101,82,188,0.15);
}

.lesson-card.locked{
  cursor:not-allowed;
  opacity:.65;
  background:linear-gradient(180deg,rgba(248,248,252,0.96),rgba(241,241,246,0.96));
}

.lesson-card h4{
  margin:0;
  font-size:16px;
  line-height:1.35;
}

.lesson-card small{
  color:var(--dashboard-muted);
  font-weight:600;
}

.progress-bar{
  width:100%;
  height:10px;
  background:rgba(123,97,255,0.1);
  border-radius:999px;
  overflow:hidden;
}

.progress{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),#a492ff 70%,var(--dashboard-teal));
}

.panel > p{
  margin:12px 0 0;
}

.diagnostic-panel{
  display:grid;
  grid-template-columns:minmax(250px,.88fr) minmax(0,1.12fr);
  gap:18px;
  padding:26px;
  margin-bottom:24px;
  border-radius:28px;
  background:linear-gradient(145deg,rgba(255,255,255,0.88),rgba(244,241,255,0.94));
  border:1px solid rgba(255,255,255,0.74);
  box-shadow:var(--dashboard-shadow);
  overflow:hidden;
}

.diagnostic-intro{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}

.diagnostic-intro h2{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.diagnostic-intro p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.65;
}

.diagnostic-kpis{
  display:grid;
  gap:10px;
}

.diagnostic-kpis span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(123,97,255,0.1);
  color:var(--dashboard-muted);
  font-weight:700;
}

.diagnostic-kpis strong{
  color:var(--dashboard-text);
}

.diagnostic-workbench{
  display:grid;
  gap:14px;
}

.diagnostic-progress,
.diagnostic-card,
.diagnostic-result{
  border:1px solid rgba(123,97,255,0.12);
  background:rgba(255,255,255,0.82);
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
}

.diagnostic-progress{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  padding:14px 16px;
  border-radius:20px;
}

.diagnostic-progress span{
  color:var(--dashboard-muted);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.diagnostic-progress strong{
  color:var(--dashboard-primary-dark);
}

.diagnostic-progress div{
  grid-column:1 / -1;
  height:10px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  overflow:hidden;
}

.diagnostic-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),var(--dashboard-teal));
}

.diagnostic-card{
  min-height:310px;
  padding:18px;
  border-radius:24px;
}

.diagnostic-question-head{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:start;
  margin-bottom:16px;
}

.diagnostic-question-head > span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:var(--dashboard-dark);
  color:#fff;
  font-weight:900;
}

.diagnostic-question-head strong{
  display:block;
  font-size:17px;
  line-height:1.35;
}

.diagnostic-question-head small{
  display:inline-flex;
  margin-top:10px;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.diagnostic-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.diagnostic-option{
  min-height:58px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(123,97,255,0.14);
  background:#fff;
  color:var(--dashboard-text);
  font-weight:800;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.diagnostic-option:hover{
  transform:translateY(-2px);
  border-color:rgba(123,97,255,0.3);
  box-shadow:0 14px 24px rgba(101,82,188,0.1);
}

.diagnostic-option:disabled,
.diagnostic-sort-row button:disabled,
.diagnostic-confirm-order:disabled,
.diagnostic-match select:disabled,
.diagnostic-budget input:disabled,
.diagnostic-textarea:disabled{
  cursor:not-allowed;
  opacity:.78;
}

.diagnostic-option:disabled:hover{
  transform:none;
  box-shadow:none;
}

.diagnostic-option.selected{
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  box-shadow:0 16px 28px rgba(123,97,255,0.22);
}

.diagnostic-feedback{
  margin:14px 0 0;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(140,229,209,0.16);
  color:#276b62;
  line-height:1.55;
  font-weight:700;
}

.diagnostic-feedback strong{
  display:block;
  margin-bottom:3px;
  color:inherit;
}

.diagnostic-feedback.try{
  background:rgba(255,109,122,0.12);
  color:#9a3040;
}

.diagnostic-feedback.ok{
  background:rgba(47,201,141,0.14);
  color:#147a56;
}

.diagnostic-sort,
.diagnostic-match,
.diagnostic-budget{
  display:grid;
  gap:10px;
}

.diagnostic-sort-row,
.diagnostic-match label,
.diagnostic-budget label{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(123,97,255,0.12);
}

.diagnostic-sort-row span{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-weight:900;
}

.diagnostic-sort-row button,
.diagnostic-confirm-order,
.diagnostic-nav button,
.diagnostic-result button{
  border:none;
  border-radius:12px;
  padding:9px 12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-weight:900;
  cursor:pointer;
}

.diagnostic-confirm-order{
  min-height:46px;
  background:linear-gradient(135deg,var(--dashboard-dark),#40356d);
  color:#fff;
}

.diagnostic-sort-row div{
  display:flex;
  gap:6px;
}

.diagnostic-match label{
  grid-template-columns:minmax(120px,.7fr) minmax(0,1fr);
}

.diagnostic-match span,
.diagnostic-budget span{
  color:var(--dashboard-text);
  font-weight:900;
  text-transform:capitalize;
}

.diagnostic-match select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(123,97,255,0.14);
  background:rgba(255,255,255,0.9);
}

.diagnostic-textarea{
  width:100%;
  min-height:140px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(123,97,255,0.14);
  background:#fff;
  color:var(--dashboard-text);
  resize:vertical;
  outline:none;
}

.diagnostic-budget label{
  grid-template-columns:110px minmax(0,1fr) 44px;
}

.diagnostic-budget input{
  accent-color:var(--dashboard-primary);
}

.diagnostic-total{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,109,122,0.12);
  color:#a52636;
  font-weight:900;
  text-align:center;
}

.diagnostic-total.ok{
  background:rgba(47,201,141,0.14);
  color:#147a56;
}

.diagnostic-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.diagnostic-nav button{
  min-height:48px;
  flex:1 1 0;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  box-shadow:0 14px 24px rgba(123,97,255,0.18);
}

.diagnostic-nav button:disabled{
  opacity:.46;
  cursor:not-allowed;
  box-shadow:none;
}

.diagnostic-result{
  display:grid;
  grid-template-columns:1fr auto auto auto auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border-radius:20px;
}

.diagnostic-result span{
  color:var(--dashboard-muted);
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.diagnostic-result strong{
  font-size:28px;
  color:var(--dashboard-primary-dark);
}

.diagnostic-result p{
  margin:0;
  color:var(--dashboard-muted);
  font-weight:800;
}

.diagnostic-save-btn{
  background:linear-gradient(135deg,var(--dashboard-green),#57dbab) !important;
  color:#fff !important;
}

.diagnostic-save-btn:disabled{
  opacity:.52;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.diagnostic-summary-hero,
.diagnostic-summary-panel{
  border:1px solid rgba(123,97,255,0.12);
  background:rgba(255,255,255,0.82);
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
}

.diagnostic-summary-hero{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  padding:24px;
  border-radius:24px;
}

.diagnostic-summary-hero h2{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.diagnostic-summary-hero p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.65;
}

.diagnostic-summary-score{
  display:flex;
  align-items:flex-end;
  gap:12px;
  padding:16px;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(123,97,255,0.12),rgba(140,229,209,0.18));
}

.diagnostic-summary-score strong{
  color:var(--dashboard-primary-dark);
  font-size:54px;
  line-height:.9;
}

.diagnostic-summary-score span{
  color:var(--dashboard-muted);
  font-weight:900;
}

.diagnostic-retake-btn{
  min-height:52px;
  padding:12px 18px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(123,97,255,0.22);
}

.diagnostic-summary-panel{
  display:grid;
  gap:16px;
  padding:20px;
  border-radius:24px;
}

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

.diagnostic-metric-grid article{
  min-height:112px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
}

.diagnostic-metric-grid span,
.diagnostic-metric-grid small{
  display:block;
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.diagnostic-metric-grid strong{
  display:block;
  margin-top:10px;
  color:var(--dashboard-text);
  font-size:21px;
  line-height:1.15;
}

.diagnostic-metric-grid small{
  margin-top:8px;
  text-transform:none;
  letter-spacing:0;
}

.diagnostic-area-table{
  display:grid;
  gap:10px;
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}

.diagnostic-area-row{
  display:grid;
  grid-template-columns:minmax(150px,.8fr) minmax(120px,1fr) 54px;
  gap:12px;
  align-items:center;
  padding:13px;
  border-radius:16px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
}

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

.diagnostic-area-row strong{
  font-size:14px;
}

.diagnostic-area-row span{
  margin-top:4px;
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:700;
}

.diagnostic-area-bar{
  height:10px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  overflow:hidden;
}

.diagnostic-area-bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),var(--dashboard-teal));
}

.diagnostic-area-row b{
  color:var(--dashboard-primary-dark);
  text-align:right;
}

.assistant-panel{
  padding:18px;
}

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

.ai-metric-summary{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.ai-summary-pill{
  min-width:130px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(130,108,255,.16);
  background:rgba(255,255,255,.86);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ai-summary-pill span{
  color:#655f7f;
  font-size:.78rem;
  font-weight:700;
}

.ai-summary-pill strong{
  color:#211b3d;
  font-size:1.08rem;
}

.ai-metric-group{
  border:1px solid rgba(130,108,255,.18);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.78);
}

.ai-metric-group--wide{
  grid-column:1 / -1;
}

.ai-metric-group h4{
  margin:0 0 10px;
  color:#211b3d;
  font-size:.95rem;
}

.ai-metric-row,
.ai-alert-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-top:1px solid rgba(130,108,255,.12);
  color:#5f5a7a;
}

.ai-metric-row:first-of-type,
.ai-alert-row:first-of-type{
  border-top:0;
}

.ai-metric-row strong{
  color:#7a5cff;
}

.ai-student-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-top:1px solid rgba(130,108,255,.12);
}

.ai-student-row:first-of-type{
  border-top:0;
}

.ai-student-row div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.ai-student-row strong{
  color:#211b3d;
}

.ai-student-row span,
.ai-student-row small{
  color:#655f7f;
}

.ai-student-row button,
.ai-alert-row button{
  align-self:flex-start;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(130,108,255,.18);
  background:#fff;
  color:#31285f;
  font-weight:800;
  cursor:pointer;
}

.ai-student-row button:hover,
.ai-alert-row button:hover{
  border-color:rgba(130,108,255,.34);
}

.ai-alert-row{
  align-items:flex-start;
  flex-direction:column;
  gap:3px;
  border-radius:12px;
  padding:10px;
  margin-bottom:8px;
  background:#fff8e8;
}

.ai-alert-row.critical{
  background:#fff1f2;
}

.ai-alert-row strong{
  color:#9b1c1c;
}

.ai-alert-row span,
.ai-alert-row small{
  color:#655f7f;
}

.ai-student-detail{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(130,108,255,.18);
  background:rgba(255,255,255,.86);
}

.ai-student-detail-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.ai-student-detail-header h4{
  margin:0;
  color:#211b3d;
}

.ai-student-detail-header span,
.ai-student-detail-header small{
  display:block;
  color:#655f7f;
}

.ai-student-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.ai-detail-card{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(123,97,255,.05);
  border:1px solid rgba(123,97,255,.12);
}

.ai-detail-card h5{
  margin:0 0 8px;
  color:#211b3d;
  font-size:.92rem;
}

.ai-detail-card p{
  margin:0;
  color:#655f7f;
}

.ai-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ai-chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(130,108,255,.16);
  color:#40366f;
  font-size:.82rem;
  font-weight:700;
}

.ai-activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ai-activity-row{
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(130,108,255,.14);
}

.ai-activity-row strong,
.ai-activity-row span,
.ai-activity-row small{
  display:block;
}

.ai-activity-row strong{
  color:#211b3d;
}

.ai-activity-row span,
.ai-activity-row small{
  color:#655f7f;
  margin-top:4px;
}

#analytics .stats{
  margin-top:18px;
  margin-bottom:0;
}

#adminPanel{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.admin-view-switcher{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 24px;
  padding:12px 14px;
  border:1px solid var(--dashboard-border);
  border-radius:20px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--dashboard-shadow-soft);
  backdrop-filter:blur(18px);
  animation:admin-view-enter .45s cubic-bezier(.2,.8,.2,1) both;
}

.admin-view-switcher>div{
  display:flex;
  gap:8px;
}

.admin-view-switcher a,
.admin-view-switcher button{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border:0;
  border-radius:13px;
  color:var(--dashboard-muted);
  font-size:.84rem;
  font-weight:800;
  text-decoration:none;
  background:transparent;
  cursor:pointer;
  transition:transform .22s ease,color .22s ease,background .22s ease,box-shadow .22s ease;
}

.admin-view-switcher a:hover,
.admin-view-switcher button:hover{
  transform:translateY(-2px);
  color:var(--dashboard-primary-dark);
}

.admin-view-switcher [data-admin-view].active{
  color:#fff;
  background:linear-gradient(135deg,var(--dashboard-primary),#9c84ff);
  box-shadow:0 12px 24px rgba(95,72,218,.22);
}

.admin-view-home{
  color:var(--dashboard-primary-dark)!important;
}

.admin-deep-link-panel{
  scroll-margin-top:28px;
}

body.admin-category-schools .admin-section-users,
body.admin-category-users .admin-section-schools{
  display:none;
}

.admin-section-schools,
.admin-section-users{
  transform-origin:top center;
}

.admin-deep-link-active{
  animation:admin-panel-arrive .62s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes admin-view-enter{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes admin-panel-arrive{
  0%{opacity:0;transform:translateY(22px) scale(.985);box-shadow:0 0 0 rgba(123,97,255,0)}
  65%{opacity:1;transform:translateY(0) scale(1);box-shadow:0 26px 58px rgba(101,82,188,.2)}
  100%{opacity:1;transform:translateY(0) scale(1);box-shadow:var(--dashboard-shadow-soft)}
}

.admin-content-panel{
  overflow:visible;
}

.admin-content-heading{
  align-items:flex-start;
}

.admin-eyebrow{
  display:inline-flex;
  margin-bottom:7px;
  color:var(--dashboard-primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.content-builder{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(270px,340px);
  gap:18px;
  margin-top:18px;
}

.content-builder-main,
.content-library,
.module-editor,
.module-pill{
  border:1px solid rgba(123,97,255,0.12);
  background:rgba(255,255,255,0.72);
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
}

.content-builder-main,
.content-library{
  border-radius:24px;
  padding:18px;
}

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

.builder-grid .wide{
  grid-column:1 / -1;
}

.builder-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:16px 0;
}

.builder-status{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:13px;
  font-weight:800;
}

.builder-status.success{
  background:rgba(47,201,141,0.14);
  color:#147a56;
}

.builder-status.warning{
  background:rgba(255,109,122,0.14);
  color:#a52636;
}

.module-workspace{
  display:grid;
  grid-template-columns:minmax(190px,240px) minmax(0,1fr);
  gap:14px;
  align-items:start;
}

.modules-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:620px;
  overflow:auto;
  padding-right:4px;
}

.module-pill{
  width:100%;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  color:var(--dashboard-text);
  text-align:left;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}

.module-pill:hover{
  transform:translateY(-2px);
  border-color:rgba(123,97,255,0.24);
}

.module-pill.active{
  background:linear-gradient(135deg,rgba(123,97,255,0.16),rgba(140,229,209,0.18));
  border-color:rgba(123,97,255,0.28);
}

.module-pill span{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--dashboard-dark);
  color:#fff;
  font-weight:800;
  grid-row:1 / 3;
}

.module-pill strong,
.module-pill small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.module-pill small{
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:700;
}

.module-editor{
  min-height:360px;
  border-radius:22px;
  padding:18px;
}

.module-editor.empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--dashboard-muted);
  text-align:center;
}

.module-editor-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.module-editor-head h4{
  margin:0;
  font-size:22px;
  line-height:1.15;
}

.module-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.icon-action{
  min-height:38px;
  padding:8px 11px;
  border:none;
  border-radius:12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.icon-action.danger{
  background:rgba(255,109,122,0.14);
  color:#aa2535;
}

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

.module-editor textarea{
  min-height:104px;
  resize:vertical;
  line-height:1.45;
}

.content-library{
  position:sticky;
  top:132px;
}

.content-library-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.content-library-header .secondary{
  padding:10px 12px;
  font-size:13px;
}

.admin-bootcamps-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:640px;
  overflow:auto;
}

.content-sync-admin-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(123,97,255,0.12);
}

.content-sync-admin-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.content-sync-admin-stat{
  border-radius:14px;
  padding:12px;
  background:rgba(245,244,255,0.95);
  border:1px solid rgba(123,97,255,0.1);
}

.content-sync-admin-stat strong{
  display:block;
  font-size:22px;
  color:var(--dashboard-primary-dark);
}

.content-sync-admin-stat span{
  display:block;
  margin-top:4px;
  color:var(--dashboard-muted);
  font-size:13px;
}

.content-sync-admin-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.content-sync-admin-card{
  border-radius:14px;
  padding:12px;
  background:rgba(245,244,255,0.95);
  border:1px solid rgba(123,97,255,0.1);
}

.content-sync-admin-card h4{
  margin:0 0 10px;
  font-size:14px;
  color:var(--dashboard-primary-dark);
}

.content-sync-admin-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.content-sync-admin-list--jobs{
  max-height:280px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:8px;
  scrollbar-width:thin;
}

.content-sync-admin-list--jobs::-webkit-scrollbar{
  width:8px;
}

.content-sync-admin-list--jobs::-webkit-scrollbar-thumb{
  background:rgba(123,97,255,0.24);
  border-radius:999px;
}

.content-sync-admin-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  padding:10px 0;
  border-top:1px solid rgba(123,97,255,0.08);
  min-width:0;
  flex-wrap:wrap;
}

.content-sync-admin-row:first-child{
  border-top:none;
  padding-top:0;
}

.content-sync-admin-row:last-child{
  padding-bottom:0;
}

.content-sync-admin-row strong,
.content-sync-admin-row span,
.content-sync-admin-row small{
  display:block;
  overflow-wrap:anywhere;
}

.content-sync-admin-row span,
.content-sync-admin-row small{
  color:var(--dashboard-muted);
}

.content-sync-admin-row > div:first-child{
  flex:1 1 220px;
  min-width:0;
}

.content-sync-admin-row > div:last-child{
  flex:0 1 auto;
  max-width:100%;
}

.content-sync-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  max-width:100%;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  white-space:normal;
  text-align:center;
  overflow-wrap:anywhere;
}

.content-sync-pill.ready,
.content-sync-pill.completed{
  background:rgba(47,201,141,0.16);
  color:#0b8f5c;
}

.content-sync-pill.pending,
.content-sync-pill.in_progress{
  background:rgba(123,97,255,0.14);
  color:var(--dashboard-primary-dark);
}

.content-sync-pill.retrying{
  background:rgba(255,184,77,0.18);
  color:#a05d00;
}

.content-sync-pill.failed,
.content-sync-pill.deleted,
.content-sync-pill.stalled{
  background:rgba(255,109,122,0.14);
  color:#c53d55;
}

.admin-bootcamp-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(123,97,255,0.1);
}

.admin-bootcamp-card div{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}

.admin-bootcamp-card strong,
.admin-bootcamp-card span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-bootcamp-card span{
  color:var(--dashboard-muted);
  font-size:13px;
}

.admin-bootcamp-actions{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.admin-bootcamp-card .admin-bootcamp-actions button{
  border:none;
  border-radius:12px;
  padding:9px 12px;
  background:var(--dashboard-dark);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.admin-bootcamp-card .admin-bootcamp-actions button.danger{
  background:linear-gradient(135deg,#ff4d5f,#ff7d87);
  box-shadow:0 12px 22px rgba(255,77,95,0.18);
}

.bootcamp-preview h2{
  margin:6px 0 10px;
  font-size:34px;
  line-height:1.08;
}

.bootcamp-preview p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.6;
}

.preview-validity{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(47,201,141,0.14);
  color:#147a56;
  font-weight:800;
}

.preview-validity span{
  color:inherit;
  font-size:13px;
}

.preview-modules{
  display:grid;
  gap:12px;
  margin-top:22px;
}

.preview-module{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.8);
  border:1px solid rgba(123,97,255,0.12);
}

.preview-module span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  font-weight:800;
}

.preview-module div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.preview-module small{
  color:var(--dashboard-muted);
}

.admin-code-box,
.admin-add-course,
.admin-filters{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:18px;
}

.school-create-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(240px,1fr) auto;
  align-items:end;
  gap:14px;
  margin-top:18px;
}

.school-create-form .btn-primary{
  min-height:48px;
}

.school-create-form .btn-primary:disabled{
  cursor:wait;
  opacity:.65;
  transform:none;
}

.school-create-status{
  min-height:22px;
  margin:14px 0 0;
  color:var(--dashboard-muted);
  font-weight:700;
}

.school-create-status.success{
  color:#16794b;
}

.school-create-status.error{
  color:#b42318;
}

.schools-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.school-admin-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid rgba(123,97,255,.14);
  border-radius:16px;
  background:rgba(255,255,255,.82);
}

.school-admin-row strong,
.school-admin-row span,
.school-admin-row small{
  display:block;
}

.school-admin-row span,
.school-admin-row small{
  margin-top:4px;
  color:var(--dashboard-muted);
}

.school-admin-row code{
  align-self:center;
  padding:7px 10px;
  border-radius:10px;
  background:rgba(123,97,255,.08);
  color:var(--dashboard-primary-dark);
}

.admin-input-group{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1 1 180px;
  min-width:180px;
}

.admin-input-group label{
  font-size:13px;
  font-weight:700;
  color:var(--dashboard-muted);
}

@media(max-width:900px){
  .school-create-form{
    grid-template-columns:1fr;
  }

  .school-admin-row{
    flex-direction:column;
  }

  .school-admin-row code{
    align-self:flex-start;
  }
}

.code-generate{
  display:flex;
  gap:10px;
}

.code-generate button{
  min-width:54px;
}

.btn-primary,
.admin-add-course button{
  padding:13px 20px;
}

.admin-filters input,
.admin-filters select,
.admin-users-container input{
  flex:1 1 20px;
}

.codes-scroll,
.users-scroll{
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}

#codesList{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.code-row,
#codesList > div{
  display:grid;
  grid-template-columns:1.2fr minmax(100px,.8fr) 100px;
  gap:14px;
  align-items:center;
  padding:16px 18px;
  border-radius:20px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
  box-shadow:0 10px 22px rgba(101,82,188,0.08);
}

.code-row strong{
  font-size:15px;
}

.code-row span{
  color:var(--dashboard-muted);
  font-size:13px;
}

.code-usage{
  grid-column:1 / -1;
  width:100%;
  height:8px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  overflow:hidden;
}

.code-usage-fill{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),var(--dashboard-teal));
}

.admin-users-container{
  display:flex;
  flex-direction:column;
}

.course-admin-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px;
  margin-top:12px;
  border-radius:22px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
  box-shadow:0 12px 24px rgba(101,82,188,0.08);
}

.course-admin-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.course-admin-info h4{
  margin:0;
  font-size:16px;
}

.course-admin-info span,
.course-admin-info small{
  color:var(--dashboard-muted);
}

.course-admin-actions{
  display:flex;
  gap:10px;
}

.course-admin-actions button{
  padding:10px 14px;
}

.course-admin-actions button.danger{
  background:linear-gradient(135deg,#ff8691,#ff6674);
  color:#fff;
  box-shadow:0 14px 26px rgba(255,109,122,0.2);
}

.profile-card{
  display:grid;
  gap:14px;
}

.profile-card p{
  margin:0;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(123,97,255,0.1);
}

.bootcamp-container{
  max-width:960px;
  margin:0 auto;
  padding:14px 4px 6px;
}

.bootcamp-title{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.bootcamp-sub{
  margin:14px 0 0;
  color:var(--dashboard-muted);
  line-height:1.7;
}

.bootcamp-row{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding:24px 0 8px;
}

.bootcamp-card{
  position:relative;
  min-width:290px;
  min-height:220px;
  padding:22px;
  border-radius:28px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 24px 42px rgba(35,29,63,0.22);
  transition:transform .25s ease, box-shadow .25s ease;
}

.bootcamp-card:hover{
  transform:translateY(-4px) scale(1.01);
  box-shadow:0 32px 52px rgba(35,29,63,0.28);
}

.bootcamp-card.emprendimiento{
  background:linear-gradient(145deg,#7b61ff,#a892ff 68%,#ffcadc);
}

.bootcamp-card.tech{
  background:linear-gradient(145deg,#162447,#3756ff 58%,#8ce5d1);
}

.bootcamp-card.emprendedores{
  background:linear-gradient(145deg,#105f62,#28b48f 58%,#f8d76d);
}

.bootcamp-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent,rgba(18,14,34,0.46));
}

.bootcamp-content,
.bootcamp-overlay{
  position:relative;
  z-index:1;
}

.bootcamp-content{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  height:100%;
}

.bootcamp-name{
  font-size:24px;
  font-weight:800;
  color:#fff;
}

.bootcamp-desc{
  margin-top:8px;
  color:rgba(255,255,255,0.84);
}

.bootcamp-action{
  width:max-content;
  margin-top:14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.bootcamp-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(25,20,48,0.28);
  opacity:0;
  transition:opacity .25s ease;
}

.bootcamp-card:hover .bootcamp-overlay{
  opacity:1;
}

.bootcamp-overlay span{
  padding:12px 18px;
  border-radius:16px;
  background:#fff;
  color:var(--dashboard-dark);
  font-weight:800;
}

.bootcamp-section{
  margin-top:28px;
}

.bootcamp-section h3{
  margin:0 0 14px;
  font-size:20px;
}

.bootcamp-card-info{
  padding:22px;
  border-radius:24px;
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(123,97,255,0.12);
  box-shadow:0 14px 26px rgba(101,82,188,0.08);
}

.bootcamp-list{
  list-style:none;
  padding:0;
  margin:0;
}

.bootcamp-list li{
  position:relative;
  padding:12px 12px 12px 42px;
  margin-top:10px;
  border-radius:16px;
  background:rgba(255,255,255,0.86);
  color:var(--dashboard-text);
}

.bootcamp-list li::before{
  content:"✦";
  position:absolute;
  left:16px;
  top:11px;
  color:var(--dashboard-primary);
  font-size:16px;
}

.bootcamp-highlight{
  margin-top:26px;
  padding:22px;
  border-radius:24px;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff 60%,rgba(140,229,209,0.85));
  color:#fff;
  box-shadow:0 22px 34px rgba(123,97,255,0.24);
}

.bootcamp-highlight p{
  margin:0;
  color:rgba(255,255,255,0.92);
}

.bootcamp-btn{
  margin-top:28px;
  padding:14px 22px;
  background:linear-gradient(135deg,var(--dashboard-dark),#3b2f70);
  color:#fff;
  box-shadow:0 18px 28px rgba(35,29,63,0.28);
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(23,18,40,0.5);
  backdrop-filter:blur(8px);
  z-index:999;
}

body.danger-modal-open{
  overflow:hidden;
}

.danger-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(23,18,40,0.58);
  backdrop-filter:blur(10px);
  z-index:1200;
}

.danger-modal.active{
  display:flex;
}

.danger-modal-card{
  position:relative;
  width:min(560px,100%);
  padding:28px;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(255,246,247,0.98));
  border:1px solid rgba(255,255,255,0.78);
  box-shadow:0 34px 72px rgba(23,18,40,0.34);
  animation:dangerModalIn .22s ease;
}

@keyframes dangerModalIn{
  from{
    opacity:0;
    transform:translateY(12px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.danger-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:none;
  border-radius:14px;
  background:rgba(35,29,63,0.08);
  color:var(--dashboard-dark);
  font-weight:900;
  cursor:pointer;
}

.danger-modal-icon{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  border-radius:20px;
  background:linear-gradient(135deg,#ff4d5f,#ff9aa3);
  color:#fff;
  font-size:28px;
  font-weight:900;
  box-shadow:0 18px 30px rgba(255,77,95,0.22);
}

.danger-modal-card h2{
  margin:0;
  font-size:30px;
  line-height:1.08;
}

.danger-modal-card p{
  margin:12px 0 0;
  color:var(--dashboard-muted);
  line-height:1.6;
}

.danger-modal-card p strong{
  color:var(--dashboard-text);
}

.delete-confirm-steps{
  display:grid;
  gap:10px;
  margin-top:20px;
}

.delete-step{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(255,109,122,0.16);
  color:var(--dashboard-text);
  font-weight:700;
  cursor:pointer;
}

.delete-step input{
  width:18px;
  height:18px;
  accent-color:var(--dashboard-danger);
}

.delete-safe-word{
  margin-top:18px;
}

.danger-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}

.danger-modal-actions .secondary,
.danger-modal-actions .btn-danger{
  min-height:46px;
}

.danger-modal-actions .btn-danger:disabled{
  opacity:.48;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.modal-content{
  position:relative;
  width:min(1080px,100%);
  max-height:90vh;
  padding:28px;
  border-radius:30px;
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(255,255,255,0.96),rgba(245,242,255,0.96));
  border:1px solid rgba(255,255,255,0.78);
  box-shadow:0 34px 68px rgba(23,18,40,0.3);
}

.modal-body{
  display:flex;
  flex-direction:column;
}

.modal-actions{
  position:sticky;
  bottom:0;
  display:flex;
  justify-content:flex-end;
  padding-top:18px;
  margin-top:20px;
  background:linear-gradient(180deg,rgba(245,242,255,0),rgba(245,242,255,0.98) 32%);
  z-index:2;
}

.close{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(35,29,63,0.08);
  color:var(--dashboard-dark);
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}

.close:hover{
  transform:rotate(90deg);
  background:rgba(35,29,63,0.14);
}

.complete-btn{
  position:relative;
  display:none;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:12px 18px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg,var(--dashboard-green),#57dbab);
  color:#fff;
  font-weight:800;
  box-shadow:0 18px 28px rgba(47,201,141,0.24);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.complete-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 32px rgba(47,201,141,0.28);
}

.complete-btn:disabled{
  opacity:.7;
  cursor:not-allowed;
  transform:none;
}

.complete-btn.is-visible{
  display:inline-flex;
}

.class-view{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.class-view h2{
  margin:0;
  font-size:32px;
  line-height:1.08;
  letter-spacing:-.03em;
}

.video-container,
.pdf-container{
  width:100%;
  border-radius:24px;
  overflow:hidden;
  background:#0f0c1e;
  box-shadow:0 22px 44px rgba(23,18,40,0.16);
}

.video-container{
  aspect-ratio:16/9;
}

.pdf-container{
  height:72vh;
}

.video-container iframe,
.pdf-container iframe{
  width:100%;
  height:100%;
  border:none;
}

.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tab-btn{
  border:none;
  padding:11px 16px;
  border-radius:14px;
  background:rgba(123,97,255,0.08);
  color:var(--dashboard-primary-dark);
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, color .2s ease;
}

.tab-btn:hover{
  transform:translateY(-1px);
  background:rgba(123,97,255,0.14);
}

.tab-btn.active{
  background:linear-gradient(135deg,var(--dashboard-dark),#40356d);
  color:#fff;
}

.tab-content{
  display:none;
}

.tab-content.active{
  display:block;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:12px;
}

.gallery-grid img{
  width:100%;
  height:138px;
  object-fit:cover;
  border-radius:18px;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
  box-shadow:0 12px 20px rgba(35,29,63,0.08);
}

.gallery-grid img:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 18px 28px rgba(35,29,63,0.14);
}

.empty-tab-message{
  margin:0;
  padding:18px;
  border:1px dashed rgba(123,97,255,0.2);
  border-radius:18px;
  background:rgba(255,255,255,0.72);
  color:var(--dashboard-muted);
  text-align:center;
  font-weight:700;
}

.resources-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}

.resource-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:74px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(123,97,255,0.12);
  color:var(--dashboard-text);
  text-decoration:none;
  box-shadow:0 12px 24px rgba(101,82,188,0.08);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.resource-card:hover{
  transform:translateY(-2px);
  border-color:rgba(123,97,255,0.24);
  box-shadow:0 18px 30px rgba(101,82,188,0.13);
}

.resource-card.disabled{
  opacity:.68;
  cursor:not-allowed;
}

.resource-card-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:linear-gradient(135deg,var(--dashboard-dark),#4d4082);
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
}

.resource-card-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.resource-card-copy strong,
.resource-card-copy small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.resource-card-copy strong{
  font-size:15px;
}

.resource-card-copy small{
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:700;
}

.resource-card-action{
  padding:8px 10px;
  border-radius:12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

::-webkit-scrollbar{
  width:8px;
  height:8px;
}

::-webkit-scrollbar-thumb{
  background:rgba(123,97,255,0.22);
  border-radius:999px;
}

@media (max-width:1240px){
  .main{
    grid-template-columns:1fr;
  }

  .right{
    position:static;
  }

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

  .assistant-panel{
    padding:16px;
  }

  .content-library{
    position:static;
  }
}

@media (max-width:900px){
  body{
    padding-bottom:108px;
  }

  .sidebar{
    top:auto;
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
    height:auto;
    flex-direction:row;
    gap:10px;
    padding:10px;
    border-radius:26px;
    background:linear-gradient(180deg,rgba(37,31,66,0.98),rgba(46,39,80,0.98));
    box-shadow:0 26px 52px rgba(23,18,40,0.28);
  }

  .sidebar-brand{
    display:none;
  }

  .side-menu{
    width:100%;
    flex-direction:row;
    justify-content:space-between;
    gap:8px;
  }

  .topbar,
  .main{
    margin-left:0;
  }

  .topbar{
    margin-left:18px;
    flex-wrap:wrap;
    align-items:center;
  }

  .top-right{
    justify-content:space-between;
    margin-left:auto;
  }

  .lang-dropdown{
    right:0;
  }

  .item{
    width:auto;
    height:auto;
    min-width:0;
    flex:1 1 0;
    flex-direction:column;
    gap:6px;
    padding:10px 8px 8px;
    border-radius:18px;
    font-size:20px;
  }

  .item::before{
    display:none;
  }

  .item::after{
    position:static;
    padding:0;
    border-radius:0;
    background:none;
    color:currentColor;
    font-size:11px;
    font-weight:700;
    letter-spacing:.02em;
    opacity:1;
    transform:none;
    white-space:normal;
    pointer-events:auto;
  }

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

  .redeem-box{
    flex-direction:column;
  }

  .code-row,
  #codesList > div{
    grid-template-columns:1fr;
  }

  .hero-aside-card strong{
    font-size:22px;
  }

  .course-row-lessons,
  .bootcamp-row{
    margin-right:-6px;
    padding-right:6px;
  }

  .lesson-card{
    min-width:250px;
    max-width:250px;
  }

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

  .enrollment-card{
    grid-template-columns:1fr;
  }

  .content-builder,
  .module-workspace,
  .diagnostic-panel{
    grid-template-columns:1fr;
  }

  .modules-list{
    max-height:none;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .modal{
    padding:16px 16px 120px;
  }

  .diagnostic-result{
    grid-template-columns:1fr 1fr;
  }

  .diagnostic-result button{
    grid-column:1 / -1;
  }

  .diagnostic-metric-grid,
  .diagnostic-area-row{
    grid-template-columns:1fr;
  }

  .diagnostic-area-row b{
    text-align:left;
  }
}

@media (max-width:640px){
  .topbar{
    padding:16px;
    margin-right:12px;
    margin-left:12px;
    border-radius:24px;
    top:12px;
    gap:14px;
    align-items:stretch;
  }

  .main{
    gap:18px;
    padding:18px 12px 24px;
  }

  .hero,
  .redeem,
  .panel,
  .card-stat,
  .modal-content{
    border-radius:24px;
  }

  .hero,
  .redeem,
  .panel{
    padding:20px;
  }

  .top-left,
  .top-right{
    width:100%;
  }

  .top-right{
    justify-content:space-between;
    gap:12px;
  }

  .language-selector{
    margin-left:auto;
  }

  .brand{
    min-width:0;
  }

  .brand-copy{
    min-width:0;
  }

  .brand-label{
    font-size:10px;
  }

  .brand h2{
    font-size:28px;
  }

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

  .hero-subtitle{
    font-size:15px;
    line-height:1.65;
  }

  .hero-tag-row{
    gap:8px;
  }

  .hero-tag{
    font-size:12px;
    padding:9px 12px;
  }

  .section-title{
    font-size:28px;
  }

  .course-title{
    font-size:22px;
  }

  .card-stat strong{
    font-size:36px;
  }

  .redeem-box{
    gap:10px;
  }

  .redeem button,
  .btn-primary,
  .primary,
  .secondary{
    width:100%;
  }

  .lesson-card{
    min-width:78vw;
    max-width:78vw;
  }

  .code-generate{
    flex-direction:column;
  }

  .code-generate button{
    width:100%;
  }

  .admin-input-group{
    min-width:100%;
  }

  .builder-grid,
  .module-fields,
  .diagnostic-options{
    grid-template-columns:1fr;
  }

  .builder-toolbar,
  .module-editor-head,
  .content-library-header{
    align-items:stretch;
    flex-direction:column;
  }

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

  .module-actions{
    justify-content:flex-start;
  }

  .class-view h2,
  .bootcamp-title{
    font-size:28px;
  }

  .modal{
    padding:12px;
  }

  .danger-modal{
    padding:12px;
  }

  .danger-modal-card{
    padding:22px;
    border-radius:24px;
  }

  .danger-modal-actions{
    flex-direction:column-reverse;
  }

  .danger-modal-actions .secondary,
  .danger-modal-actions .btn-danger{
    width:100%;
  }

  .modal-content{
    padding:20px;
    max-height:min(88vh,760px);
  }

  .modal-actions{
    margin-top:18px;
  }

  .close{
    top:14px;
    right:14px;
  }

  .complete-btn{
    width:100%;
    margin-top:16px;
  }

  .pdf-container{
    height:58vh;
  }

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

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

  .diagnostic-panel{
    padding:20px;
    border-radius:24px;
  }

  .diagnostic-intro h2{
    font-size:28px;
  }

  .diagnostic-card{
    padding:16px;
  }

  .diagnostic-sort-row,
  .diagnostic-budget label{
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .diagnostic-sort-row span{
    width:100%;
  }

  .diagnostic-sort-row div{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .diagnostic-match label{
    grid-template-columns:1fr;
  }

  .resource-card{
    grid-template-columns:44px minmax(0,1fr);
  }

  .resource-card-action{
    grid-column:1 / -1;
    text-align:center;
  }

  .admin-bootcamp-card{
    align-items:stretch;
    flex-direction:column;
  }

  .admin-bootcamp-actions{
    justify-content:flex-start;
  }
}

@media (max-width:480px){
  body{
    padding-bottom:112px;
  }

  .topbar{
    padding:14px;
  }

  .brand-label{
    display:none;
  }

  .brand h2{
    font-size:25px;
  }

  .logo-inline{
    width:40px;
    height:40px;
  }

  .logout-btn{
    flex:1 1 auto;
    min-height:44px;
    padding:10px 14px;
    border-radius:14px;
  }

  .lang-btn{
    min-width:74px;
    height:42px;
    padding:0 12px;
    border-radius:14px;
  }

  #avatar{
    width:42px;
    height:42px;
    border-radius:14px;
  }

  .hero,
  .redeem,
  .panel,
  .card-stat,
  .assistant-panel,
  .modal-content{
    border-radius:22px;
  }

  .hero,
  .redeem,
  .panel,
  .assistant-panel,
  .modal-content{
    padding:18px;
  }

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

  .hero-kicker{
    padding:8px 12px;
    font-size:11px;
  }

  .hero-aside-card{
    padding:18px;
  }

  .hero-aside-card strong{
    font-size:20px;
  }

  .section-title{
    font-size:24px;
  }

  .lesson-card{
    min-width:84vw;
    max-width:84vw;
    padding:16px;
  }

  .item{
    font-size:18px;
    padding:9px 6px 7px;
  }

  .item::after{
    font-size:10px;
  }

  .modal{
    padding:10px 10px 118px;
  }

  .tabs{
    flex-direction:column;
  }

  .tab-btn{
    width:100%;
  }
}
.privacy-panel {
  margin-top: 28px;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

#privacyActionStatus {
  min-height: 1.4em;
  margin: 12px 0 0;
}
