/* ============================================================
   BOL ALUMNI - Design System
   Inspired by bol.com visual language
============================================================ */

:root {
  --bol-blue: #0000a4;
  --bol-blue-dark: #00007a;
  --bol-blue-med: #0000cc;
  --bol-blue-light: #e8ecff;
  --bol-blue-lighter: #f0f3ff;
  --bol-orange: #e63300;
  --bol-orange-light: #fff3ef;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --border: #e4e6ea;
  --border-light: #f0f0f0;
  --text: #1a1a2e;
  --text-2: #555567;
  --text-3: #9999aa;
  --success: #00a856;
  --success-bg: #e8f8ef;
  --warning: #ff9500;
  --warning-bg: #fff8e6;
  --danger: #e63300;
  --danger-bg: #fff0ec;
  --info: #0099cc;
  --info-bg: #e8f6fc;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 2px 8px rgba(0, 0, 100, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 100, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 100, 0.16);
  --transition: 0.18s ease;
  --sidebar-w: 256px;
  --header-h: 60px;
  --mobile-nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bol-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
img { max-width: 100%; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   SCROLLBARS
============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d4e0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #b0b4c0; }

/* ============================================================
   LOGO
============================================================ */
.logo-bol { font-size: 1.4rem; font-weight: 900; color: var(--bol-blue); letter-spacing: -1px; }
.logo-dot { font-size: 1.4rem; font-weight: 900; color: var(--bol-orange); }
.logo-tag { font-size: 0.8rem; font-weight: 700; color: var(--bol-blue); letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; margin-left: 3px; }

/* ============================================================
   LOADING SCREEN
============================================================ */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--bol-blue);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
#loading-screen.fade-out { opacity: 0; pointer-events: none; }
.loading-content { text-align: center; color: white; }
.loading-content .logo-bol, .loading-content .logo-tag { color: white; }
.loading-content .logo-dot { color: var(--bol-orange); }
.loading-content p { margin-top: 20px; opacity: 0.7; font-size: 0.9rem; }
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  margin: 20px auto 0;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   AUTH SCREEN
============================================================ */
#auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.auth-bg {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--bol-blue) 0%, #0000cc 40%, #3300aa 100%);
  z-index: 0;
}
.auth-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(230,51,0,0.15) 0%, transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
}
.auth-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 24px;
}
.auth-brand { text-align: center; }
.auth-logo .logo-bol, .auth-logo .logo-tag { color: white; }
.auth-logo .logo-dot { color: #ff8c55; }
.auth-logo .logo-bol { font-size: 2rem; }
.auth-logo .logo-dot { font-size: 2rem; }
.auth-logo .logo-tag { font-size: 0.9rem; }
.auth-tagline { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 6px; }
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.auth-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.auth-subtitle { color: var(--text-2); font-size: 0.9rem; margin-bottom: 24px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-3); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.auth-demo-hint {
  margin-top: 20px; padding: 12px 14px;
  background: var(--bol-blue-lighter); border-radius: var(--radius-sm);
  font-size: 0.78rem; color: var(--bol-blue); line-height: 1.7;
  border: 1px solid var(--bol-blue-light);
}

/* ============================================================
   FORMS
============================================================ */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--text-2); margin-bottom: 6px; }
.form-group label .required { color: var(--bol-orange); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--bol-blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 164, 0.1);
  background: white;
}
.form-group small { display: block; color: var(--text-3); font-size: 0.78rem; margin-top: 5px; }
.form-group textarea { resize: vertical; min-height: 80px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 44px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.5;
  transition: opacity var(--transition);
}
.toggle-pw:hover { opacity: 1; }
.form-error {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid rgba(230,51,0,0.2);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 12px;
}
.form-success {
  background: var(--success-bg); color: var(--success);
  border: 1px solid rgba(0,168,86,0.2);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 12px;
}
.gdpr-consent { margin: 16px 0; padding: 14px; background: var(--bol-blue-lighter); border-radius: var(--radius-sm); border: 1px solid var(--bol-blue-light); }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--bol-blue); }
.checkbox-label a { color: var(--bol-blue); text-decoration: underline; }

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  background: var(--bol-blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: var(--bol-blue-med); box-shadow: 0 4px 12px rgba(0,0,164,0.3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-orange { background: var(--bol-orange); }
.btn-primary.btn-orange:hover { background: #cc2a00; }
.btn-outline {
  background: transparent; color: var(--bol-blue);
  border: 2px solid var(--bol-blue);
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outline:hover { background: var(--bol-blue-lighter); }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: none; border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-ghost-sm {
  background: transparent; color: var(--bol-blue);
  border: none; padding: 4px 10px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition);
}
.btn-ghost-sm:hover { background: var(--bol-blue-lighter); }
.btn-danger { background: var(--danger); color: white; border-radius: var(--radius-sm); padding: 9px 20px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-danger:hover { background: #cc2a00; }
.btn-success { background: var(--success); color: white; border-radius: var(--radius-sm); padding: 9px 20px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn-icon { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: all var(--transition); }
.btn-icon:hover { background: var(--bol-blue-lighter); border-color: var(--bol-blue-light); }

/* ============================================================
   HEADER
============================================================ */
#app-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bol-blue);
  display: flex; align-items: center;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  gap: 16px;
}
.header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-logo { cursor: pointer; display: flex; align-items: baseline; gap: 2px; }
.header-logo .logo-bol { color: white; font-size: 1.2rem; }
.header-logo .logo-dot { color: #ff8c55; font-size: 1.2rem; }
.header-logo .logo-tag { color: rgba(255,255,255,0.7); font-size: 0.7rem; }
.header-search { flex: 1; max-width: 400px; margin: 0 auto; }
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; pointer-events: none; }
.search-wrap input {
  width: 100%; padding: 8px 14px 8px 36px;
  border: none; border-radius: 20px;
  background: rgba(255,255,255,0.15);
  color: white; font-size: 0.9rem;
  outline: none;
  transition: background var(--transition);
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.6); }
.search-wrap input:focus { background: rgba(255,255,255,0.25); }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; z-index: 200;
  max-height: 300px; overflow-y: auto;
}
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
}
.search-result-item:hover { background: var(--bol-blue-lighter); }
.search-result-item:last-child { border-bottom: none; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
  position: relative; border: none;
}
.header-btn:hover { background: rgba(255,255,255,0.22); }
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--bol-orange); color: white;
  font-size: 0.65rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--bol-blue);
}
.header-profile {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 4px 8px; border-radius: 20px;
  transition: background var(--transition);
  position: relative;
}
.header-profile:hover { background: rgba(255,255,255,0.12); }
.header-name { color: white; font-size: 0.85rem; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: rgba(255,255,255,0.6); font-size: 0.7rem; }
.hamburger-btn {
  width: 36px; height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255,255,255,0.12); border: none; border-radius: 8px; cursor: pointer; padding: 0;
  display: none;
}
.hamburger-btn span { width: 18px; height: 2px; background: white; border-radius: 2px; display: block; transition: all var(--transition); }
.hamburger-btn:hover { background: rgba(255,255,255,0.22); }

