*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

:root {
  --red: #e63946;
  --red-dark: #b52733;
  --red-glow: rgba(230,57,70,0.25);
  --bg: #07070f;
  --surface: #0f0f1c;
  --surface2: #161626;
  --surface3: #1e1e32;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0f0f8;
  --muted: rgba(255,255,255,0.45);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #e63946;
  --sidebar-w: 240px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* ══════════ LOGIN */
#login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(230,57,70,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(69,123,157,0.08) 0%, transparent 60%),
    var(--bg);
}
#config-banner {
  display: none; align-items: flex-start; gap: 12px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 20px;
  font-size: 13px; color: #fbbf24; line-height: 1.6;
}
.login-wrap { width: 100%; max-width: 440px; }
.login-card {
  background: rgba(15,15,28,0.85); border: 1px solid var(--border2);
  border-radius: 28px; padding: 44px 40px 40px; backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(230,57,70,0.06); animation: fadeUp 0.5s ease;
}

@keyframes fadeUp  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes slideIn { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastIn { from { opacity:0; transform:translateY(16px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }

.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); box-shadow: 0 0 0 8px rgba(230,57,70,0.1), 0 0 40px rgba(230,57,70,0.2); }
.login-logo h2 { margin-top: 16px; font-size: 22px; font-weight: 900; letter-spacing: -0.3px; }
.login-logo p  { font-size: 13px; color: var(--muted); margin-top: 5px; }

.field-group { margin-bottom: 18px; }
.field-group label { display: block; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; }
.field-group input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; color: var(--text); font-size: 15px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.field-group input:focus { border-color: var(--red); background: rgba(230,57,70,0.04); box-shadow: 0 0 0 3px rgba(230,57,70,0.12); }
.field-group input::placeholder { color: rgba(255,255,255,0.2); }

.login-error { display: none; align-items: center; gap: 10px; background: rgba(230,57,70,0.08); border: 1px solid rgba(230,57,70,0.3); border-radius: 12px; padding: 12px 15px; font-size: 13px; color: #ff8c8c; margin-bottom: 16px; }

/* ══════════ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 11px; border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; white-space: nowrap;
}
.btn:hover   { transform: translateY(-1px); opacity: 0.9; }
.btn:active  { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: white; box-shadow: 0 4px 16px rgba(230,57,70,0.35); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(230,57,70,0.5); }
.btn-green   { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
.btn-danger  { background: linear-gradient(135deg, #e63946, #b52733); color: white; }
.btn-ghost   { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-full    { width: 100%; padding: 14px; font-size: 15px; }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* ══════════ DASHBOARD LAYOUT */
#dashboard { display: none; min-height: 100vh; }
.app-layout { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); overflow-y: auto;
}
.sidebar-head { padding: 22px 18px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 11px; }
.sidebar-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; border: 2px solid var(--red); box-shadow: 0 0 12px rgba(230,57,70,0.3); flex-shrink: 0; }
.sidebar-brand { flex: 1; overflow: hidden; }
.sidebar-brand h3 { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-brand p  { font-size: 10px; color: var(--muted); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 14px 10px; }
.nav-section-label { font-size: 9px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; padding: 0 10px; margin: 16px 0 8px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); transition: all 0.18s ease; margin-bottom: 2px; border: 1px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-item.active { background: linear-gradient(135deg, rgba(230,57,70,0.18), rgba(181,39,51,0.1)); color: #ff8090; border-color: rgba(230,57,70,0.2); }
.nav-icon { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }

.sidebar-footer { padding: 14px 10px; border-top: 1px solid var(--border); }
.user-pill { display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: rgba(255,255,255,0.04); border-radius: 13px; border: 1px solid var(--border); margin-bottom: 8px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: white; flex-shrink: 0; }
.user-info { flex: 1; overflow: hidden; }
.user-info .u-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .u-role { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* MAIN */
.main-content { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }

/* TOPBAR */
.topbar { height: 62px; background: rgba(7,7,15,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 22px; gap: 14px; position: sticky; top: 0; z-index: 100; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; padding: 4px; border-radius: 8px; transition: background .2s; }
.menu-toggle:hover { background: rgba(255,255,255,0.08); }
.topbar-title { font-size: 17px; font-weight: 800; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.site-link { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted); text-decoration: none; padding: 7px 13px; border-radius: 10px; font-size: 12px; font-weight: 700; transition: all .2s; }
.site-link:hover { background: rgba(230,57,70,0.1); border-color: rgba(230,57,70,0.3); color: var(--red); }

/* CONTENT */
.content-area { flex: 1; padding: 26px 22px; }
.panel { display: none; animation: slideIn 0.22s ease; }
.panel.active { display: block; }

/* CARD */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; }
.ct-icon { font-size: 19px; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 16px; text-align: center; transition: transform .2s, border-color .2s; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), #ff7b84); border-radius: 18px 18px 0 0; }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(230,57,70,0.2); }
.stat-icon  { font-size: 26px; margin-bottom: 9px; }
.stat-num   { font-size: 28px; font-weight: 900; color: var(--red); line-height: 1; }
.stat-label { font-size: 10px; color: var(--muted); margin-top: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* QUICK ACTIONS */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); transition: all .2s; text-align: center; }
.quick-btn:hover { background: rgba(230,57,70,0.08); border-color: rgba(230,57,70,0.25); color: var(--text); transform: translateY(-2px); }
.quick-btn-icon { font-size: 24px; }

/* UPLOAD ZONE */
.upload-zone { border: 2px dashed rgba(230,57,70,0.3); border-radius: 16px; padding: 34px 20px; text-align: center; cursor: pointer; transition: all .2s; background: rgba(230,57,70,0.03); margin-bottom: 18px; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--red); background: rgba(230,57,70,0.08); }
.upload-zone input[type="file"] { display: none; }
.upload-zone .uz-icon  { font-size: 34px; margin-bottom: 11px; }
.upload-zone .uz-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.upload-zone .uz-sub   { font-size: 12px; color: var(--muted); }
.upload-zone .uz-btn   { display: inline-block; margin-top: 13px; background: rgba(230,57,70,0.14); color: var(--red); border: 1px solid rgba(230,57,70,0.3); padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* PROGRESS */
.progress-wrapper { display: none; margin-bottom: 14px; }
.progress-bar  { height: 6px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), #ff7b84); border-radius: 100px; width: 0%; transition: width .2s; }
.progress-label { font-size: 11px; color: var(--muted); margin-bottom: 5px; }

/* IMAGE GRID */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.img-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--surface2); border: 1px solid var(--border); }
.img-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.img-item:hover img { transform: scale(1.06); }
.img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.img-item:hover .img-overlay { opacity: 1; }
.img-del { background: rgba(230,57,70,0.9); color: white; border: none; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s; }
.img-del:hover { background: var(--red-dark); }
.img-count { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }

/* FORM FIELDS */
.f-input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 11px; padding: 11px 14px; color: var(--text); font-size: 14px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; margin-bottom: 10px; }
.f-input:focus { border-color: var(--red); background: rgba(230,57,70,0.04); box-shadow: 0 0 0 3px rgba(230,57,70,0.1); }
.f-input::placeholder { color: rgba(255,255,255,0.18); }
.f-label { display: block; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.f-group { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* EVENT IMAGE PICKER */
.evt-img-wrap { border: 2px dashed rgba(230,57,70,0.22); border-radius: 14px; min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; padding: 18px; font-size: 13px; color: var(--muted); text-align: center; gap: 7px; margin-bottom: 14px; }
.evt-img-wrap:hover { border-color: var(--red); background: rgba(230,57,70,0.05); color: var(--text); }
#evt-preview-area { width: 100%; text-align: center; }

/* EVENT ROWS */
.event-list { display: flex; flex-direction: column; gap: 10px; }

/* TABS */
.tab-group { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab-btn { padding: 7px 16px; border-radius: 100px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.tab-btn:hover { border-color: rgba(230,57,70,0.3); color: var(--text); }
.tab-btn.active { background: var(--red); border-color: var(--red); color: white; }

/* ADMIN ROWS */
.admin-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; transition: border-color .2s; }
.admin-row:hover { border-color: rgba(255,255,255,0.12); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; color: white; flex-shrink: 0; }
.avatar.permanent { background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 0 12px rgba(230,57,70,0.3); }
.avatar.temp       { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 100px; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.badge.perm { background: rgba(230,57,70,0.14); color: #ff8c8c; border: 1px solid rgba(230,57,70,0.2); }
.badge.temp { background: rgba(59,130,246,0.11); color: #93c5fd; border: 1px solid rgba(59,130,246,0.2); }
.add-admin-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }

/* ACHIEVEMENTS */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ach-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 18px; padding: 18px; position: relative; transition: transform .2s, border-color .2s; }
.ach-card:hover { transform: translateY(-3px); border-color: rgba(230,57,70,0.2); }
.ach-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ach-emoji { font-size: 26px; }
.ach-cat   { font-size: 9px; font-weight: 800; color: var(--red); letter-spacing: 1px; text-transform: uppercase; }
.ach-title { font-size: 14px; font-weight: 800; margin-bottom: 7px; line-height: 1.3; }
.ach-desc  { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.ach-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ach-date   { font-size: 11px; color: var(--muted); }
.ach-actions { display: flex; gap: 6px; }

/* MEMBER ADMIN GRID */
.member-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.admin-member-card {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: border-color .2s, transform .2s; text-align: center;
}
.admin-member-card:hover { border-color: rgba(230,57,70,0.25); transform: translateY(-2px); }
.amc-photo {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(230,57,70,0.08); border: 2px solid rgba(230,57,70,0.2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.amc-info { flex: 1; width: 100%; }
.amc-name { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.amc-year { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.amc-role { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; margin-bottom: 4px; }
.amc-phone { font-size: 11px; color: var(--muted); margin-top: 5px; }
.amc-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* FACULTY ADMIN GRID */
.faculty-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.admin-faculty-card {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: border-color .2s, transform .2s; text-align: center;
}
.admin-faculty-card:hover { border-color: rgba(230,57,70,0.25); transform: translateY(-2px); }
.afc-photo {
  width: 76px; height: 92px; border-radius: 10px;
  background: rgba(230,57,70,0.08); border: 2px solid rgba(230,57,70,0.2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.afc-info { flex: 1; width: 100%; }
.afc-hod-badge { display: inline-block; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; background: rgba(230,57,70,0.15); color: var(--red); border: 1px solid rgba(230,57,70,0.3); margin-bottom: 6px; }
.afc-name { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.afc-qual { font-size: 12px; color: var(--red); font-weight: 600; margin-bottom: 2px; }
.afc-desg { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.afc-bio  { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.5; }
.afc-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: 24px; padding: 30px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; animation: fadeUp 0.3s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-head h3 { font-size: 17px; font-weight: 900; }
.modal-close { background: rgba(255,255,255,0.07); border: none; color: var(--text); width: 34px; height: 34px; border-radius: 50%; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.modal-close:hover { background: rgba(230,57,70,0.2); }

/* EMPTY STATE */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 20px; color: var(--muted); text-align: center; gap: 10px; }
.empty-state .es-icon { font-size: 38px; }
.empty-state p { font-size: 14px; font-weight: 600; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* TOASTS */
#toast-container { position: fixed; bottom: 26px; right: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-radius: 14px; font-size: 13px; font-weight: 700; color: white; box-shadow: 0 8px 32px rgba(0,0,0,0.4); animation: toastIn 0.3s ease; pointer-events: all; min-width: 210px; max-width: 320px; }
.toast.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.toast.error   { background: linear-gradient(135deg, #e63946, #b52733); }
.toast.info    { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* MOBILE OVERLAY */
#sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 190; }
#sidebar-overlay.show { display: block; }

/* MISC */
.hint-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
#admin-mgmt-label, #admin-mgmt-btn, #guide-admin { display: none; }
.limit-msg { display: none; align-items: center; gap: 8px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #fbbf24; margin-top: 10px; }
.notice-card { display: flex; align-items: flex-start; gap: 11px; background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.17); border-radius: 13px; padding: 14px; font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 14px; }
.notice-icon { font-size: 19px; flex-shrink: 0; margin-top: 1px; }

/* ══════════ RESPONSIVE */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .topbar { padding: 0 14px; }
  .content-area { padding: 18px 14px; }
  .img-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
  .ach-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .site-link span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .add-admin-form { grid-template-columns: 1fr; }
  .member-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .login-card { padding: 30px 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .member-admin-grid { grid-template-columns: 1fr; }
}

/* ── Activity Log ──────────────────────────────── */
.activity-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-body { flex: 1; min-width: 0; }
.activity-detail {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  word-break: break-word;
}
.activity-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.activity-badge {
  background: var(--accent, #e63946);
  color: #fff;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: capitalize;
  font-weight: 600;
}
