/* ============================================================
   CampusSetu — Main Stylesheet
   Font: Sora (display) + Space Mono (code/accent)
   Theme: Deep navy / indigo accent / vibrant highlights
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0f1e;
  --bg2:         #0f1629;
  --bg3:         #141c35;
  --card:        #111827;
  --card2:       #1a2236;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.12);
  --text:        #e8eaf0;
  --text-muted:  #7c8db5;
  --text-dim:    #4a5578;
  --accent:      #4f46e5;
  --accent2:     #6366f1;
  --accent-glow: rgba(79,70,229,.35);
  --cyan:        #0891b2;
  --green:       #059669;
  --yellow:      #d97706;
  --red:         #dc2626;
  --purple:      #7c3aed;
  --pink:        #db2777;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow:      0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,.5);
  --transition:  .22s cubic-bezier(.4,0,.2,1);
  --font:        'Sora', system-ui, sans-serif;
  --font-mono:   'Space Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: #818cf8; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem,5vw,3.5rem); }
h2 { font-size: clamp(1.6rem,4vw,2.5rem); }
h3 { font-size: 1.2rem; }

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; border-radius: 10px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 32px var(--accent-glow);
}
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent2); background: var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; transform: translateY(-1px); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-warning { background: var(--yellow); color: #fff; }
.btn-secondary { background: var(--card2); color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--border2); }
.btn-white { background: #fff; color: #1a1a2e; font-weight: 700; }
.btn-white:hover { background: #f0f0ff; color: var(--accent); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .45rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.form-control::placeholder { color: var(--text-dim); }
select.form-control option { background: var(--bg2); }
textarea.form-control { resize: vertical; min-height: 100px; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: .9rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-success { background: rgba(5,150,105,.15); color: #34d399; }
.badge-warning { background: rgba(217,119,6,.15); color: #fbbf24; }
.badge-danger  { background: rgba(220,38,38,.15);  color: #f87171; }
.badge-info    { background: rgba(8,145,178,.15);  color: #22d3ee; }
.badge-primary { background: rgba(79,70,229,.15);  color: #818cf8; }
.badge-purple  { background: rgba(124,58,237,.15); color: #a78bfa; }

/* ── Alerts / Flash ────────────────────────────────────────── */
.flash-msg {
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.flash-success { background: rgba(5,150,105,.15); border: 1px solid rgba(5,150,105,.3); color: #34d399; }
.flash-error   { background: rgba(220,38,38,.15);  border: 1px solid rgba(220,38,38,.3);  color: #f87171; }
.flash-warning { background: rgba(217,119,6,.15);  border: 1px solid rgba(217,119,6,.3);  color: #fbbf24; }
.flash-info    { background: rgba(8,145,178,.15);  border: 1px solid rgba(8,145,178,.3);  color: #22d3ee; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; background: var(--bg2); }
tr:hover td { background: rgba(255,255,255,.02); }
td { color: var(--text); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--card2); color: var(--text-muted);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,15,30,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text) !important;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  padding: .25rem;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: .6rem .5rem;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  border-radius: 8px;
  display: block;
}
.mobile-menu a:hover { color: var(--text); background: var(--bg3); }
.mobile-menu.open { display: flex; }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: pulse-orb 6s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #4f46e5, transparent); top: -100px; right: -100px; }
.orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, #7c3aed, transparent); bottom: 0; left: -80px; animation-delay: 3s; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(79,70,229,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(79,70,229,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes pulse-orb { 0% { transform: scale(1); opacity: .3; } 100% { transform: scale(1.15); opacity: .45; } }

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 480px; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(79,70,229,.12);
  border: 1px solid rgba(79,70,229,.3);
  color: #818cf8;
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1.25rem; }
.hero-desc { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 520px; line-height: 1.75; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-pill { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .875rem; }
.stat-pill i { color: var(--accent2); }
.stat-num { font-weight: 800; color: var(--text); font-size: 1.1rem; font-family: var(--font-mono); }
.stat-sep { color: var(--text-dim); font-size: 1.2rem; }

/* Dashboard preview widget */
.dash-preview {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(79,70,229,.15);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.dp-header {
  background: var(--bg3);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--border);
}
.dp-dots { display: flex; gap: .4rem; }
.dp-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.dp-dots span:nth-child(1) { background: #ef4444; }
.dp-dots span:nth-child(2) { background: #f59e0b; }
.dp-dots span:nth-child(3) { background: #22c55e; }
.dp-title { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.dp-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .875rem; }
.dp-stat { display: flex; align-items: center; gap: .75rem; }
.dp-stat:first-child { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.dp-stat-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.dp-stat-val { font-size: 1.2rem; font-weight: 800; font-family: var(--font-mono); }
.dp-stat-label { font-size: .7rem; color: var(--text-muted); }
.dp-divider { height: 1px; background: var(--border); }
.dp-resource {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  background: var(--bg3);
  border-radius: 8px;
  font-size: .8rem;
}
.dp-res-title { font-weight: 600; font-size: .82rem; }
.dp-res-meta { font-size: .7rem; color: var(--text-muted); }
.dp-badge {
  margin-left: auto;
  background: rgba(79,70,229,.2);
  color: #818cf8;
  padding: .15rem .5rem;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 700;
}
.dp-notif {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: var(--text-muted);
  background: rgba(217,119,6,.08);
  border: 1px solid rgba(217,119,6,.2);
  border-radius: 8px;
  padding: .5rem .75rem;
}

/* ── Animations ─────────────────────────────────────────────── */
.animate-in { animation: fadeUp .7s ease both; }
.animate-in-delay-1 { animation: fadeUp .7s .1s ease both; }
.animate-in-delay-2 { animation: fadeUp .7s .2s ease both; }
.animate-in-delay-3 { animation: fadeUp .7s .3s ease both; }
.animate-in-delay-4 { animation: fadeUp .7s .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ══════════════════════════════════════════════════════════════
   LANDING SECTIONS
   ══════════════════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: rgba(79,70,229,.12);
  border: 1px solid rgba(79,70,229,.3);
  color: #818cf8;
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); max-width: 550px; margin: 0 auto; }

/* Features */
.features-section { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.fc-primary { border-color: rgba(79,70,229,.3); background: linear-gradient(135deg, rgba(79,70,229,.08), var(--card)); }
.fc-icon {
  width: 48px; height: 48px;
  background: rgba(79,70,229,.15);
  color: var(--accent2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: .6rem; font-size: 1rem; }
.feature-card p { color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.fc-tags { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.fc-tags span {
  background: rgba(79,70,229,.1);
  color: #818cf8;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}

/* Departments */
.depts-section { padding: 80px 0; background: var(--bg2); }
.depts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.dept-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  transition: all var(--transition);
  color: var(--text);
}
.dept-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.dept-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dept-info { flex: 1; min-width: 0; }
.dept-info h3 { font-size: .9rem; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept-info p { font-size: .75rem; color: var(--text-muted); }
.dept-arrow { color: var(--text-dim); font-size: .85rem; transition: transform var(--transition); }
.dept-card:hover .dept-arrow { transform: translateX(4px); color: var(--accent2); }

/* How it works */
.how-section { padding: 100px 0; }
.steps-row { display: flex; align-items: flex-start; gap: 1rem; }
.step-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.step-card:hover { border-color: rgba(79,70,229,.3); transform: translateY(-4px); }
.step-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: .1em;
}
.step-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(79,70,229,.2), rgba(124,58,237,.1));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--accent2);
  margin: 0 auto 1rem;
}
.step-card h3 { margin-bottom: .5rem; }
.step-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.65; }
.step-arrow { color: var(--text-dim); font-size: 1.2rem; padding-top: 3.5rem; flex-shrink: 0; }

/* CTA */
.cta-section { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-orb-1 { position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,.08); border-radius: 50%; top: -100px; right: -100px; }
.cta-orb-2 { position: absolute; width: 200px; height: 200px; background: rgba(255,255,255,.06); border-radius: 50%; bottom: -60px; left: -60px; }
.cta-content { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; margin-bottom: 1rem; }
.cta-box p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { padding: 60px 0 0; background: var(--bg2); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--text-muted); font-size: .875rem; line-height: 1.65; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .875rem; margin-bottom: .6rem; }
.footer-col a:hover { color: var(--accent2); }
.footer-col p { color: var(--text-muted); font-size: .875rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; }
.footer-bottom p { text-align: center; color: var(--text-dim); font-size: .8rem; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(135deg, #0f1629 0%, #1a0f3a 100%);
  display: flex;
  flex-direction: column;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-left-orb {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,70,229,.3), transparent);
  border-radius: 50%;
  top: -100px; right: -100px;
  filter: blur(60px);
}
.auth-left-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-left h2 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.auth-left p { color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 2rem; }
.auth-benefits { display: flex; flex-direction: column; gap: .875rem; }
.auth-benefit {
  display: flex;
  align-items: center;
  gap: .875rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}
.auth-benefit i { color: #4ade80; font-size: .9rem; }
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--bg);
}
.auth-form-box { width: 100%; max-width: 440px; }
.auth-form-title { font-size: 1.6rem; margin-bottom: .5rem; }
.auth-form-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.auth-footer-link { text-align: center; color: var(--text-muted); font-size: .875rem; margin-top: 1.5rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--text-dim); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.role-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.role-tab {
  flex: 1; padding: .6rem;
  text-align: center;
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.role-tab:hover { border-color: var(--accent); color: var(--accent2); }
.role-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ══════════════════════════════════════════════════════════════ */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition);
}
.sidebar-logo { padding: 1.25rem 1.25rem .75rem; border-bottom: 1px solid var(--border); }
.sidebar-user { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .875rem; }
.user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: .875rem; font-weight: 700; }
.user-role { font-size: .72rem; color: var(--text-muted); text-transform: capitalize; }
.sidebar-nav { flex: 1; padding: 1rem .75rem; }
.nav-section-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); padding: .5rem .75rem .25rem; font-weight: 700; }
.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .875rem;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .2rem;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(79,70,229,.15); color: var(--accent2); }
.nav-item i { width: 16px; text-align: center; font-size: .9rem; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-footer { padding: .75rem .75rem 1.25rem; border-top: 1px solid var(--border); }

/* Main */
.dash-main {
  margin-left: 256px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.dash-topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.dash-title { font-size: 1.15rem; font-weight: 800; }
.dash-sub { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar-notif-btn {
  position: relative;
  width: 36px; height: 36px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.topbar-notif-btn:hover { border-color: var(--accent); color: var(--accent2); }
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--bg2);
}
.dash-content { padding: 1.75rem; flex: 1; }

/* Stat cards */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.sc-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.sc-value { font-size: 2rem; font-weight: 800; margin: .25rem 0; font-family: var(--font-mono); color: var(--sc-color, var(--accent)); }
.sc-change { font-size: .75rem; color: var(--text-dim); }
.sc-icon { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 2rem; opacity: .08; color: var(--sc-color, var(--accent)); }

/* Panel */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title { font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.panel-body { padding: 1.25rem; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-3-1 { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }

/* Resource cards */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: all var(--transition);
  position: relative;
}
.resource-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow); }
.rc-top { display: flex; align-items: flex-start; gap: .875rem; }
.rc-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.rc-info { flex: 1; min-width: 0; }
.rc-title { font-size: .9rem; font-weight: 700; line-height: 1.3; margin-bottom: .25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-meta { font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rc-meta span { display: flex; align-items: center; gap: .25rem; }
.rc-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-actions { display: flex; gap: .5rem; margin-top: auto; }
.rc-actions .btn { flex: 1; justify-content: center; }

/* Announcement cards */
.annc-list { display: flex; flex-direction: column; gap: .875rem; }
.annc-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  transition: all var(--transition);
}
.annc-item:hover { border-color: var(--border2); }
.annc-item.type-exam   { border-left-color: var(--red); }
.annc-item.type-event  { border-left-color: var(--green); }
.annc-item.type-urgent { border-left-color: var(--yellow); }
.annc-type {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.annc-title { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }
.annc-body { font-size: .82rem; color: var(--text-muted); line-height: 1.65; }
.annc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; font-size: .75rem; color: var(--text-dim); }

/* Search bar */
.search-bar { display: flex; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.search-input-wrap { flex: 1; position: relative; min-width: 220px; }
.search-input-wrap i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.search-input-wrap input { padding-left: 2.6rem; }
.filter-select { min-width: 160px; }

/* Profile section */
.profile-header {
  background: linear-gradient(135deg, rgba(79,70,229,.15), rgba(124,58,237,.08));
  border: 1px solid rgba(79,70,229,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.profile-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta { flex: 1; }
.profile-name { font-size: 1.4rem; font-weight: 800; margin-bottom: .25rem; }
.profile-detail { color: var(--text-muted); font-size: .875rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.profile-detail span { display: flex; align-items: center; gap: .35rem; }

/* Leaderboard */
.lb-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem 1rem;
  border-radius: 9px;
  transition: background var(--transition);
}
.lb-item:hover { background: var(--bg3); }
.lb-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; flex-shrink: 0; background: var(--bg3); color: var(--text-muted); font-family: var(--font-mono); }
.lb-rank.gold   { background: #fbbf24; color: #7c2d12; }
.lb-rank.silver { background: #94a3b8; color: #1e293b; }
.lb-rank.bronze { background: #c2723a; color: #fff; }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; overflow: hidden; }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-dept { font-size: .72rem; color: var(--text-muted); }
.lb-points { font-family: var(--font-mono); font-weight: 800; color: var(--yellow); font-size: .9rem; }

/* Notification items */
.notif-item {
  display: flex;
  gap: .875rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.notif-item:hover { background: var(--bg3); }
.notif-item.unread { background: rgba(79,70,229,.05); }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: .875rem; font-weight: 700; margin-bottom: .2rem; }
.notif-msg { font-size: .8rem; color: var(--text-muted); }
.notif-time { font-size: .72rem; color: var(--text-dim); margin-top: .25rem; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: .35rem; }

/* Tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1.5px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: .6rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent2); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .75rem;
}
.faq-question {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg3); }
.faq-question.open { background: rgba(79,70,229,.08); color: var(--accent2); }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: all .3s ease; font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.faq-answer.open { max-height: 300px; padding: .875rem 1.25rem; border-top: 1px solid var(--border); }
.faq-icon { transition: transform .3s ease; color: var(--text-dim); }
.faq-question.open .faq-icon { transform: rotate(180deg); }

/* Department page */
.dept-hero {
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
}
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.faculty-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.faculty-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.faculty-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  margin: 0 auto 1rem;
  overflow: hidden;
}
.faculty-avatar img { width: 100%; height: 100%; object-fit: cover; }
.faculty-name { font-weight: 700; margin-bottom: .25rem; font-size: .95rem; }
.faculty-designation { font-size: .78rem; color: var(--text-muted); }

/* File upload zone */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg3);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(79,70,229,.05);
}
.upload-zone i { font-size: 2.5rem; color: var(--text-dim); margin-bottom: .875rem; display: block; }
.upload-zone p { color: var(--text-muted); font-size: .9rem; }
.upload-zone strong { color: var(--accent2); }

/* Semester selector */
.sem-selector { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.sem-btn {
  padding: .45rem .9rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card2);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.sem-btn:hover { border-color: var(--accent); color: var(--accent2); }
.sem-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Admin specific */
.admin-stat { --sc-color: #4f46e5; }
.admin-action-btns { display: flex; gap: .5rem; }

/* Toast notifications */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--accent); }
.toast-msg { font-size: .85rem; font-weight: 500; flex: 1; }
.toast-close { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: .9rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; opacity: .3; margin-bottom: 1rem; display: block; }
.empty-state p { font-size: .9rem; }

/* Responsive hamburger for sidebar */
.sidebar-toggle { display: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .depts-grid { grid-template-columns: repeat(2,1fr); }
  .steps-row { flex-wrap: wrap; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .grid-3-1 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .dash-content { padding: 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .depts-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2,1fr); }
  .resource-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .sidebar-toggle { display: block; }
  .topbar-sidebar-btn {
    width: 36px; height: 36px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .faculty-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   VISIBILITY BADGES & UPLOAD STEPS
   ══════════════════════════════════════════════════════════════ */
.vis-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .6rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.vis-personal   { background: rgba(124,58,237,.15); color: #a78bfa; }
.vis-department { background: rgba(8,145,178,.15);  color: #22d3ee; }
.vis-public     { background: rgba(5,150,105,.15);  color: #34d399; }

.vis-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 6px;
}

/* Resource card visibility strip */
.rc-visibility {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 6px;
  width: fit-content;
}

/* Upload step wizard */
.upload-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.step-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  font-size: .82rem;
  color: var(--text-dim);
  font-weight: 600;
}
.step-item.active { color: var(--accent2); }
.step-item.done   { color: var(--green); }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; flex-shrink: 0;
  transition: all .22s;
}
.step-item.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-item.done   .step-num { background: var(--green);  border-color: var(--green);  color: #fff; }
.step-arrow { color: var(--text-dim); margin: 0 .75rem; font-size: .85rem; }

/* Visibility cards */
.visibility-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-top: .5rem;
}
.vis-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .22s ease;
  background: var(--bg3);
  position: relative;
  user-select: none;
  display: block;
}
.vis-card:hover { border-color: var(--vis-color, var(--accent)); transform: translateY(-2px); }
.vis-card.selected {
  border-color: var(--vis-color, var(--accent));
  background: color-mix(in srgb, var(--vis-color, var(--accent)) 8%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vis-color,var(--accent)) 15%, transparent);
}
.vis-card input[type="radio"] { position:absolute; opacity:0; width:0; height:0; }
.vis-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto .875rem;
  transition: transform .22s;
}
.vis-card.selected .vis-icon { transform: scale(1.08); }
.vis-title { font-size: .95rem; font-weight: 800; margin-bottom: .4rem; color: var(--text); }
.vis-desc  { font-size: .76rem; color: var(--text-muted); line-height: 1.55; }
.vis-check {
  position: absolute; top: .6rem; right: .6rem;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; transition: all .22s;
}
.vis-card.selected .vis-check {
  background: var(--vis-color, var(--accent));
  border-color: var(--vis-color, var(--accent));
  color: #fff;
}
.vis-preview {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; border-radius: var(--radius);
  font-size: .82rem; margin-top: .875rem;
  border: 1px solid var(--border); background: var(--bg3);
  transition: all .3s;
}
@media (max-width: 640px) {
  .visibility-grid { grid-template-columns: 1fr; }
  .upload-steps { flex-wrap: wrap; gap: .5rem; }
  .step-arrow { display: none; }
}

/* ── Collapsible Sidebar Sections ────────────────────────── */
.nav-section-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
  margin-top: .25rem;
}
.nav-section-label:hover { background: rgba(255,255,255,.04); color: var(--text-muted); }
.nav-section-label .nav-section-toggle {
  font-size: .6rem;
  opacity: .55;
  transition: transform .22s;
  margin-left: auto;
  padding-left: .4rem;
}
.nav-section-label.collapsed .nav-section-toggle { transform: rotate(-90deg); }
.nav-section-group { overflow: hidden; transition: max-height .25s ease, opacity .2s; }
.nav-section-group.collapsed { max-height: 0 !important; opacity: 0; pointer-events: none; }