/* Profile menu */
.profile-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px;
  z-index: 300; overflow: hidden;
  animation: slideUp 0.15s ease;
}
.profile-menu-header { padding: 14px 16px; display: flex; align-items: center; gap: 12px; background: var(--bol-blue-lighter); }
.profile-menu-header strong { display: block; font-weight: 700; font-size: 0.9rem; }
.profile-menu-header small { color: var(--text-2); font-size: 0.78rem; }
.profile-menu-divider { height: 1px; background: var(--border); }
.profile-menu button { display: block; width: 100%; text-align: left; padding: 10px 16px; font-size: 0.9rem; font-weight: 600; color: var(--text); cursor: pointer; transition: background var(--transition); border: none; background: none; }
.profile-menu button:hover { background: var(--bol-blue-lighter); color: var(--bol-blue); }
.profile-menu button.danger:hover { background: var(--danger-bg); color: var(--danger); }

/* ============================================================
   NOTIFICATIONS PANEL
============================================================ */
.notif-panel {
  position: fixed; top: var(--header-h); right: 0;
  width: 360px; max-height: calc(100vh - var(--header-h));
  background: white; box-shadow: var(--shadow-lg);
  z-index: 200; display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
  animation: slideInRight 0.2s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.notif-overlay { position: fixed; inset: 0; z-index: 199; }
.notif-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.notif-header h3 { font-size: 1rem; font-weight: 800; }
.notif-list { overflow-y: auto; flex: 1; }
.notif-item { padding: 14px 20px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background var(--transition); display: flex; gap: 12px; align-items: flex-start; }
.notif-item:hover { background: var(--bol-blue-lighter); }
.notif-item.unread { background: var(--bol-blue-lighter); }
.notif-item.unread::before { content: ''; width: 8px; height: 8px; background: var(--bol-blue); border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.notif-item-text { flex: 1; font-size: 0.85rem; }
.notif-item-text strong { display: block; font-weight: 600; color: var(--text); }
.notif-item-time { font-size: 0.75rem; color: var(--text-3); margin-top: 3px; }
.notif-empty { padding: 40px 20px; text-align: center; color: var(--text-3); }

/* ============================================================
   SIDEBAR
============================================================ */
#sidebar {
  position: fixed; top: var(--header-h); left: 0;
  width: var(--sidebar-w); height: calc(100vh - var(--header-h));
  background: white; border-right: 1px solid var(--border);
  z-index: 50; display: flex; flex-direction: column;
  transition: transform var(--transition);
}
.sidebar-inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-section { margin-bottom: 8px; }
.nav-section-title { padding: 6px 16px 4px; font-size: 0.72rem; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 9px 16px;
  border: none; background: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--text-2);
  transition: background var(--transition), color var(--transition);
  text-align: left; border-radius: 0;
}
.nav-item:hover { background: var(--bol-blue-lighter); color: var(--bol-blue); }
.nav-item.active { background: var(--bol-blue-lighter); color: var(--bol-blue); font-weight: 700; }
.nav-item.active .nav-icon { filter: none; }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-channel-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.nav-item-add { color: var(--text-3); font-size: 0.85rem; }
.nav-item-add:hover { color: var(--bol-blue); }
.nav-item-admin { color: var(--bol-orange) !important; }
.nav-item-admin:hover { background: var(--bol-orange-light) !important; }
.nav-item-admin.active { background: var(--bol-orange-light) !important; }
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 6px 0; border-radius: 8px;
  transition: opacity var(--transition);
}
.sidebar-user:hover { opacity: 0.7; }
.sidebar-user-info { display: flex; flex-direction: column; min-width: 0; }
.sidebar-name { font-size: 0.85rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 49; }

