@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════════════════ */
:root {
  --navy:       #0B1F3A;
  --navy-dark:  #071629;
  --teal:       #0E6B72;
  --teal-lt:    #12919B;
  --teal-xlt:   #3AB8C2;
  --gold:       #C9A84C;
  --gold-lt:    #E8C96D;
  --gold-xlt:   #F5DFA0;
  --cream:      #F5F0E8;
  --white:      #FFFFFF;
  --slate:      #4A5568;
  --mist:       #E8EDF4;
  --red:        #C0392B;
  --red-lt:     #E74C3C;
  --green:      #1A7A4A;
  --green-lt:   #27AE60;
  --amber:      #E67E22;

  --shadow-sm:  0 2px 8px  rgba(11,31,58,.12);
  --shadow-md:  0 8px 32px rgba(11,31,58,.18);
  --shadow-lg:  0 20px 60px rgba(11,31,58,.25);
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ══════════════════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════════════════ */
.hidden      { display: none !important; }
.sr-only     { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.text-center { text-align: center; }
.text-gold   { color: var(--gold-lt); }
.text-teal   { color: var(--teal-xlt); }
.text-muted  { color: rgba(255,255,255,.45); }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.w-full  { width: 100%; }

/* ══════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
══════════════════════════════════════════════════════════ */
.bg-texture {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 15% 5%,  rgba(14,107,114,.30) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 85%, rgba(201,168,76,.14) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 55% 35%, rgba(18,145,155,.09) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ══════════════════════════════════════════════════════════
   LOGO
══════════════════════════════════════════════════════════ */
.logo-mark {
  display: flex; align-items: center; gap: 14px;
}
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 1px; color: var(--white);
  box-shadow: 0 4px 20px rgba(14,107,114,.50);
  flex-shrink: 0; overflow: hidden;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .abbr {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 3px; color: var(--gold-lt); line-height: 1;
}
.logo-text .full {
  font-size: 9.5px; font-weight: 500; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: .3px; cursor: pointer; border: none;
  transition: var(--transition); text-decoration: none;
  position: relative; overflow: hidden; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition);
}
.btn:hover::before  { background: rgba(255,255,255,.08); }
.btn:active         { transform: scale(.97); }
.btn:disabled       { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-lt) 100%);
  color: var(--white); box-shadow: 0 4px 20px rgba(14,107,114,.45);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(14,107,114,.60); transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--navy); box-shadow: 0 4px 20px rgba(201,168,76,.40);
}
.btn-gold:hover { box-shadow: 0 8px 32px rgba(201,168,76,.55); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.22);
}
.btn-outline:hover { border-color: var(--gold-lt); color: var(--gold-lt); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.055); color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.10);
}
.btn-ghost:hover { background: rgba(255,255,255,.11); color: var(--white); }

.btn-danger {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-lt) 100%);
  color: var(--white); box-shadow: 0 4px 16px rgba(192,57,43,.35);
}
.btn-danger:hover { box-shadow: 0 8px 28px rgba(192,57,43,.50); transform: translateY(-2px); }

.btn-lg   { padding: 18px 44px; font-size: 17px; border-radius: 14px; }
.btn-sm   { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: rgba(255,255,255,.052);
  border: 1px solid rgba(255,255,255,.095);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card-padded { padding: 28px 32px; }
.card-sm     { padding: 20px 24px; }
.card-hover  { transition: var(--transition); cursor: pointer; }
.card-hover:hover {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════ */
.form-group   { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.1px;
  text-transform: uppercase; color: rgba(255,255,255,.50);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 15px;
  transition: var(--transition); outline: none; appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal-lt);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 3px rgba(14,107,114,.20);
}
.form-input::placeholder { color: rgba(255,255,255,.28); }
.form-select option       { background: #0d2240; color: var(--white); }
.form-textarea            { resize: vertical; min-height: 88px; line-height: 1.55; }

/* ══════════════════════════════════════════════════════════
   RANGE SLIDER
══════════════════════════════════════════════════════════ */
.range-wrap { display: flex; align-items: center; gap: 14px; }
input[type=range] {
  flex: 1; height: 6px; border-radius: 3px; outline: none;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: rgba(255,255,255,.15);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-lt), var(--gold));
  cursor: pointer; margin-top: -8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: var(--transition);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--teal-lt), var(--gold)); cursor: pointer;
}
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.range-val {
  min-width: 60px; padding: 6px 10px; text-align: center;
  background: rgba(255,255,255,.08); border-radius: 8px;
  font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500;
  color: var(--gold-lt); border: 1px solid rgba(255,255,255,.10);
}

