/* ============================================
   NEU LIBRARY — GLOBAL STYLES v2
   ============================================ */
:root {
  --navy: #0a1628;
  --navy-mid: #122040;
  --navy-light: #1a2f5a;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-100: #f1f0ed;
  --gray-200: #e4e2dc;
  --gray-400: #9e9b93;
  --gray-600: #5a5750;
  --gray-800: #2e2c28;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --rose: #e11d48;
  --rose-light: #fff1f2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-800);
  min-height: 100vh;
}

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-info { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.hidden { display: none !important; }

/* ── SPINNER ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── BACKGROUND ── */
.bg-layer { position: fixed; inset: 0; z-index: 0; }
.bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #122040 50%, #0a1628 100%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: orbFloat 20s linear infinite; }
.orb-1 { width: 400px; height: 400px; background: rgba(201,168,76,0.08); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(201,168,76,0.05); bottom: -80px; right: -80px; animation-duration: 25s; animation-direction: reverse; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0); } 33% { transform: translate(30px,-20px); } 66% { transform: translate(-20px,20px); } }

/* ── BUTTONS ── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px;
  background: var(--navy); color: white;
  border: none; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; margin-top: 8px;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-logout {
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
}
.btn-logout:hover { background: rgba(239,68,68,0.2); color: #f87171; border-color: rgba(239,68,68,0.3); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 24px;
  background: white; color: #3c4043;
  border: 1.5px solid #dadce0; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: #f8f9fa; box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-admin-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 24px;
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
}
.btn-admin-link:hover { background: rgba(255,255,255,0.05); color: white; border-color: rgba(255,255,255,0.3); }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 0.85rem; margin-bottom: 24px; transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* ── FORM FIELDS ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select {
  padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--gray-800);
  background: white; transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,22,40,0.08); }

.radio-group { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; color: var(--gray-800); }
.radio-label input[type="radio"] { display: none; }
.radio-custom { width: 18px; height: 18px; border: 2px solid var(--gray-200); border-radius: 50%; transition: all 0.2s; }
.radio-label input[type="radio"]:checked + .radio-custom { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px white; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.field-full { grid-column: 1 / -1; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: rgba(255,255,255,0.3); font-size: 0.82rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

/* ── GOOGLE SIGNIN ── */
.google-signin-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px 0; }
.google-note { font-size: 0.78rem; color: rgba(255,255,255,0.35); text-align: center; }
.google-note strong { color: rgba(255,255,255,0.6); }

/* ── INTRO PAGE ── */
.intro-page { background: var(--navy); overflow-x: hidden; }
.intro-wrapper { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }

.intro-topbar { display: flex; justify-content: space-between; align-items: center; padding: 28px 48px; border-bottom: 1px solid rgba(201,168,76,0.12); animation: fadeDown 0.8s ease forwards; }
.neu-badge { display: flex; align-items: center; gap: 14px; }
.neu-seal { width: 48px; height: 48px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.neu-label span:first-child { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; }
.neu-label span:last-child { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.live-clock { text-align: right; }
#clock-time { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: white; letter-spacing: 0.05em; line-height: 1; }
#clock-date { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 4px; }

.intro-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 48px; }
.hero-eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 20px; animation: fadeUp 0.8s ease 0.5s both; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; line-height: 1.0; color: white; animation: fadeUp 0.9s ease 0.7s both; }
.gold-word { color: var(--gold); display: block; }
.hero-divider { width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 28px auto; animation: fadeUp 0.8s ease 0.9s both; }
.hero-tagline { font-size: 1rem; color: rgba(255,255,255,0.5); max-width: 400px; line-height: 1.7; animation: fadeUp 0.8s ease 1.0s both; }
.enter-btn-wrap { margin-top: 48px; animation: fadeUp 0.8s ease 1.2s both; }
.btn-enter { display: inline-flex; align-items: center; gap: 14px; background: transparent; border: 1.5px solid var(--gold); color: var(--gold); padding: 18px 48px; border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; position: relative; overflow: hidden; transition: color 0.3s; }
.btn-enter::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); transition: transform 0.35s ease; z-index: 0; }
.btn-enter:hover::before { transform: translateX(0); }
.btn-enter:hover { color: var(--navy); }
.btn-enter span, .btn-enter svg { position: relative; z-index: 1; }
.btn-enter:hover .arrow { transform: translateX(6px); }
.arrow { transition: transform 0.3s; }