/* ============================================================
   MAIN CONTENT
============================================================ */
#main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  padding: 24px;
  transition: margin-left var(--transition);
}

/* ============================================================
   MOBILE NAV
============================================================ */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--mobile-nav-h);
  background: white;
  border-top: 1px solid var(--border);
  z-index: 100;
  display: none;
  grid-template-columns: repeat(5, 1fr);
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: none; background: none; cursor: pointer;
  font-size: 1.2rem; padding: 0;
  color: var(--text-2);
  transition: color var(--transition);
}
.mobile-nav-item small { font-size: 0.65rem; font-weight: 600; }
.mobile-nav-item.active { color: var(--bol-blue); }

/* ============================================================
   AVATARS
============================================================ */
.avatar-sm, .avatar-md, .avatar-lg, .avatar-xl {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0; color: white;
  font-family: 'Nunito', sans-serif;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.72rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.6rem; }

/* ============================================================
   BADGES & PILLS
============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-blue { background: var(--bol-blue-light); color: var(--bol-blue); }
.badge-orange { background: var(--bol-orange-light); color: var(--bol-orange); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-gray { background: var(--border); color: var(--text-2); }
.badge-purple { background: #f0e8ff; color: #7c3aed; }
.sidebar-role-badge { font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }

/* ============================================================
   CARDS
============================================================ */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.card-sm { padding: 14px 16px; }
.card-lg { padding: 28px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h3 { font-size: 1rem; font-weight: 800; }
.card-title { font-size: 0.95rem; font-weight: 800; color: var(--text); }

/* ============================================================
   PAGE HEADERS
============================================================ */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.6rem; font-weight: 900; color: var(--text); }
.page-header p { color: var(--text-2); margin-top: 4px; font-size: 0.9rem; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   DASHBOARD
============================================================ */
.dashboard-welcome {
  background: linear-gradient(135deg, var(--bol-blue) 0%, #0000cc 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.dashboard-welcome::after {
  content: 'bol.';
  position: absolute; right: -10px; bottom: -20px;
  font-size: 8rem; font-weight: 900; color: rgba(255,255,255,0.06);
  font-family: 'Nunito', sans-serif; line-height: 1;
  pointer-events: none;
}
.dashboard-welcome h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; }
.dashboard-welcome p { opacity: 0.8; font-size: 0.92rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 900; color: var(--bol-blue); line-height: 1; }
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-2); font-weight: 600; }
.stat-card .stat-icon { font-size: 1.4rem; margin-bottom: 6px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.recent-activity .activity-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}
.recent-activity .activity-item:last-child { border-bottom: none; }
.activity-meta { color: var(--text-3); font-size: 0.78rem; margin-top: 2px; }
.activity-channel { display: inline-flex; align-items: center; gap: 4px; background: var(--bol-blue-lighter); color: var(--bol-blue); font-size: 0.75rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-bottom: 3px; }

