:root{
  --bg:#eef4fb;
  --text:#0f172a;
  --muted:#64748b;
  --blue:#2563eb;
  --blue2:#4f8cff;
  --purple:#7c3aed;
  --green:#16a34a;
  --red:#dc2626;
  --orange:#f97316;
  --cyan:#0891b2;
  --glass:rgba(255,255,255,.62);
  --glassStrong:rgba(255,255,255,.78);
  --line:rgba(255,255,255,.58);
  --softLine:rgba(203,213,225,.66);
  --shadow:0 18px 45px rgba(15,23,42,.11), inset 0 1px 0 rgba(255,255,255,.50);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 16%,rgba(96,165,250,.25),transparent 28%),
    radial-gradient(circle at 84% 12%,rgba(168,85,247,.20),transparent 26%),
    radial-gradient(circle at 82% 82%,rgba(14,165,233,.12),transparent 22%),
    linear-gradient(180deg,#f7fbff 0%,#eef4fb 50%,#e9f0f8 100%);
  min-height:100vh;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font-family:inherit}
.page{display:none}
.page.active{display:block}
.shell{
  width:min(1200px,calc(100% - 32px));
  margin:0 auto;
}
.glass{
  background:var(--glass);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.topbar{
  position:sticky;
  top:0;
  z-index:80;
  padding:12px 0;
  background:linear-gradient(180deg,rgba(247,251,255,.88),rgba(247,251,255,.58));
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.56);
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  border-radius:22px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  letter-spacing:-.05em;
  font-size:24px;
}
.logoMark{
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:white;
  background:linear-gradient(135deg,var(--blue2),var(--purple));
  box-shadow:0 12px 24px rgba(79,140,255,.25);
}
.navLinks{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.navLinks a,.navLinks button{
  border:0;
  background:transparent;
  color:#334155;
  font-weight:800;
  font-size:13px;
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
.navLinks a:hover,.navLinks button:hover{
  background:rgba(255,255,255,.65);
  color:#1d4ed8;
}
.btn{
  border:1px solid rgba(255,255,255,.52);
  border-radius:15px;
  padding:11px 14px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 10px 22px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.45);
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:white}
.btn.purple{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:white}
.btn.good{background:linear-gradient(135deg,#22c55e,#16a34a);color:white}
.btn.light{background:rgba(255,255,255,.72);color:#0f172a}
.btn.orange{background:linear-gradient(135deg,#fb923c,#f97316);color:white}
.hero{
  padding:46px 0 28px;
}
.heroGrid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:22px;
  align-items:center;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(219,234,254,.82);
  color:#1d4ed8;
  border:1px solid rgba(191,219,254,.9);
  font-size:12px;
  font-weight:950;
}
h1{
  margin:18px 0 12px;
  font-size:clamp(38px,6vw,70px);
  line-height:.94;
  letter-spacing:-.075em;
}
.lead{
  margin:0;
  max-width:720px;
  color:#475569;
  font-size:18px;
  line-height:1.55;
  font-weight:600;
}
.heroActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:24px;
}
.trustRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.trustPill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  padding:9px 12px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(255,255,255,.72);
  color:#334155;
  font-size:12.5px;
  font-weight:850;
}
.heroCard{
  padding:16px;
  overflow:hidden;
  position:relative;
}
.heroCard:before{
  content:"";
  position:absolute;
  right:-70px;
  top:-70px;
  width:180px;
  height:180px;
  border-radius:50%;
  background:rgba(124,58,237,.15);
}
.searchMock{
  position:relative;
  z-index:2;
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.72);
}
.searchBar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 14px;
  border-radius:16px;
  background:white;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-weight:800;
}
.resultCard{
  margin-top:12px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.72);
}
.resultTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:950;
}
.badge.green{background:#dcfce7;color:#166534}
.badge.blue{background:#dbeafe;color:#1d4ed8}
.badge.orange{background:#ffedd5;color:#c2410c}
.badge.red{background:#fee2e2;color:#b91c1c}
.badge.purple{background:#ede9fe;color:#5b21b6}
.resultTitle{
  margin:0;
  font-size:15px;
  font-weight:950;
}
.resultMeta{
  margin:5px 0 10px;
  color:#64748b;
  font-size:12px;
  font-weight:750;
}
.progress{
  height:9px;
  border-radius:999px;
  overflow:hidden;
  background:#e2e8f0;
}
.progress span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#4f8cff,#8b5cf6);
}
.section{
  padding:24px 0;
}
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.sectionHead h2{
  margin:0;
  font-size:30px;
  letter-spacing:-.055em;
}
.sectionHead p{
  margin:6px 0 0;
  color:#64748b;
  font-weight:650;
}
.cards3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.feature{
  padding:18px;
}
.icon{
  width:44px;
  height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#2563eb;
  background:linear-gradient(135deg,rgba(37,99,235,.14),rgba(124,58,237,.16));
  font-size:20px;
}
.feature h3{
  margin:13px 0 7px;
  font-size:17px;
  letter-spacing:-.03em;
}
.feature p{
  margin:0;
  color:#64748b;
  font-size:13.5px;
  line-height:1.48;
  font-weight:600;
}
.universityScroller{
  display:flex;
  gap:14px;
  overflow:auto;
  padding:4px 2px 12px;
  scroll-snap-type:x mandatory;
}
.uniCard{
  flex:0 0 290px;
  scroll-snap-align:start;
  padding:16px;
  position:relative;
  overflow:hidden;
}
.uniTop{
  display:flex;
  gap:12px;
  align-items:center;
}
.uniLogo{
  width:50px;
  height:50px;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:white;
  font-weight:950;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
}
.uniCard h3{margin:0;font-size:16px}
.uniCard p{margin:3px 0 0;color:#64748b;font-size:12.5px;font-weight:700}
.uniActions{
  display:flex;
  gap:7px;
  margin-top:14px;
}
.uniActions .btn{
  padding:8px 9px;
  font-size:12px;
  flex:1;
}
.blogGrid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:14px;
}
.blogMain,.videoCard{padding:18px}
.blogMain h3,.videoCard h3{margin:0 0 8px;font-size:19px}
.blogMain p,.videoCard p{margin:0;color:#64748b;line-height:1.5;font-weight:600}
.videoMock{
  margin-top:12px;
  aspect-ratio:16/9;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:white;
  background:
    linear-gradient(135deg,rgba(15,23,42,.72),rgba(37,99,235,.62)),
    radial-gradient(circle at center,rgba(220,38,38,.4),transparent 32%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
}

/* Dashboard */
.dashboardWrap{
  min-height:calc(100vh - 72px);
  display:grid;
  grid-template-columns:258px minmax(0,1fr);
  gap:14px;
  padding:14px;
}
.sidebar{
  position:sticky;
  top:86px;
  height:calc(100vh - 100px);
  padding:14px;
  overflow:auto;
}
.sideBrand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.sideBrand .logoMark{width:38px;height:38px;border-radius:14px}
.sideBrand b{font-size:21px;letter-spacing:-.045em}
.sideNav{
  display:grid;
  gap:6px;
}
.sideNav button,.sideNav a{
  border:1px solid rgba(255,255,255,.07);
  background:rgba(15,23,42,.08);
  color:#334155;
  border-radius:14px;
  padding:12px;
  text-align:left;
  font-weight:850;
  display:flex;
  align-items:center;
  gap:9px;
  cursor:pointer;
}
.sideNav button.active,.sideNav button:hover,.sideNav a:hover{
  color:white;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
}
.dashboardMain{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.dashHeader{
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.dashHeader h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.055em;
}
.dashHeader p{
  margin:4px 0 0;
  color:#64748b;
  font-size:13px;
  font-weight:700;
}
.userBox{
  display:flex;
  align-items:center;
  gap:10px;
}
.avatar{
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:white;
  font-weight:950;
  background:linear-gradient(135deg,#16a34a,#0891b2);
}
.kpiGrid{
  display:grid;
  grid-template-columns:repeat(5,minmax(150px,1fr));
  gap:12px;
}
.kpiCard{
  padding:16px;
  position:relative;
  overflow:hidden;
  min-height:118px;
}
.kpiCard:before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:6px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,#4f8cff,#8b5cf6);
}
.kpiCard.green:before{background:linear-gradient(180deg,#22c55e,#16a34a)}
.kpiCard.orange:before{background:linear-gradient(180deg,#fb923c,#f97316)}
.kpiCard.red:before{background:linear-gradient(180deg,#ef4444,#dc2626)}
.kpiCard.purple:before{background:linear-gradient(180deg,#8b5cf6,#7c3aed)}
.kpiLabel{
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:12.5px;
  font-weight:900;
}
.kpiValue{
  margin-top:10px;
  font-size:32px;
  font-weight:950;
  letter-spacing:-.06em;
}
.kpiSub{
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.dashGrid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:14px;
}
.cardTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.cardTitle h3{margin:0;font-size:17px;letter-spacing:-.03em}
.tableWrap{
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.6);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:680px;
  background:rgba(255,255,255,.45);
}
th{
  position:sticky;
  top:0;
  background:rgba(237,245,255,.88);
  color:#1e3a8a;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
td,th{
  padding:10px;
  border-bottom:1px solid rgba(203,213,225,.66);
  text-align:left;
  font-size:12.5px;
}
td b{font-weight:950}
.notifyList,.deadlineList,.toolsList,.docList{
  display:grid;
  gap:10px;
}
.notifyItem,.deadlineItem,.toolItem,.docItem{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(255,255,255,.64);
  display:grid;
  gap:5px;
}
.notifyItem b,.deadlineItem b,.toolItem b,.docItem b{
  font-size:13px;
}
.notifyItem span,.deadlineItem span,.toolItem span,.docItem span{
  color:#64748b;
  font-size:12px;
  font-weight:650;
  line-height:1.35;
}
.deadlineItem{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.deadlineDate{
  text-align:right;
  font-weight:950;
  color:#ef4444;
  white-space:nowrap;
}
.bigCard{
  padding:16px;
}
.toolsGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:12px;
}
.toolItem{
  min-height:128px;
}
.toolItem .icon{width:40px;height:40px;border-radius:15px}
.docGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:10px;
}
.docItem{
  min-height:96px;
}
.mobileDashNav{
  display:none;
}
.loginModal{
  position:fixed;
  inset:0;
  z-index:120;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.loginModal.show{display:flex}
.loginCard{
  width:min(440px,100%);
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.72);
  border-radius:28px;
  box-shadow:0 30px 70px rgba(15,23,42,.25);
  padding:22px;
  text-align:center;
}
.loginIcon{
  width:64px;
  height:64px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:white;
  margin:0 auto 14px;
  font-size:28px;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
}
.loginCard h2{
  margin:0 0 8px;
  font-size:28px;
  letter-spacing:-.055em;
}
.loginCard p{
  margin:0 0 14px;
  color:#64748b;
  font-weight:650;
  line-height:1.45;
}
.field{
  text-align:left;
  margin:10px 0;
}
.field label{
  display:block;
  color:#475569;
  font-size:12px;
  font-weight:850;
  margin:0 0 5px;
}
.field input{
  width:100%;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.72);
  min-height:44px;
  border-radius:15px;
  padding:10px 12px;
  font-weight:750;
  color:#0f172a;
}
.loginActions{
  display:flex;
  gap:9px;
  margin-top:14px;
}
.loginActions .btn{flex:1}
.smallText{
  color:#64748b;
  font-size:12px;
  font-weight:650;
  margin-top:12px;
}

/* Responsive */
@media(max-width:1080px){
  .heroGrid,.dashGrid,.blogGrid{grid-template-columns:1fr}
  .cards3,.toolsGrid{grid-template-columns:1fr}
  .kpiGrid{grid-template-columns:repeat(2,minmax(150px,1fr))}
  .docGrid{grid-template-columns:repeat(2,minmax(150px,1fr))}
  .dashboardWrap{grid-template-columns:1fr;padding:10px}
  .sidebar{display:none}
  .mobileDashNav{
    display:flex;
    gap:8px;
    overflow:auto;
    padding:8px;
    position:sticky;
    top:72px;
    z-index:50;
  }
  .mobileDashNav button{
    flex:0 0 auto;
    border:0;
    border-radius:999px;
    padding:9px 12px;
    background:rgba(255,255,255,.72);
    color:#334155;
    font-weight:900;
    box-shadow:0 8px 18px rgba(15,23,42,.07);
  }
}
@media(max-width:760px){
  .shell{width:min(100% - 18px,1200px)}
  .topbar{padding:8px 0}
  .navbar{align-items:flex-start}
  .navLinks{display:none}
  .logo{font-size:20px}
  .logoMark{width:38px;height:38px;border-radius:14px}
  .hero{padding:28px 0 18px}
  h1{font-size:42px}
  .lead{font-size:15px}
  .heroActions .btn{width:100%}
  .sectionHead{align-items:flex-start;flex-direction:column}
  .sectionHead h2{font-size:24px}
  .uniCard{flex-basis:86vw}
  .kpiGrid,.docGrid{grid-template-columns:1fr}
  .dashHeader{
    align-items:flex-start;
    flex-direction:column;
  }
  .userBox{width:100%;justify-content:space-between}
  .kpiValue{font-size:28px}
  .bigCard{padding:13px}
  table{min-width:620px}
  .loginActions{flex-direction:column}
}

/* ===== Reetude structured static version ===== */
body.static-page .page{display:block}
body.static-page #home.page,
body.static-page #dashboard.page{display:block}
body.dashboard-page .topbar{display:none}
body.dashboard-page .dashboardWrap{min-height:100vh}
body.dashboard-page .sidebar{top:14px;height:calc(100vh - 28px)}
@media(max-width:1080px){
  body.dashboard-page .mobileDashNav{top:10px}
}
