:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card2: #21263a;
  --border: #2a2f45;
  --text: #e8eaf0;
  --text-muted: #8b90a0;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --radius: 10px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* NAVBAR */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-brand i { color: var(--accent); font-size: 1.3rem; }
.nav-logo { height: 32px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.admin-link { color: var(--warning) !important; }
.nav-user {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.nav-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}
.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  padding: .2rem .7rem;
  border-radius: 6px;
  font-size: .8rem;
}
.btn-discord {
  background: #5865f2;
  color: white !important;
  padding: .4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* MAIN */
.main-content { flex: 1; }

/* CONTAINER */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0f1117 0%, #1a1d27 50%, #0f1117 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #a0a8d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.btn-discord-large, .btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: opacity .2s, transform .1s;
  cursor: pointer;
  text-decoration: none;
  color: white;
}
.btn-discord-large { background: #5865f2; }
.btn-primary-large { background: var(--accent); }
.btn-discord-large:hover, .btn-primary-large:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

/* SECTION TITLES */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* DEPARTMENTS GRID */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--dept-color, var(--accent));
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: transform .2s, box-shadow .2s;
  color: var(--text);
  text-decoration: none;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.35); text-decoration: none; }
.dept-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dept-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--dept-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}
.dept-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  padding: .25rem .7rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .03em;
}
.dept-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.dept-card-body p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.dept-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.3);
  color: #e74c3c;
  border-radius: 5px;
  padding: .2rem .55rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.ia-badge:hover { background: rgba(231,76,60,.22); text-decoration: none; }
.badge {
  padding: .25rem .65rem;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-recruiting { background: rgba(39,174,96,.15); color: #4ade80; border: 1px solid rgba(39,174,96,.3); }
.badge-closed { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border); }
.view-link { color: var(--text-muted); font-size: .85rem; }

/* INFO CARDS */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.info-card i { font-size: 2rem; color: var(--accent); margin-bottom: .8rem; }
.info-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.info-card p { color: var(--text-muted); font-size: .88rem; }
.info-card code { background: rgba(255,255,255,.1); padding: .1rem .4rem; border-radius: 4px; }

/* DEPARTMENT PAGE */
.dept-hero {
  background: var(--bg-card);
  padding: 2.5rem 0;
}
.dept-hero-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.dept-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}
.dept-short-badge {
  background: rgba(255,255,255,.1);
  padding: .2rem .6rem;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .5rem;
  display: inline-block;
}
.dept-hero-info h1 { font-size: 1.8rem; margin-bottom: .4rem; }
.dept-hero-info p { color: var(--text-muted); margin-bottom: .8rem; }
.dept-hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hint-text { color: var(--text-muted); font-size: .88rem; }
.hint-text code { background: rgba(255,255,255,.1); padding: .1rem .4rem; border-radius: 4px; }

.dept-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; margin-top: 2rem; }
@media (max-width: 768px) { .dept-layout { grid-template-columns: 1fr; } }

/* TABS */
.tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: .7rem 1.2rem;
  cursor: pointer;
  font-size: .9rem;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* SOPs */
.sop-category { margin-bottom: 1.5rem; }
.sop-cat-title { font-size: 1rem; color: var(--text-muted); margin-bottom: .75rem; }
.sop-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  overflow: hidden;
}
.sop-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.2rem;
  cursor: pointer;
  transition: background .15s;
}
.sop-item-header:hover { background: rgba(255,255,255,.04); }
.sop-meta { display: flex; align-items: center; gap: .8rem; }
.sop-version { background: rgba(255,255,255,.08); padding: .1rem .5rem; border-radius: 4px; font-size: .78rem; color: var(--text-muted); }
.sop-chevron { color: var(--text-muted); transition: transform .2s; }
.sop-chevron.rotated { transform: rotate(180deg); }
.sop-item-body { display: none; padding: 1.2rem; border-top: 1px solid var(--border); background: var(--bg-card2); }
.sop-item-body.open { display: block; }
.sop-content { color: var(--text); line-height: 1.75; contain: layout; overflow: hidden; }
.sop-content table { border-collapse: collapse; width: 100%; }
.sop-content td, .sop-content th { border: 1px solid var(--border); padding: .4rem .6rem; }
.sop-content ul, .sop-content ol { padding-left: 1.5rem; }
.sop-content h1, .sop-content h2, .sop-content h3 { margin: .75rem 0 .4rem; }
.sop-content p { margin: .4rem 0; }
.sop-footer { margin-top: .8rem; color: var(--text-muted); font-size: .82rem; }