/* ══════════════════════════════════════════════════════════
   SCORE DISPLAY
══════════════════════════════════════════════════════════ */
.score-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px; line-height: 1; color: var(--white); letter-spacing: 2px;
}
.score-number span { font-size: 24px; color: rgba(255,255,255,.45); }
.score-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 13px;
}
.score-badge.excellent       { background: rgba(26,122,74,.25);  color: #4ADE80; border: 1px solid rgba(74,222,128,.30); }
.score-badge.satisfactory    { background: rgba(230,126,34,.20); color: #FB923C; border: 1px solid rgba(251,146,60,.30); }
.score-badge.needs-improvement { background: rgba(192,57,43,.22); color: #F87171; border: 1px solid rgba(248,113,113,.25); }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(7,22,41,.88);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.40); }
.nav-breadcrumb span { color: rgba(255,255,255,.70); }
.nav-breadcrumb .sep { color: rgba(255,255,255,.20); }

/* ══════════════════════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════════════════════ */
.page-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column;
}
.page-content {
  flex: 1; padding: 40px 32px;
  max-width: 1100px; width: 100%; margin: 0 auto;
}
.page-content.narrow { max-width: 680px; }
.page-content.wide   { max-width: 1360px; }
.page-content.full   { max-width: 100%; padding: 32px 40px; }

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════ */
.section-header   { margin-bottom: 32px; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px; letter-spacing: 2px; color: var(--white); line-height: 1.05;
}
.section-subtitle { font-size: 14px; color: rgba(255,255,255,.48); letter-spacing: .3px; margin-top: 6px; }
.gold-line {
  display: block; width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 12px 0 0; border-radius: 2px;
}
.divider { height: 1px; background: rgba(255,255,255,.075); margin: 28px 0; }

/* ══════════════════════════════════════════════════════════
   PILLS
══════════════════════════════════════════════════════════ */
.pill {
  display: inline-block; padding: 4px 11px; border-radius: 50px;
  font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
}
.pill-teal  { background: rgba(14,107,114,.28);  color: var(--teal-xlt); border: 1px solid rgba(14,107,114,.40); }
.pill-gold  { background: rgba(201,168,76,.20);  color: var(--gold-lt);  border: 1px solid rgba(201,168,76,.30); }
.pill-red   { background: rgba(192,57,43,.22);   color: #F87171;         border: 1px solid rgba(248,113,113,.22); }
.pill-green { background: rgba(26,122,74,.22);   color: #4ADE80;         border: 1px solid rgba(74,222,128,.22); }
.pill-amber { background: rgba(230,126,34,.20);  color: #FB923C;         border: 1px solid rgba(251,146,60,.22); }

/* ══════════════════════════════════════════════════════════
   DATA TABLE
══════════════════════════════════════════════════════════ */
.table-wrap  { overflow-x: auto; border-radius: var(--radius-lg); }
.data-table  { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  padding: 13px 16px; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.42); background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap;
}
.data-table td {
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.05); color: rgba(255,255,255,.82);
}
.data-table tr:last-child td   { border-bottom: none; }
.data-table tbody tr:hover td  { background: rgba(255,255,255,.035); }
.data-table .rank-col  { font-family: 'DM Mono', monospace; font-weight: 600; color: rgba(255,255,255,.30); font-size: 12px; }
.data-table .dept-col  { font-weight: 500; color: var(--white); }
.data-table .score-col { font-family: 'DM Mono', monospace; font-weight: 600; font-size: 14px; }
.data-table .row-top    td            { background: rgba(26,122,74,.10) !important; }
.data-table .row-top    td.score-col  { color: #4ADE80; }
.data-table .row-bottom td            { background: rgba(192,57,43,.09) !important; }
.data-table .row-bottom td.score-col  { color: #F87171; }

/* ══════════════════════════════════════════════════════════
   STAT BOXES
══════════════════════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-box  { padding: 20px 24px; }
.stat-box .stat-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 40px;
  color: var(--white); line-height: 1; letter-spacing: 1px;
}
.stat-box .stat-lbl {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.42); margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════
   PROGRESS BARS
══════════════════════════════════════════════════════════ */
.progress-bar-wrap { background: rgba(255,255,255,.10); border-radius: 50px; overflow: hidden; height: 8px; }
.progress-bar-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--teal), var(--teal-xlt));
  transition: width .6s ease;
}
.progress-bar-fill.gold  { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }
.progress-bar-fill.green { background: linear-gradient(90deg, var(--green), var(--green-lt)); }
.progress-bar-fill.red   { background: linear-gradient(90deg, var(--red), var(--red-lt)); }

/* ══════════════════════════════════════════════════════════
   PIN OVERLAY
══════════════════════════════════════════════════════════ */
#pin-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7,22,41,.97);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(24px); animation: fadeIn .35s ease;
}
#pin-overlay.hidden { display: none !important; }
.pin-box     { text-align: center; max-width: 320px; width: 100%; padding: 0 20px; }
.pin-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px;
  letter-spacing: 2px; color: var(--white); margin-top: 20px;
}
.pin-subtitle  { font-size: 13px; color: rgba(255,255,255,.42); margin-top: 6px; }
.pin-dots      { display: flex; gap: 16px; justify-content: center; margin: 28px 0 10px; }
.pin-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(255,255,255,.13); border: 2px solid rgba(255,255,255,.22);
  transition: var(--transition);
}
.pin-dot.filled { background: var(--teal-lt); border-color: var(--teal-lt); transform: scale(1.1); }
.pin-dot.error  { background: var(--red-lt); border-color: var(--red-lt); animation: shake .35s ease; }
.pin-error-msg  { font-size: 13px; color: #F87171; min-height: 20px; margin-bottom: 8px; }
.pin-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 20px;
}
.pin-key {
  padding: 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.10);
  color: var(--white); font-size: 20px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: 'DM Mono', monospace; user-select: none;
}
.pin-key:hover  { background: rgba(14,107,114,.35); border-color: var(--teal); }
.pin-key:active { transform: scale(.93); }
.pin-key.wide   { grid-column: span 2; }
.pin-key.clear  { font-family: 'DM Sans', sans-serif; font-size: 13px; color: rgba(255,255,255,.40); }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9998; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; max-width: 360px;
  pointer-events: auto; animation: slideInRight .3s ease;
  box-shadow: var(--shadow-md);
}
.toast.success { background: rgba(26,122,74,.92);  border: 1px solid rgba(74,222,128,.30); }
.toast.error   { background: rgba(192,57,43,.92);  border: 1px solid rgba(248,113,113,.30); }
.toast.info    { background: rgba(14,107,114,.92); border: 1px solid rgba(58,184,194,.30); }
.toast.warning { background: rgba(230,126,34,.92); border: 1px solid rgba(251,146,60,.30); }
.toast-icon    { font-size: 18px; flex-shrink: 0; }
.toast.fade-out { animation: fadeOut .3s ease forwards; }

/* ══════════════════════════════════════════════════════════
   LOADING
══════════════════════════════════════════════════════════ */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12); border-top-color: var(--teal-lt);
  animation: spin .75s linear infinite; display: inline-block;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2.5px; }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px; }
.loading-state p { font-size: 14px; color: rgba(255,255,255,.45); }

/* ══════════════════════════════════════════════════════════
   OFFLINE BANNER
══════════════════════════════════════════════════════════ */
#offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9997;
  background: var(--amber); color: var(--navy);
  padding: 10px 20px; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  transform: translateY(-100%); transition: transform .3s ease;
}
#offline-banner.show { transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   DEPARTMENT TRACKER
══════════════════════════════════════════════════════════ */
.dept-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  font-size: 13px; transition: var(--transition);
}
.dept-chip.done { background: rgba(26,122,74,.18); border-color: rgba(74,222,128,.22); }
.dept-chip.done .dept-chip-name { color: #4ADE80; }
.dept-chip-status { font-size: 14px; }
.dept-chip-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

/* ══════════════════════════════════════════════════════════
   GAP ANALYSIS
══════════════════════════════════════════════════════════ */
.gap-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.gap-item:last-child { border-bottom: none; }
.gap-rank  { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 600; color: rgba(255,255,255,.20); min-width: 32px; }
.gap-info  { flex: 1; }
.gap-name  { font-size: 14px; font-weight: 500; color: var(--white); }
.gap-avg   { font-size: 12px; color: rgba(255,255,255,.42); margin-top: 2px; }
.gap-bar   { flex: 2; }

/* ══════════════════════════════════════════════════════════
   CHART
══════════════════════════════════════════════════════════ */
.chart-container { position: relative; width: 100%; }
.chart-container canvas { max-width: 100%; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.page-footer {
  padding: 20px 32px; text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: rgba(255,255,255,.28); letter-spacing: .6px;
}
.page-footer span { color: rgba(255,255,255,.45); }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeIn       { from { opacity: 0; }                           to { opacity: 1; } }
@keyframes fadeOut      { from { opacity: 1; }                           to { opacity: 0; } }
@keyframes slideUp      { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin         { to { transform: rotate(360deg); } }
@keyframes shake        { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pulse        { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.animate-fadeIn   { animation: fadeIn .45s ease both; }
.animate-slideUp  { animation: slideUp .45s ease both; }
.anim-delay-1     { animation-delay: .10s; }
.anim-delay-2     { animation-delay: .20s; }
.anim-delay-3     { animation-delay: .30s; }
.anim-delay-4     { animation-delay: .40s; }
.anim-delay-5     { animation-delay: .50s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar           { padding: 12px 18px; }
  .page-content     { padding: 24px 18px; }
  .page-content.full{ padding: 20px 18px; }
  .card-padded      { padding: 20px 20px; }
  .btn-lg           { padding: 16px 28px; font-size: 16px; }
  .section-title    { font-size: 30px; }
  .stat-grid        { grid-template-columns: repeat(2, 1fr); }
  .dept-chip-grid   { grid-template-columns: 1fr 1fr; }
  #toast-container  { bottom: 16px; right: 16px; left: 16px; }
  .toast            { max-width: 100%; }
  .logo-text .full  { display: none; }
}
@media (max-width: 480px) {
  .page-content   { padding: 20px 14px; }
  .dept-chip-grid { grid-template-columns: 1fr; }
  .stat-grid      { grid-template-columns: 1fr 1fr; }
  .pin-key        { padding: 16px; font-size: 18px; }
}