.intro-bottom { border-top: 1px solid rgba(201,168,76,0.12); padding: 20px 48px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; animation: fadeUp 0.8s ease 1.4s both; }
.hours-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); font-weight: 600; margin-right: 16px; }
.hours-list { display: flex; flex-wrap: wrap; justify-content: center; }
.hours-item { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.08); }
.hours-item:last-child { border-right: none; }
.hours-day { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.hours-time { font-size: 0.78rem; color: white; font-weight: 600; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-left: 16px; }
.status-dot.open { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
.status-dot.closed { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ── LOGIN PAGE ── */
.login-page { display: flex; justify-content: center; align-items: center; background: var(--navy); }
.login-wrapper { position: relative; z-index: 1; width: 100%; max-width: 900px; padding: 24px; }
.login-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 540px; }
.login-left { background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 100%); padding: 48px 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(201,168,76,0.15); }
.brand { display: flex; align-items: center; gap: 14px; }
.neu-emblem { width: 48px; height: 48px;
      background: var(--white);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 700;
      font-size: 0.85rem;
      color: var(--navy);
      letter-spacing: 0.05em;
      box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
      flex-shrink: 0; }
.brand-title { color: white; font-weight: 600; font-size: 0.9rem; }
.brand-sub { color: rgba(255,255,255,0.45); font-size: 0.75rem; }
.login-hero { position: relative; z-index: 1; }
.login-hero h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: white; line-height: 1.15; margin-bottom: 12px; }
.login-hero p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.6; }
.login-deco { position: absolute; bottom: -20px; right: -20px; }
.deco-circle { position: absolute; border-radius: 50%; border: 2px solid rgba(201,168,76,0.15); }
.c1 { width: 160px; height: 160px; bottom: 0; right: 0; }
.c2 { width: 100px; height: 100px; bottom: 40px; right: 40px; }
.c3 { width: 50px; height: 50px; bottom: 70px; right: 70px; background: rgba(201,168,76,0.08); border: none; }

.login-right { background: var(--navy-mid); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-right h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: white; margin-bottom: 4px; }
.form-sub { color: rgba(255,255,255,0.4); font-size: 0.88rem; margin-bottom: 24px; }

/* ── TOP BAR ── */
.top-bar { background: var(--navy); border-bottom: 1px solid rgba(201,168,76,0.12); position: sticky; top: 0; z-index: 100; }
.top-bar-inner { max-width: 900px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand-small { display: flex; align-items: center; gap: 10px; font-weight: 600; color: white; }
.neu-emblem { width: 48px; height: 48px;
      background: var(--white);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 700;
      font-size: 0.85rem;
      color: var(--navy);
      letter-spacing: 0.05em;
      box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
      flex-shrink: 0; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; background: var(--gold); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.user-details { display: flex; flex-direction: column; }
.user-name { font-size: 0.85rem; font-weight: 600; color: white; }
.user-student-no { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.05em; }

/* ── VISITOR PAGE ── */
.visitor-page { background: #f0ede8; min-height: 100vh; }
.visitor-main { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; position: relative; z-index: 1; }

.welcome-banner { background: var(--navy); border-radius: 16px; padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; overflow: hidden; position: relative; }
.welcome-banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(201,168,76,0.12) 0%, transparent 60%); pointer-events: none; }
.welcome-label { color: var(--gold); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.welcome-banner h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: white; margin-bottom: 8px; }
.welcome-sub { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.welcome-deco { font-size: 3.5rem; position: relative; z-index: 1; }

.visitor-form-card { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); margin-bottom: 24px; }
.card-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.visitor-form-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--navy); margin-bottom: 4px; }

.student-number-preview { background: var(--navy); border-radius: var(--radius-sm); padding: 16px 20px; margin: 16px 0; display: flex; flex-direction: column; gap: 4px; }
.sn-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.sn-value { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: white; letter-spacing: 0.1em; }
.sn-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ── PURPOSE CARDS ── */
.purpose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.purpose-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border: 1.5px solid var(--gray-200); border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: center; font-size: 0.82rem; color: var(--gray-600); font-weight: 500; }
.purpose-card input { display: none; }
.purpose-icon { font-size: 1.6rem; }
.purpose-card:hover { border-color: var(--navy); background: var(--gray-100); }
.purpose-card.selected { border-color: var(--navy); background: var(--navy); color: white; }
.purpose-card.selected .purpose-icon { filter: none; }