/* MEMBERS */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.member-avatar { width: 36px; height: 36px; border-radius: 50%; }
.member-avatar-fallback {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.member-info { display: flex; flex-direction: column; gap: .1rem; }
.member-info strong { font-size: .9rem; }
.member-rank { font-size: .78rem; color: var(--text-muted); }
.member-badge-num { font-size: .75rem; color: var(--text-muted); }

/* SIDEBAR */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.sidebar-card h4 { margin-bottom: .8rem; font-size: .95rem; }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.sidebar-list li strong { color: var(--text); }
.apply-info { text-align: center; color: var(--text-muted); font-size: .88rem; }
.apply-info i { font-size: 1.5rem; color: #5865f2; margin-bottom: .5rem; display: block; }
.apply-info code { background: rgba(255,255,255,.1); padding: .1rem .4rem; border-radius: 4px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text);
  transition: background .15s, opacity .15s;
  text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success { background: var(--success); border-color: var(--success); color: white; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-discord { background: #5865f2; border-color: #5865f2; color: white; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }

/* DASHBOARD */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.user-welcome { display: flex; align-items: center; gap: 1rem; }
.welcome-avatar { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--accent); }
.welcome-avatar-fallback {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
}
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-section h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-muted); }

.my-depts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem; }
.my-dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.my-dept-card:hover { background: var(--bg-card2); text-decoration: none; transform: translateX(3px); }
.my-dept-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: white; flex-shrink: 0;
}
.my-dept-info { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.my-dept-info strong { font-size: 1rem; }
.my-dept-info span { font-size: .84rem; color: var(--text-muted); }
.my-dept-arrow { color: var(--text-muted); }
.manager-badge { background: rgba(243,156,18,.15); color: #f39c12; border: 1px solid rgba(243,156,18,.3); padding: .15rem .55rem; border-radius: 5px; font-size: .78rem; font-weight: 600; }
.dept-dash-logo { height: 48px; width: auto; object-fit: contain; border-radius: 8px; }
.manager-toolbar { margin-bottom: 1rem; }
.badge-pill { background: rgba(255,255,255,.08); border: 1px solid var(--border); padding: .2rem .65rem; border-radius: 6px; font-size: .88rem; font-family: monospace; font-weight: 600; letter-spacing: .02em; }
.badge-readonly { display: flex; align-items: center; gap: .6rem; }
.badge-readonly small { color: var(--text-muted); font-size: .78rem; }
.btn-promote { background: rgba(39,174,96,.12); border-color: rgba(39,174,96,.3); color: #4ade80; font-size: .78rem; }
.btn-promote:hover { background: rgba(39,174,96,.25); }
.empty-hint { color: var(--text-muted); font-size: .88rem; padding: .5rem 0; display: flex; align-items: center; gap: .5rem; }
.inline-edit-form { padding: .8rem; background: var(--bg-card2); border-radius: 8px; }

.applications-list { display: flex; flex-direction: column; gap: .5rem; }
.app-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-dept {
  padding: .2rem .7rem;
  border-radius: 5px;
  color: white;
  font-size: .82rem;
  font-weight: 600;
}
.app-status { font-size: .88rem; }
.app-status-pending { color: var(--warning); }
.app-status-reviewing { color: #3498db; }
.app-status-accepted { color: var(--success); }
.app-status-rejected { color: var(--danger); }

/* DATA TABLE */
.data-table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.sort-th-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
  user-select: none;
}
.sort-th-btn:hover { color: var(--text); }
.data-table th {
  text-align: left;
  padding: .8rem 1.1rem;
  background: var(--bg-card2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,.025); }
.table-user { display: flex; align-items: center; gap: .7rem; }
.table-avatar { width: 30px; height: 30px; border-radius: 50%; }
.table-avatar-fallback {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.hidden { display: none !important; }
.edit-row.hidden { display: none; }
.edit-form { padding: 1rem; background: var(--bg-card2); border-radius: 8px; }

/* FORMS */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-card.hidden { display: none; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .85rem; color: var(--text-muted); }
.form-input {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: .55rem .8rem;
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--accent); }
select.form-input option { background: var(--bg-card2); }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; color: var(--text); font-size: .9rem; }
.sop-editor { font-family: 'Courier New', monospace; resize: vertical; }

/* ADMIN */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card i { font-size: 2rem; color: var(--accent); }
.stat-number { display: block; font-size: 2rem; font-weight: 800; }
.stat-label { color: var(--text-muted); font-size: .85rem; }
.admin-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.admin-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.admin-nav-card:hover { background: var(--bg-card2); transform: translateY(-2px); text-decoration: none; }
.admin-nav-card i { display: block; font-size: 1.8rem; color: var(--accent); margin-bottom: .6rem; }

/* FILTER BAR */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-btn {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .4rem .9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .85rem;
  transition: all .15s;
}
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* STATUS BADGES */
.status-badge { padding: .25rem .65rem; border-radius: 5px; font-size: .82rem; font-weight: 600; }
.status-pending { background: rgba(243,156,18,.15); color: #f39c12; }
.status-reviewing { background: rgba(52,152,219,.15); color: #3498db; }
.status-accepted { background: rgba(39,174,96,.15); color: #4ade80; }
.status-rejected { background: rgba(231,76,60,.15); color: #e74c3c; }

/* ALERT */
.alert {
  background: rgba(52,152,219,.1);
  border: 1px solid rgba(52,152,219,.3);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.alert a { color: #3498db; }

/* STATUS PILLS */
.status-pill { display:inline-flex; align-items:center; gap:.35rem; padding:.25rem .7rem; border-radius:20px; font-size:.8rem; font-weight:600; }
.status-loa       { background:rgba(243,156,18,.15); color:#f5c842;  border:1px solid var(--warning); }
.status-fto       { background:rgba(52,152,219,.15); color:#5dade2;  border:1px solid #2e86c1; }
.status-ridealong { background:rgba(39,174,96,.15);  color:#58d68d;  border:1px solid var(--success); }
.subdiv-pill { display:inline-block; background:rgba(88,101,242,.18); color:#8b9cf8; border:1px solid rgba(88,101,242,.4); border-radius:20px; font-size:.82rem; font-weight:600; padding:.2rem .65rem; }
.row-loa td { opacity: .8; }

/* LIVE BADGE */
.live-badge {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.live-badge i { color: var(--success); font-size: .55rem; animation: live-pulse 1.5s infinite; }
@keyframes live-pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* CONFIRM MODAL */
.confirm-modal-box {
  background: linear-gradient(160deg, #1e2235 0%, #171a2a 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 2.25rem 2rem 1.75rem;
  max-width: 420px;
  width: 92%;
  box-shadow: 0 32px 100px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04);
  text-align: center;
  animation: modalIn .18s cubic-bezier(.22,.68,0,1.2);
}
@keyframes modalIn {
  from { transform: scale(.9) translateY(12px); opacity: 0; }
  to   { transform: scale(1)  translateY(0);    opacity: 1; }
}
.confirm-modal-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(243,156,18,.12);
  border: 1px solid rgba(243,156,18,.3);
  margin-bottom: 1.1rem;
}
.confirm-modal-icon {
  font-size: 1.4rem;
  color: #f39c12;
  margin: 0;
}
.confirm-modal-title {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.confirm-modal-msg {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}
.confirm-modal-actions {
  display: flex;
  gap: .6rem;
  justify-content: center;
}
.confirm-modal-actions .btn {
  min-width: 110px;
  padding: .55rem 1.25rem;
  font-size: .9rem;
  border-radius: 8px;
}

/* FLASH MESSAGES */
.flash-message {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  font-size: .95rem;
}
.flash-warning { background: rgba(243,156,18,.15); border: 1px solid var(--warning); color: #f5c842; }
.flash-error   { background: rgba(231,76,60,.15);  border: 1px solid var(--danger);  color: #f1948a; }
.flash-success { background: rgba(39,174,96,.15);  border: 1px solid var(--success); color: #58d68d; }

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

/* ERROR PAGE */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
}
.error-page i { font-size: 4rem; color: var(--warning); margin-bottom: 1rem; }
.error-page h1 { font-size: 2rem; margin-bottom: .5rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* APPLICATIONS ADMIN */
.applications-admin { gap: .75rem; }
.app-admin-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-admin-user { flex: 1; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.app-admin-date { color: var(--text-muted); font-size: .83rem; }
.app-admin-actions { display: flex; gap: .4rem; }

/* FOOTER */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* DEPT DASHBOARD PAGE */
.dept-dashboard-page .page-header { padding-bottom: 1.5rem; margin-bottom: 1.5rem; }

/* STATUS PILLS — discipline */
.status-strike { background: rgba(231,76,60,.15);  color: #e74c3c; border: 1px solid rgba(231,76,60,.4); }
.status-warn   { background: rgba(243,156,18,.15); color: #f39c12; border: 1px solid rgba(243,156,18,.4); }

/* BADGE COUNT (tab notification dot) */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: .3rem;
}

/* BTN INFO */
.btn-info { background: rgba(52,152,219,.18); color: #5dade2; border: 1px solid rgba(52,152,219,.35); }
.btn-info:hover { background: rgba(52,152,219,.3); }

/* PROFILE PANEL */
.profile-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card2);
  border-radius: var(--radius);
}
.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}
.profile-section h4 {
  margin: 0 0 .75rem;
  font-size: .9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* RANK TIMELINE */
.rank-timeline { display: flex; flex-direction: column; gap: .45rem; }
.timeline-item { display: flex; align-items: flex-start; gap: .6rem; }
.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: .35rem;
}
.timeline-body { display: flex; flex-direction: column; gap: .1rem; }
.timeline-rank { font-size: .88rem; }
.timeline-meta { font-size: .78rem; color: var(--text-muted); }

/* DISCIPLINE ITEMS */
.discipline-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .35rem .5rem;
  background: var(--bg-card2);
  border-radius: 6px;
  font-size: .85rem;
}
.discipline-reason { flex: 1; min-width: 120px; }
.discipline-meta   { color: var(--text-muted); font-size: .78rem; }

/* NOTE ITEMS */
.note-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .35rem .5rem;
  background: var(--bg-card2);
  border-radius: 6px;
  font-size: .85rem;
}
.note-text { flex: 1; min-width: 120px; }
.note-meta { color: var(--text-muted); font-size: .78rem; }

/* TRANSFER CARDS */
.transfer-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.transfer-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}
.transfer-role-warning {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: rgba(243,156,18,.12);
  border: 1px solid rgba(243,156,18,.4);
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .85rem;
  color: #f5c842;
  margin-top: .5rem;
}
.transfer-role-warning i { margin-top: .15rem; flex-shrink: 0; }

/* AUDIT LOG */
.audit-action-pill {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

code { background: rgba(255,255,255,.1); padding: .1rem .4rem; border-radius: 4px; font-size: .88em; }

@media (max-width: 600px) {
  .hero-content h1 { font-size: 1.8rem; }
  .nav-links { gap: .8rem; }
  .dept-hero-content { flex-direction: column; }
}