/* ============================================================
   CHANNELS
============================================================ */
.channels-layout {
  display: flex;
  height: calc(100vh - var(--header-h) - 48px);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.channel-sidebar {
  width: 220px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--surface-2);
}
.channel-sidebar-header { padding: 16px; border-bottom: 1px solid var(--border); }
.channel-sidebar-header h3 { font-size: 0.85rem; font-weight: 800; color: var(--text); }
.channel-list { overflow-y: auto; flex: 1; padding: 8px 0; }
.channel-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer;
  transition: background var(--transition);
  font-size: 0.88rem; font-weight: 600; color: var(--text-2);
}
.channel-list-item:hover { background: var(--bol-blue-lighter); color: var(--bol-blue); }
.channel-list-item.active { background: var(--bol-blue-light); color: var(--bol-blue); font-weight: 700; }
.channel-list-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  background: white;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-info h3 { font-size: 1rem; font-weight: 800; }
.chat-header-info p { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.msg {
  display: flex; gap: 10px;
  padding: 4px 0;
  max-width: 100%;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.msg.grouped .msg-avatar { visibility: hidden; }
.msg-avatar { flex-shrink: 0; margin-top: 2px; }
.msg-body { flex: 1; min-width: 0; }
.msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg-name { font-weight: 800; font-size: 0.9rem; color: var(--text); }
.msg-name.is-admin { color: var(--bol-blue); }
.msg-name.is-moderator { color: var(--success); }
.msg-time { font-size: 0.72rem; color: var(--text-3); }
.msg-text { font-size: 0.9rem; color: var(--text); line-height: 1.55; word-break: break-word; }
.msg-text.deleted { color: var(--text-3); font-style: italic; }
.msg-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--border-light); border: 1px solid var(--border);
  border-radius: 20px; padding: 2px 8px;
  font-size: 0.78rem; cursor: pointer;
  transition: all var(--transition);
}
.reaction-btn.mine { background: var(--bol-blue-light); border-color: var(--bol-blue-light); color: var(--bol-blue); font-weight: 700; }
.reaction-btn:hover { background: var(--bol-blue-lighter); border-color: var(--bol-blue-light); }
.add-reaction-btn { font-size: 0.85rem; opacity: 0; transition: opacity var(--transition); background: none; border: none; cursor: pointer; padding: 2px 6px; }
.msg:hover .add-reaction-btn { opacity: 1; }
.msg-admin-actions { margin-left: auto; opacity: 0; transition: opacity var(--transition); display: flex; gap: 4px; }
.msg:hover .msg-admin-actions { opacity: 1; }
.typing-indicator { padding: 8px 20px; font-size: 0.78rem; color: var(--text-3); font-style: italic; min-height: 24px; }
.chat-input-area { padding: 12px 20px; border-top: 1px solid var(--border); background: white; flex-shrink: 0; }
.chat-input-wrap { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-wrap textarea {
  flex: 1; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 0.9rem; resize: none; min-height: 42px; max-height: 120px;
  outline: none; transition: border-color var(--transition);
  font-family: inherit; line-height: 1.5;
}
.chat-input-wrap textarea:focus { border-color: var(--bol-blue); }
.emoji-picker-wrap { position: relative; }
.emoji-quick { position: absolute; bottom: calc(100% + 6px); right: 0; background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 10px; display: flex; flex-wrap: wrap; gap: 4px; width: 220px; z-index: 10; border: 1px solid var(--border); }
.emoji-quick button { font-size: 1.2rem; padding: 4px; border: none; background: none; cursor: pointer; border-radius: 6px; transition: background var(--transition); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.emoji-quick button:hover { background: var(--bol-blue-lighter); }
.chat-select-prompt { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.chat-select-prompt-inner { text-align: center; }
.chat-select-prompt-inner .prompt-icon { font-size: 3rem; margin-bottom: 12px; }

/* ============================================================
   MEMBERS
============================================================ */
.members-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.members-filters input { flex: 1; min-width: 200px; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: white; font-size: 0.9rem; outline: none; transition: border-color var(--transition); }
.members-filters input:focus { border-color: var(--bol-blue); }
.members-filters select { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: white; font-size: 0.9rem; outline: none; cursor: pointer; transition: border-color var(--transition); }
.members-filters select:focus { border-color: var(--bol-blue); }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.member-card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 12px;
}
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--bol-blue-light); }
.member-card-top { display: flex; gap: 12px; align-items: center; }
.member-card-info { flex: 1; min-width: 0; }
.member-card-name { font-weight: 800; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-card-job { font-size: 0.8rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-card-period { font-size: 0.78rem; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.member-card-depts { display: flex; flex-wrap: wrap; gap: 4px; }
.dept-tag { background: var(--bol-blue-lighter); color: var(--bol-blue); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

/* ============================================================
   PROFILE
============================================================ */
.profile-hero {
  background: linear-gradient(135deg, var(--bol-blue) 0%, #0000cc 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  margin-bottom: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.profile-hero-info { flex: 1; }
.profile-hero-name { font-size: 1.8rem; font-weight: 900; margin-bottom: 4px; }
.profile-hero-job { font-size: 1rem; opacity: 0.85; margin-bottom: 12px; }
.profile-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white { background: white; color: var(--bol-blue); border-radius: var(--radius-sm); padding: 8px 18px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); border: none; }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-white-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); border-radius: var(--radius-sm); padding: 6px 18px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); }
.btn-white-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.profile-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.profile-section { margin-bottom: 20px; }
.profile-section-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 10px; }
.profile-detail-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.profile-detail-row:last-child { border-bottom: none; }
.profile-detail-label { min-width: 140px; font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.profile-detail-value { font-size: 0.9rem; color: var(--text); flex: 1; }
.social-link { display: inline-flex; align-items: center; gap: 6px; color: var(--bol-blue); font-size: 0.88rem; font-weight: 600; padding: 4px 10px; background: var(--bol-blue-lighter); border-radius: 20px; text-decoration: none; transition: all var(--transition); }
.social-link:hover { background: var(--bol-blue-light); text-decoration: none; }
.collab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.collab-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px 5px 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.collab-chip:hover { background: var(--bol-blue-lighter); border-color: var(--bol-blue-light); color: var(--bol-blue); }
.linkedin-badge { display: inline-flex; align-items: center; gap: 6px; background: #0077b5; color: white; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; text-decoration: none; }

/* ============================================================
   EVENTS
============================================================ */
.events-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.event-card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  display: flex; gap: 16px; margin-bottom: 14px;
  transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: var(--bol-blue-light); }
.event-date-badge {
  min-width: 56px; height: 60px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bol-blue); color: white; flex-shrink: 0;
}
.event-date-badge .day { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.event-date-badge .month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; opacity: 0.85; }
.event-info { flex: 1; min-width: 0; }
.event-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--text-2); margin: 6px 0; }
.event-meta span { display: flex; align-items: center; gap: 4px; }
.event-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.mini-calendar { background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-light); overflow: hidden; }
.calendar-header { background: var(--bol-blue); color: white; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.calendar-header h3 { font-size: 0.95rem; font-weight: 800; }
.cal-nav { background: rgba(255,255,255,0.15); border: none; color: white; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background var(--transition); }
.cal-nav:hover { background: rgba(255,255,255,0.25); }
.calendar-grid { padding: 12px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-name { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-3); padding: 4px 0; }
.cal-day { text-align: center; padding: 5px 2px; font-size: 0.8rem; cursor: pointer; border-radius: 6px; transition: background var(--transition); }
.cal-day:hover { background: var(--bol-blue-lighter); color: var(--bol-blue); }
.cal-day.has-event { background: var(--bol-blue-lighter); color: var(--bol-blue); font-weight: 700; position: relative; }
.cal-day.has-event::after { content: '•'; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 0.5rem; color: var(--bol-blue); }
.cal-day.today { background: var(--bol-blue) !important; color: white !important; font-weight: 700; }
.cal-day.other-month { opacity: 0.3; }
.upcoming-events-list { padding: 12px; }
.upcoming-event-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: opacity var(--transition); }
.upcoming-event-item:hover { opacity: 0.7; }
.upcoming-event-item:last-child { border-bottom: none; }
.upcoming-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bol-blue); flex-shrink: 0; margin-top: 6px; }
.upcoming-title { font-size: 0.82rem; font-weight: 700; }
.upcoming-date { font-size: 0.75rem; color: var(--text-3); }