/* ── ADMIN LAYOUT ── */
.admin-page { display: flex; min-height: 100vh; background: #f0ede8; }
.sidebar { width: 240px; background: var(--navy); display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; padding: 28px 0; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px; }
.sidebar-title { display: block; color: white; font-weight: 600; font-size: 0.95rem; }
.sidebar-role { display: block; color: var(--gold); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-nav { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.nav-item:hover { background: rgba(255,255,255,0.07); color: white; }
.nav-item.active { background: rgba(201,168,76,0.15); color: var(--gold); }
.sidebar-footer { padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 10px; }
#admin-email { font-size: 0.78rem; color: rgba(255,255,255,0.35); word-break: break-all; }
.admin-main { margin-left: 240px; padding: 40px; flex: 1; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.section-header h1 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--navy); }
.section-sub { color: var(--gray-400); font-size: 0.9rem; margin-top: 4px; }
.date-display { background: white; border: 1px solid var(--gray-200); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; color: var(--gray-600); }

/* ── TIME FILTER ── */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 28px; }
.time-tabs { display: flex; gap: 4px; background: white; padding: 4px; border-radius: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.time-tab { padding: 8px 18px; border: none; background: transparent; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all 0.2s; }
.time-tab.active { background: var(--navy); color: white; }
.time-tab:hover:not(.active) { background: var(--gray-100); }
.custom-range { display: flex; align-items: center; gap: 10px; background: white; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gray-200); font-size: 0.88rem; color: var(--gray-600); }
.custom-range input[type="date"] { border: 1px solid var(--gray-200); border-radius: 6px; padding: 6px 10px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; }
.btn-apply { background: var(--navy); color: white; border: none; padding: 8px 18px; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-apply:hover { background: var(--navy-light); }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 2rem; }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); font-weight: 600; margin-bottom: 4px; }
.stat-value { font-size: 1.8rem; font-weight: 700; font-family: 'Cormorant Garamond', serif; }
.accent-blue .stat-value { color: var(--blue); } .accent-blue { border-top: 3px solid var(--blue); }
.accent-green .stat-value { color: var(--green); } .accent-green { border-top: 3px solid var(--green); }
.accent-amber .stat-value { color: var(--amber); } .accent-amber { border-top: 3px solid var(--amber); }
.accent-rose .stat-value { color: var(--rose); } .accent-rose { border-top: 3px solid var(--rose); }

/* ── FILTERS ── */
.filters-row { background: white; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-bottom: 24px; }
.filters-row h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.filters-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-select { padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--gray-800); background: white; cursor: pointer;}
.filter-select:focus { outline: none; border-color: var(--navy); } 

/* ── COLLEGE GRID ── */
.breakdown-header { margin-bottom: 14px; }
.breakdown-header h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.college-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.college-card { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); text-align: center; transition: transform 0.2s; }
.college-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.college-name { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.college-count { font-size: 1.6rem; font-weight: 700; font-family: 'Cormorant Garamond', serif; color: var(--gold); }
.college-label { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── TABLE ── */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border 0.2s, box-shadow 0.2s;
}
.search-bar-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10,22,40,0.08);
}
.search-bar-wrap svg {
  color: var(--navy);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.search-bar-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  background: transparent;
  min-width: 0;
}
.search-bar-wrap input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

#search-input { flex: 1; border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--gray-800); background: transparent; }
.table-wrap { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; box-shadow: var(--shadow-sm); }
.visitors-table { width: 100%; border-collapse: collapse; }
.visitors-table thead tr { background: var(--navy); }
.visitors-table th { padding: 14px 18px; text-align: left; color: rgba(255,255,255,0.65); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.visitors-table td { padding: 14px 18px; font-size: 0.9rem; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); }
.visitors-table tbody tr:last-child td { border-bottom: none; }
.visitors-table tbody tr:hover td { background: #f9f8f6; }
.table-empty { text-align: center; color: var(--gray-400); padding: 40px !important; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-student { background: var(--blue-light); color: var(--blue); }
.badge-employee { background: var(--amber-light); color: var(--amber); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .login-card { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .college-grid { grid-template-columns: 1fr 1fr; }
  .purpose-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; gap: 16px; text-align: center; }
  .admin-page { flex-direction: column; }
  .sidebar { position: relative; width: 100%; height: auto; }
  .admin-main { margin-left: 0; padding: 20px; }
  .intro-topbar, .intro-bottom { padding: 20px 24px; }
  .intro-hero { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .stats-grid, .college-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ADD BUTTON ── */
.btn-add {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.btn-add:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── ACTION ICON BUTTONS ── */
.action-cell { display: flex; gap: 8px; align-items: center; }
.btn-icon {
  width: 32px; height: 32px; border: none; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.btn-icon-edit { background: var(--blue-light); color: var(--blue); }
.btn-icon-edit:hover { background: var(--blue); color: white; }
.btn-icon-danger { background: var(--rose-light); color: var(--rose); }
.btn-icon-danger:hover { background: var(--rose); color: white; }

/* ── STUDENT NUMBER CELL ── */
.student-no-cell {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 600; color: var(--navy);
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,22,40,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal {
  background: white; border-radius: var(--radius);
  padding: 32px; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s ease;
}
.modal-sm { max-width: 400px; }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--navy);
}
.modal-close {
  background: none; border: none; font-size: 1.1rem;
  color: var(--gray-400); cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-800); }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px;
}
.btn-cancel {
  background: var(--gray-100); border: none; color: var(--gray-600);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  font-weight: 500; cursor: pointer; transition: background 0.2s;
}
.btn-cancel:hover { background: var(--gray-200); }
.btn-danger {
  background: var(--rose); border: none; color: white;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-danger:hover { background: #be123c; }

/* ── BLOCK/WARN BUTTON ── */
.btn-icon-warn { background: #fff7ed; color: #ea580c; }
.btn-icon-warn:hover { background: #ea580c; color: white; }
.btn-icon-success { background: var(--green-light); color: var(--green); }
.btn-icon-success:hover { background: var(--green); color: white; }

/* ── BLOCKED ROW ── */
.row-blocked td { opacity: 0.5; }
.badge-blocked { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }