*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:         #060810;
  --surface:    rgba(255,255,255,0.04);
  --card:       rgba(255,255,255,0.055);
  --card-hover: rgba(255,255,255,0.09);
  --border:     rgba(255,255,255,0.08);
  --border-h:   rgba(52,211,153,0.3);
  --accent:     #34D399;
  --accent-dim: rgba(52,211,153,0.13);
  --text:       #F0F4F8;
  --text-2:     #A8B4C0;
  --text-3:     #5E6E7E;
  --r:          16px;
  --r-sm:       10px;
  font-family: 'Outfit', sans-serif;
}
html, body { height: 100%; background: var(--bg); color: var(--text); overflow-x: hidden; }
button { cursor: pointer; border: none; font-family: inherit; }
input  { font-family: inherit; }
a      { color: inherit; text-decoration: none; }
pre, code { font-family: 'JetBrains Mono', monospace; }
pre { background: rgba(0,0,0,.4); padding: 16px; border-radius: var(--r-sm); overflow-x: auto;
      font-size: .88rem; line-height: 1.7; border: 1px solid var(--border); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }

i[data-lucide] { display: inline-flex; }
i[data-lucide] svg { width: 18px; height: 18px; stroke-width: 1.8; vertical-align: middle; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(52,211,153,.2); border-radius: 99px; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(52,211,153,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 70%, rgba(52,211,153,.05) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(20,30,55,.6) 0%, transparent 80%);
}

/* ══ LOADING ══ */
#loading-screen {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg); gap: 20px;
}
.loader-logo { color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.loader-logo i[data-lucide] svg { width: 52px; height: 52px; stroke-width: 1.5; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.1);opacity:.65;} }
.loader-title { font-size: 1.65rem; font-weight: 700; }
.loader-title span { color: var(--accent); }
.loader-msg { font-size: .9rem; color: var(--text-2); }
.loader-bar-wrap { width: 220px; height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 99px; animation: loadprog 2s ease-in-out infinite; }
@keyframes loadprog { 0%{width:0%} 60%{width:85%} 100%{width:100%} }
.loader-error { background: rgba(255,80,80,.1); border: 1px solid rgba(255,80,80,.25); color: #f87171;
  border-radius: var(--r-sm); padding: 14px 20px; font-size: .88rem; max-width: 360px; text-align: center; display: none; }
.loader-retry { background: var(--accent); color: #051a10; padding: 10px 26px;
  border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; display: none; transition: opacity .2s; }
.loader-retry:hover { opacity: .85; }

/* ══ LOGIN ══ */
#login-screen {
  min-height: 100vh; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-box {
  width: 100%; max-width: 440px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid rgba(52,211,153,.14);
  border-radius: 24px; padding: 52px 44px;
  box-shadow: 0 0 80px rgba(52,211,153,.06), 0 32px 64px rgba(0,0,0,.5);
  animation: slideUp .5s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(22px);} to{opacity:1;transform:translateY(0);} }
.login-logo { text-align: center; margin-bottom: 36px; }
.logo-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 18px;
  margin: 0 auto 14px; color: var(--accent);
}
.logo-icon-wrap i[data-lucide] svg { width: 34px; height: 34px; stroke-width: 1.5; }
.login-logo h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.5px; }
.login-logo h1 span { color: var(--accent); }
.login-logo p  { color: var(--text-2); font-size: .92rem; margin-top: 6px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 9px; letter-spacing: .5px; text-transform: uppercase; }
.form-group input {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 18px; color: var(--text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input::placeholder { color: var(--text-3); }
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.13); }
.login-btn {
  background: rgba(52, 211, 153,0.15);
  border: 1px solid rgba(52, 211, 153, 0.45);
  backdrop-filter: blur(8px);
  color: #34D399; padding: 16px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block;
  font-family: 'Sora', sans-serif;
  transition: all 0.2s;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-btn:hover { background: rgba(52, 211, 153,0.28); border-color: rgba(52, 211, 153,0.7); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(52, 211, 153,0.2); }
.login-error {
  background: rgba(255,80,80,.1); border: 1px solid rgba(255,80,80,.25);
  color: #f87171; border-radius: var(--r-sm); padding: 11px 16px;
  font-size: .88rem; margin-top: 14px; display: none; align-items: center; gap: 8px;
}

/* ══ APP ══ */
#app { display: none; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 256px;
  background: rgba(6,8,16,.78);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 100; transition: transform .3s ease;
}
.sidebar-header { padding: 10px 10px 10px; border-bottom: 1px solid var(--border); }
.sidebar-logo { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.logo-mark { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.logo-mark i[data-lucide] svg { width: 16px; height: 16px; stroke-width: 1.8; }
.sidebar-logo span { color: var(--accent); }
.sidebar-user { display: flex; align-items: center; gap: 11px;
  border-radius: var(--r-sm); padding: 14px 14px;}
.user-avatar { width: 36px; height: 36px; border-radius: 10px; background: rgba(52,211,153,.15);
  border: 1px solid rgba(52,211,153,.2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.user-avatar i[data-lucide] svg { width: 18px; height: 18px; }
.uname { font-size: .92rem; font-weight: 600; }
.urole { font-size: .74rem; color: var(--accent); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.urole i[data-lucide] svg { width: 12px; height: 12px; }
.sidebar-nav { flex: 1; padding: 18px 14px; overflow-y: auto; }
.nav-label { font-size: .68rem; font-weight: 700; color: var(--text-3); letter-spacing: 1.3px;
  text-transform: uppercase; padding: 10px 10px 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: .92rem; cursor: pointer; margin-bottom: 3px;
  transition: background .15s, color .15s; color: var(--text-2); }
.nav-icon { width: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-icon i[data-lucide] svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.nav-item.active { background: rgba(52,211,153,.11); color: var(--accent); font-weight: 600; border: 1px solid rgba(52,211,153,.15); }
.sidebar-footer { padding: 16px 14px; border-top: 1px solid var(--border); }
.logout-btn { width: 100%; padding: 11px; border-radius: var(--r-sm); background: transparent;
  border: 1px solid var(--border); color: var(--text-2); font-size: .92rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, color .15s, border-color .15s; }
.logout-btn i[data-lucide] svg { width: 16px; height: 16px; }
.logout-btn:hover { background: rgba(255,80,80,.08); color: #f87171; border-color: rgba(255,80,80,.28); }

.main { margin-left: 256px; min-height: 100vh; }
.topbar { padding: 0 10px 0 10px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  background: rgba(6,8,16,.68); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 50; }
.topbar-back { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 16px; font-size: .88rem; color: var(--text-2); display: none;
  align-items: center; gap: 6px; transition: color .15s, border-color .15s; }
.topbar-back i[data-lucide] svg { width: 15px; height: 15px; stroke-width: 2; }
.topbar-back:hover { color: var(--accent); border-color: rgba(52,211,153,.28); }
.topbar-back.show { display: flex; }
.topbar h2 { font-size: 1.15rem; font-weight: 600; flex: 1; }
.topbar .breadcrumb { font-size: .83rem; color: var(--text-3); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text); }
.menu-toggle i[data-lucide] svg { width: 18px; height: 18px; stroke-width: 1.8; }
.page { display: none; padding: 0 36px 36px 36px; }
.page.active { display: block; }

/* ══ DASHBOARD ══ */
.dash-greeting { margin-bottom: 32px; }
.dash-greeting h1 { font-size: 2rem; font-weight: 700; }
.dash-greeting h1 span { color: var(--accent); }
.dash-greeting p  { color: var(--text-2); margin-top: 6px; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.dash-greeting p i[data-lucide] svg { width: 15px; height: 15px; stroke-width: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 18px; margin-bottom: 36px; }
.stat-card { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r); padding: 24px;
  position: relative; overflow: hidden; transition: border-color .22s, transform .22s; }
.stat-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); }
.stat-icon-box { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-dim);
  border: 1px solid rgba(52,211,153,.18); display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px; }
.stat-icon-box i[data-lucide] svg { width: 20px; height: 20px; stroke-width: 1.8; }
.stat-val { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.stat-lbl { font-size: .83rem; color: var(--text-2); margin-top: 5px; }

.section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px; }
.stitle-icon { color: var(--accent); display: flex; align-items: center; }
.stitle-icon i[data-lucide] svg { width: 18px; height: 18px; stroke-width: 2; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(400px,1fr)); gap: 22px; margin-bottom: 44px; }
.course-card { background: var(--card); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s, background .22s; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(52,211,153,.18);
  border-color: rgba(52,211,153,.28); background: var(--card-hover); }
.course-card-header { padding: 22px 22px 18px; display: flex; align-items: flex-start; gap: 16px; }
.course-icon-box { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--accent-dim); border: 1px solid rgba(52,211,153,.18); color: var(--accent); }
.course-icon-box i[data-lucide] svg { width: 24px; height: 24px; stroke-width: 1.6; }
.course-card-body { flex: 1; }
.course-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.course-card-body p  { font-size: .86rem; color: var(--text-2); line-height: 1.55; }
.course-card-footer { padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,.14); }
.course-meta { font-size: .82rem; color: var(--text-2); display: flex; gap: 16px; }
.course-meta span { display: flex; align-items: center; gap: 5px; }
.course-meta i[data-lucide] svg { width: 13px; height: 13px; stroke-width: 2; }
.course-arrow { font-size: .85rem; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.course-arrow i[data-lucide] svg { width: 15px; height: 15px; stroke-width: 2.2; }

/* ══ ADMIN TABLE ══ */
.admin-section { margin-bottom: 44px; }
.students-table-wrap { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.students-table { width: 100%; border-collapse: collapse; }
.students-table th { background: rgba(52,211,153,.055); padding: 16px 20px; font-size: .78rem; font-weight: 700;
  color: var(--text-2); text-transform: uppercase; letter-spacing: .6px; text-align: left; border-bottom: 1px solid var(--border); }
.students-table td { padding: 16px 20px; font-size: .93rem; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.students-table tr:last-child td { border-bottom: none; }
.students-table tr:hover td { background: rgba(52,211,153,.04); }
.student-info { display: flex; align-items: center; gap: 12px; }
.student-avatar { width: 38px; height: 38px; border-radius: 10px; background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.18); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.student-avatar i[data-lucide] svg { width: 18px; height: 18px; }
.sname { font-weight: 600; font-size: .94rem; }
.susername { font-size: .78rem; color: var(--text-3); font-family: 'JetBrains Mono',monospace; margin-top: 2px; }
.course-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.course-pill { font-size: .76rem; padding: 4px 12px; border-radius: 99px; font-weight: 600;
  background: rgba(52,211,153,.1); color: var(--accent); border: 1px solid rgba(52,211,153,.18); }
.count-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(52,211,153,.12); color: var(--accent); font-size: .82rem; font-weight: 700;
  border: 1px solid rgba(52,211,153,.2); }
.admin-badge-header { display: inline-flex; align-items: center; gap: 7px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.18);
  color: var(--accent); border-radius: 99px; padding: 5px 16px; font-size: .82rem; font-weight: 700; margin-bottom: 26px; }
.admin-badge-header i[data-lucide] svg { width: 14px; height: 14px; }
.admin-search-bar { display: flex; gap: 12px; margin-bottom: 20px; }
.search-wrap { flex: 1; position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-icon i[data-lucide] svg { width: 16px; height: 16px; stroke-width: 2; }
.admin-search-bar input { width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 18px 12px 44px; color: var(--text); font-size: .94rem; transition: border-color .2s; }
.admin-search-bar input::placeholder { color: var(--text-3); }
.admin-search-bar input:focus { outline: none; border-color: rgba(52,211,153,.38); box-shadow: 0 0 0 3px rgba(52,211,153,.08); }

/* ══ COURSE PAGE ══ */
.course-hero { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(52,211,153,.12); border-radius: var(--r); padding: 30px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 22px; }
.course-big-icon { width: 78px; height: 78px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--accent-dim); border: 1px solid rgba(52,211,153,.2); color: var(--accent); }
.course-big-icon i[data-lucide] svg { width: 36px; height: 36px; stroke-width: 1.5; }
.course-hero-info h2 { font-size: 1.65rem; font-weight: 700; }
.course-hero-info p  { color: var(--text-2); font-size: .92rem; margin-top: 5px; }
.course-hero-info .instructor { font-size: .86rem; margin-top: 10px; color: var(--accent);
  display: flex; align-items: center; gap: 6px; }
.course-hero-info .instructor i[data-lucide] svg { width: 15px; height: 15px; }

/* Day folders */
.days-list { display: flex; flex-direction: column; gap: 14px; }
.day-folder { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .22s; }
.day-folder:hover { border-color: rgba(52,211,153,.22); }
.day-folder-header { padding: 20px 24px; display: flex; align-items: center; gap: 16px; cursor: pointer; }
.folder-icon-box { width: 42px; height: 42px; border-radius: 11px; background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.14); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.folder-icon-box i[data-lucide] svg { width: 20px; height: 20px; stroke-width: 1.8; }
.folder-info { flex: 1; }
.folder-info h4 { font-size: 1rem; font-weight: 700; }
.folder-date { font-size: .78rem; color: var(--text-3); margin-top: 3px; font-family: 'JetBrains Mono',monospace;
  display: flex; align-items: center; gap: 5px; }
.folder-date i[data-lucide] svg { width: 12px; height: 12px; }
.folder-meta { display: flex; gap: 12px; align-items: center; }
.file-count { font-size: .78rem; background: rgba(52,211,153,.1); color: var(--accent);
  padding: 4px 12px; border-radius: 99px; font-weight: 600; border: 1px solid rgba(52,211,153,.15); }
.folder-chevron { color: var(--text-3); transition: transform .22s, color .22s; display: flex; }
.folder-chevron i[data-lucide] svg { width: 18px; height: 18px; stroke-width: 2; }
.day-folder.open .folder-chevron { transform: rotate(90deg); color: var(--accent); }
.day-folder-body { display: none; border-top: 1px solid var(--border); background: rgba(0,0,0,.18); }
.day-folder.open .day-folder-body { display: block; }
.file-list { padding: 10px; }
.file-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm);
  cursor: pointer; transition: background .15s; }
.file-item:hover { background: rgba(52,211,153,.08); }
.file-type-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.14); color: var(--accent); }
.file-type-box i[data-lucide] svg { width: 18px; height: 18px; stroke-width: 1.8; }
.file-item-info { flex: 1; }
.fname  { font-size: .95rem; font-weight: 600; }
.fdesc  { font-size: .8rem; color: var(--text-2); margin-top: 3px; }
.file-item-badge { font-size: .75rem; color: var(--text-3); }

/* Admin-only: locked file indicator shown to admins for restricted files */
.file-item-restricted {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; color: var(--accent); opacity: .65;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.15);
  border-radius: 99px; padding: 2px 9px; margin-left: 6px;
}
.file-item-restricted i[data-lucide] svg { width: 11px; height: 11px; stroke-width: 2; }

/* ══ CONTENT VIEWER ══ */
.content-viewer { max-width: 820px; }
.content-title { font-size: 1.55rem; font-weight: 700; margin-bottom: 8px; }
.content-meta  { font-size: .85rem; color: var(--text-2); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.content-badge { padding: 4px 12px; border-radius: 99px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; background: rgba(52,211,153,.12); color: var(--accent);
  border: 1px solid rgba(52,211,153,.2); display: flex; align-items: center; gap: 5px; }
.content-badge i[data-lucide] svg { width: 12px; height: 12px; stroke-width: 2; }
.content-meta .meta-item { display: flex; align-items: center; gap: 5px; }
.content-meta .meta-item i[data-lucide] svg { width: 14px; height: 14px; stroke-width: 2; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 22px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.note-body { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r); padding: 32px; line-height: 1.85; font-size: .96rem; }
.note-body h3 { margin: 18px 0 10px; font-size: 1.05rem; color: var(--accent); }
.note-body strong { color: var(--accent); }
.link-card { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(52,211,153,.14); border-radius: var(--r); padding: 40px; text-align: center; }
.link-icon-wrap { width: 72px; height: 72px; border-radius: 20px; background: var(--accent-dim);
  border: 1px solid rgba(52,211,153,.2); display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin: 0 auto 18px; }
.link-icon-wrap i[data-lucide] svg { width: 34px; height: 34px; stroke-width: 1.5; }
.link-card p { color: var(--text-2); margin-bottom: 24px; font-size: .95rem; }
.open-link-btn { background: var(--accent); color: #051a10; padding: 13px 32px; border-radius: var(--r-sm);
  font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .15s, transform .15s; }
.open-link-btn i[data-lucide] svg { width: 16px; height: 16px; stroke-width: 2; }
.open-link-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: 16px 20px; }
  .page { padding: 20px; }
  .menu-toggle { display: flex; }
  .overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99; display: none; }
  .overlay.show { display: block; }
  .students-table-wrap { overflow-x: auto; }
}
@media (min-width: 769px) { .menu-toggle { display: none; } }

.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }

#topbar-title { display: none !important; }

#topbar-crumb { display: none !important; }