/* ============================================================
   ADMIN PANEL
============================================================ */
.admin-header { background: linear-gradient(135deg, #1a1a3e, #0d0d2b); border-radius: var(--radius-lg); padding: 28px 32px; color: white; margin-bottom: 24px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; }
.admin-header p { opacity: 0.7; font-size: 0.9rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-stat { background: white; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border-light); }
.admin-stat .val { font-size: 2rem; font-weight: 900; color: var(--bol-blue); line-height: 1; }
.admin-stat .lbl { font-size: 0.78rem; color: var(--text-2); font-weight: 600; margin-top: 4px; }
.admin-tabs { display: flex; gap: 2px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 20px; flex-wrap: wrap; border: 1px solid var(--border); }
.admin-tab { padding: 8px 16px; border-radius: 6px; border: none; background: none; font-size: 0.88rem; font-weight: 700; color: var(--text-2); cursor: pointer; transition: all var(--transition); }
.admin-tab.active { background: white; color: var(--bol-blue); box-shadow: var(--shadow); }
.admin-tab:hover:not(.active) { background: rgba(255,255,255,0.6); color: var(--text); }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { background: var(--surface-2); padding: 12px 14px; text-align: left; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-2); border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bol-blue-lighter); }
.table-actions { display: flex; gap: 6px; }

/* ============================================================
   SETTINGS
============================================================ */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.settings-nav { background: white; border-radius: var(--radius); padding: 12px 0; box-shadow: var(--shadow); border: 1px solid var(--border-light); height: fit-content; }
.settings-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: none; background: none; font-size: 0.88rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all var(--transition); text-align: left; }
.settings-nav-item:hover { background: var(--bol-blue-lighter); color: var(--bol-blue); }
.settings-nav-item.active { background: var(--bol-blue-lighter); color: var(--bol-blue); font-weight: 700; }
.settings-content { display: flex; flex-direction: column; gap: 16px; }
.settings-section { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.settings-section h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.settings-section .desc { font-size: 0.85rem; color: var(--text-2); margin-bottom: 20px; }
.privacy-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.privacy-row:last-child { border-bottom: none; }
.privacy-label { font-size: 0.9rem; font-weight: 600; }
.privacy-desc { font-size: 0.78rem; color: var(--text-2); margin-top: 2px; }

/* ============================================================
   MODALS
============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeOverlay 0.2s ease;
}
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
  position: relative;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.1rem; font-weight: 800; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.modal-close:hover { background: var(--border); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ============================================================
   TOASTS
============================================================ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--text);
  color: white;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-md);
  min-width: 240px; max-width: 360px;
  animation: slideInRight 0.25s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--bol-blue); }
.toast.warning { background: var(--warning); color: var(--text); }
.toast.fade-out { animation: fadeOut 0.3s ease forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

/* ============================================================
   EMPTY STATES
============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.empty-state p { font-size: 0.88rem; max-width: 300px; margin: 0 auto 20px; }

/* ============================================================
   MISC UTILITIES
============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.text-muted { color: var(--text-2); }
.text-xs-muted { font-size: 0.75rem; color: var(--text-3); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-blue { color: var(--bol-blue); }
.text-orange { color: var(--bol-orange); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rounded { border-radius: var(--radius); }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 1024px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .events-layout { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; padding: 8px; }
  .settings-nav-item { flex-shrink: 0; white-space: nowrap; }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .hamburger-btn { display: flex !important; }
  .header-name { display: none; }

  #sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  #sidebar.open {
    transform: translateX(0);
    --sidebar-w: 280px;
  }

  #main-content {
    margin-left: 0;
    padding: 16px;
    padding-bottom: calc(var(--mobile-nav-h) + 16px);
  }

  .mobile-nav { display: grid; }

  .auth-card { padding: 24px; }
  .auth-container { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }

  .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dashboard-welcome { padding: 20px; }
  .dashboard-welcome h2 { font-size: 1.2rem; }

  .channels-layout { border-radius: 0; height: calc(100vh - var(--header-h) - var(--mobile-nav-h)); }
  .channel-sidebar { display: none; }
  .channel-sidebar.show { display: flex; position: fixed; top: var(--header-h); left: 0; bottom: var(--mobile-nav-h); width: 280px; z-index: 150; box-shadow: var(--shadow-lg); }

  .profile-hero { flex-direction: column; padding: 20px; }
  .profile-hero-name { font-size: 1.3rem; }

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

  .notif-panel { width: 100%; right: 0; }

  table th:nth-child(n+4), table td:nth-child(n+4) { display: none; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; }

  .modal-box { padding: 20px; }

  #toast-container { bottom: calc(var(--mobile-nav-h) + 12px); right: 12px; left: 12px; }
  .toast { min-width: 0; }
}

@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
}

/* ============================================================
   HIRE BADGE & MEMBER CARD EXTENSION
============================================================ */
.hire-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--success-bg); color: var(--success);
  border: 1px solid rgba(0,168,86,0.25);
  font-size: 0.68rem; font-weight: 800;
  padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.hire-type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.hire-type-freelance { background: #e8f6ff; color: #0077cc; }
.hire-type-interim { background: #fff8e6; color: #cc7700; }
.hire-type-consulting { background: #f0e8ff; color: #7c3aed; }

/* ============================================================
   HIRE PAGE
============================================================ */
.hire-hero {
  background: linear-gradient(135deg, var(--success) 0%, #00c060 100%);
  border-radius: var(--radius-lg); padding: 28px 32px; color: white;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.hire-hero::after {
  content: '💼'; position: absolute; right: 20px; bottom: -10px;
  font-size: 6rem; opacity: 0.12; pointer-events: none;
}
.hire-hero h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 6px; }
.hire-hero p { opacity: 0.85; font-size: 0.92rem; }
.hire-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.hire-filter-btn {
  padding: 7px 16px; border-radius: 20px; border: 2px solid var(--border);
  background: white; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  color: var(--text-2); transition: all var(--transition);
}
.hire-filter-btn:hover { border-color: var(--success); color: var(--success); }
.hire-filter-btn.active { background: var(--success); border-color: var(--success); color: white; }
.hire-card {
  background: white; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  border-top: 3px solid var(--success);
  cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 14px;
}
.hire-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hire-card-top { display: flex; gap: 14px; align-items: flex-start; }
.hire-card-info { flex: 1; min-width: 0; }
.hire-card-name { font-weight: 900; font-size: 1rem; margin-bottom: 2px; }
.hire-card-job { font-size: 0.82rem; color: var(--text-2); margin-bottom: 6px; }
.hire-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hire-rate-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--success-bg); color: var(--success);
  font-size: 0.82rem; font-weight: 700; padding: 3px 10px; border-radius: 10px;
}
.hire-location-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; color: var(--text-2); padding: 3px 0;
}
.hire-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.hire-skill-tag {
  background: var(--bol-blue-lighter); color: var(--bol-blue);
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 10px;
}
.hire-note {
  font-size: 0.82rem; color: var(--text-2); line-height: 1.6;
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 10px 14px; border-left: 3px solid var(--success);
}
.hire-avail-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--text-3);
}

/* ============================================================
   STATS PAGE
============================================================ */
.stats-hero {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.stats-hero-card {
  background: white; border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  text-align: center;
}
.stats-hero-card .s-icon { font-size: 2rem; margin-bottom: 8px; }
.stats-hero-card .s-val { font-size: 2.4rem; font-weight: 900; color: var(--bol-blue); line-height: 1; }
.stats-hero-card .s-lbl { font-size: 0.8rem; color: var(--text-2); font-weight: 600; margin-top: 4px; }
.stats-section { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); margin-bottom: 20px; }
.stats-section-title { font-size: 1rem; font-weight: 900; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

/* Timeline chart */
.timeline-chart { overflow-x: auto; }
.timeline-year-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-3); font-weight: 700; margin-bottom: 6px; padding: 0 2px; }
.timeline-bars { display: flex; flex-direction: column; gap: 5px; }
.timeline-member-row { display: flex; align-items: center; gap: 10px; }
.timeline-member-name { min-width: 120px; font-size: 0.78rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.timeline-bar-track { flex: 1; height: 20px; background: var(--surface-2); border-radius: 4px; position: relative; overflow: hidden; }
.timeline-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--bol-blue) 0%, #3333cc 100%);
  position: absolute; top: 0;
  display: flex; align-items: center; padding: 0 6px;
  font-size: 0.65rem; font-weight: 700; color: white; white-space: nowrap;
  overflow: hidden; min-width: 4px;
}
.timeline-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,0.06); }

/* Yearly presence chart */
.presence-chart { display: flex; align-items: flex-end; gap: 2px; height: 80px; margin-bottom: 8px; }
.presence-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; min-width: 0; overflow: hidden; }
.presence-bar {
  width: 100%; background: var(--bol-blue); border-radius: 3px 3px 0 0;
  transition: height 0.3s ease; min-height: 3px;
}
.presence-bar:hover { background: var(--bol-blue-med); }
.presence-year { font-size: 0.55rem; color: var(--text-3); font-weight: 700; white-space: nowrap; writing-mode: horizontal-tb; }

/* Department chart */
.dept-chart { display: flex; flex-direction: column; gap: 10px; }
.dept-row { display: flex; align-items: center; gap: 10px; }
.dept-row-name { min-width: 160px; font-size: 0.82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept-bar-track { flex: 1; height: 22px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.dept-bar-fill { height: 100%; background: linear-gradient(90deg, #e63300 0%, #ff5533 100%); border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 0.72rem; font-weight: 800; color: white; min-width: 28px; }
.dept-row-count { min-width: 24px; font-size: 0.82rem; font-weight: 700; color: var(--text-2); text-align: right; }

/* Company list */
.company-list { display: flex; flex-direction: column; gap: 8px; }
.company-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.company-rank { min-width: 24px; font-size: 0.82rem; font-weight: 900; color: var(--text-3); }
.company-name { flex: 1; font-weight: 700; font-size: 0.9rem; }
.company-count { font-size: 0.8rem; color: var(--text-2); font-weight: 700; background: var(--bol-blue-light); color: var(--bol-blue); padding: 2px 8px; border-radius: 10px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ============================================================
   COLLABORATION SECTIONS (profile page)
============================================================ */
.collab-sections { display: flex; flex-direction: column; gap: 20px; }
.collab-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.collab-section-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }
.concurrent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.concurrent-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bol-blue-lighter); border: 1px solid var(--bol-blue-light); border-radius: 20px; padding: 5px 12px 5px 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.concurrent-chip:hover { background: var(--bol-blue-light); color: var(--bol-blue); }
.concurrent-overlap { font-size: 0.7rem; color: var(--text-3); margin-left: 2px; }
.direct-collab-list { display: flex; flex-direction: column; gap: 12px; }
.direct-collab-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  transition: all var(--transition);
}
.direct-collab-card:hover { border-color: var(--bol-blue-light); background: var(--bol-blue-lighter); }
.direct-collab-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; }
.direct-collab-name { font-weight: 700; font-size: 0.9rem; flex: 1; }
.direct-collab-projects { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.project-tag { background: var(--bol-orange-light); color: var(--bol-orange); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(230,51,0,0.15); }
.direct-collab-note { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; font-style: italic; border-left: 3px solid var(--bol-blue-light); padding-left: 10px; margin-top: 6px; }
.direct-collab-period { font-size: 0.72rem; color: var(--text-3); font-weight: 700; }

/* ============================================================
   HIRE PROFILE CARD
============================================================ */
.profile-hire-card {
  background: linear-gradient(135deg, #e8f8ef 0%, #f0fff6 100%);
  border: 2px solid rgba(0,168,86,0.3); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.profile-hire-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--success); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }

@media (max-width: 1024px) {
  .stats-hero { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats-hero { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .timeline-member-name { min-width: 80px; }
}

/* ============================================================
   PROFILE PHOTO
   ============================================================ */
.avatar-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.profile-photo-upload { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
.profile-photo-upload .avatar-xl { width: 100px; height: 100px; font-size: 2.2rem; border-radius: 50%; overflow: hidden; cursor: pointer; border: 3px solid var(--border); transition: border-color 0.2s; }
.profile-photo-upload .avatar-xl:hover { border-color: var(--primary); }
.profile-photo-hint { font-size: 0.75rem; color: var(--text-3); }

/* ============================================================
   RENAME: Te Huur → (weer) Samenwerken
   ============================================================ */
/* Classes kept as-is for backwards compat, only labels changed */

/* ============================================================
   PHOTOS PAGE
   ============================================================ */
.photos-hero { background: linear-gradient(135deg, var(--primary), #000080); color: white; border-radius: var(--radius); padding: 28px 32px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photos-hero h1 { margin: 0 0 4px 0; font-size: 1.8rem; }
.photos-hero p { margin: 0; opacity: 0.85; font-size: 0.95rem; }

.consent-banner { background: linear-gradient(135deg, #fff8e6, #fffbef); border: 2px solid #f0c030; border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.consent-banner button { background: #e6a000; color: white; border: none; border-radius: 8px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: 0.85rem; white-space: nowrap; }
.consent-banner button:hover { background: #c88800; }

.photo-year-section { margin-bottom: 32px; }
.photo-year-title { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin: 0 0 16px 0; padding-bottom: 8px; border-bottom: 2px solid var(--border); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.photo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.photo-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

.photo-img-wrap { position: relative; overflow: hidden; background: #e0e4f0; aspect-ratio: 4/3; }
.photo-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-overlay-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.face-pending-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; font-size: 0.72rem; font-weight: 800; border-radius: 20px; padding: 3px 8px; }

.photo-card-info { padding: 10px 12px; }
.photo-date { font-size: 0.82rem; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.photo-location { font-size: 0.75rem; color: var(--text-3); margin-bottom: 4px; }
.photo-tag-info { font-size: 0.78rem; color: var(--text-2); margin-bottom: 2px; }
.photo-pending-count { background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700; border-radius: 20px; padding: 1px 7px; margin-left: 4px; }
.photo-uploader { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; }

/* Photo detail (lightbox) */
.photo-detail-wrap { max-width: 760px; }
.photo-detail-img-wrap { position: relative; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.photo-detail-img-wrap img { width: 100%; max-height: 480px; object-fit: contain; display: block; }
.photo-detail-img-wrap canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: crosshair; }
.photo-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.photo-tag-chip { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 10px; font-size: 0.82rem; }
.photo-tag-chip.pending { border-color: var(--primary); background: rgba(0,0,164,0.06); }
.photo-tag-chip.approved { border-color: var(--success); background: rgba(0,168,86,0.06); }
.photo-tag-chip.declined { opacity: 0.5; text-decoration: line-through; }
.photo-tag-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.photo-tag-dot.pending { background: var(--primary); }
.photo-tag-dot.approved { background: var(--success); }
.photo-tag-dot.declined { background: var(--text-3); }
.photo-consent-btn { font-size: 0.75rem; border: none; border-radius: 6px; padding: 3px 8px; cursor: pointer; font-weight: 700; }
.photo-consent-approve { background: var(--success); color: white; }
.photo-consent-decline { background: var(--surface-2); color: var(--text-2); }

/* Upload UI */
.upload-dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 36px 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; color: var(--text-2); font-size: 0.9rem; }
.upload-dropzone:hover, .upload-dropzone.drag-over { border-color: var(--primary); background: rgba(0,0,164,0.04); color: var(--text-1); }
.upload-dropzone .upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upload-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.upload-preview-item { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.upload-preview-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.upload-preview-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: crosshair; }
.upload-preview-meta { padding: 6px 8px; font-size: 0.72rem; color: var(--text-3); }
.upload-preview-tags { padding: 0 8px 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.upload-tag-chip { background: var(--primary); color: white; font-size: 0.68rem; font-weight: 700; border-radius: 10px; padding: 2px 7px; display: flex; align-items: center; gap: 4px; }
.upload-tag-chip button { background: none; border: none; color: white; cursor: pointer; font-size: 0.8rem; padding: 0; line-height: 1; }
.upload-preview-add-tag { padding: 0 8px 8px; }
.upload-preview-add-tag button { font-size: 0.72rem; color: var(--primary); background: none; border: 1px dashed var(--primary); border-radius: 8px; padding: 3px 8px; cursor: pointer; width: 100%; }
.upload-face-overlay { position: absolute; border: 2px solid #e63300; border-radius: 50%; pointer-events: none; }
.upload-progress-bar { background: var(--border); border-radius: 8px; height: 8px; overflow: hidden; margin: 8px 0; }
.upload-progress-fill { background: linear-gradient(90deg, var(--primary), var(--accent)); height: 100%; transition: width 0.3s; }

/* Tagging click-on-photo overlay */
.tag-click-hint { text-align: center; font-size: 0.8rem; color: var(--text-3); margin: 6px 0; }
.tag-placement-circle { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #e63300; background: rgba(230,51,0,0.2); transform: translate(-50%, -50%); pointer-events: none; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 800; color: #e63300; }

/* ============================================================
   AVG / GDPR PLAN SECTION
   ============================================================ */
.avg-plan-section { background: linear-gradient(135deg, #f0f4ff, #f8faff); border: 2px solid rgba(0,0,164,0.15); border-radius: var(--radius); padding: 28px 32px; margin-top: 32px; }
.avg-plan-title { font-size: 1.1rem; font-weight: 900; color: var(--primary); margin: 0 0 6px 0; display: flex; align-items: center; gap: 8px; }
.avg-plan-subtitle { font-size: 0.82rem; color: var(--text-3); margin: 0 0 20px 0; }
.avg-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.avg-plan-block { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.avg-plan-block h3 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); margin: 0 0 10px 0; }
.avg-plan-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 0.84rem; line-height: 1.45; color: var(--text-1); }
.avg-plan-item:last-child { margin-bottom: 0; }
.avg-plan-icon { flex-shrink: 0; font-size: 0.95rem; margin-top: 1px; }
.avg-plan-question-block { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; grid-column: 1 / -1; }
.avg-plan-question-block h3 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); margin: 0 0 10px 0; }
.avg-plan-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.avg-plan-q { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 0.83rem; color: var(--text-1); line-height: 1.4; }

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .avg-plan-grid { grid-template-columns: 1fr; }
  .avg-plan-questions { grid-template-columns: 1fr; }
  .photos-hero { flex-direction: column; align-items: flex-start; }
  .upload-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
