/* ─── Design tokens ───────────────────────────────────────────── */
:root {
  --violet:        #0057d8;
  --violet-dark:   #0041a8;
  --violet-deeper: #002d7a;
  --violet-light:  #4a9af5;
  --violet-bg:     #e8f2ff;
  --violet-bg2:    #d0e6ff;

  --cyan:          #00cec9;
  --cyan-dark:     #009e99;

  --success:       #00b894;
  --success-bg:    #e0faf5;
  --success-text:  #00705a;
  --danger:        #e17055;
  --danger-dark:   #c04535;
  --danger-bg:     #fdf0ed;
  --warning:       #fdcb6e;
  --warning-dark:  #c47800;
  --warning-bg:    #fef5e7;

  --bg:            #f0f6ff;
  --card:          #ffffff;
  --text:          #1a2540;
  --muted:         #6b7280;
  --border:        #d8e4f4;
  --border-light:  #eef4fc;
}

/* ─── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.85rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.025em; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
p  { margin: 0 0 12px; }

a { color: var(--violet); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--violet-dark); text-decoration: underline; }

.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }
main { padding: 44px 0 80px; min-height: 65vh; }
.subtitle { color: var(--muted); margin: 0 0 32px; font-size: 0.97rem; }

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #001f5b 0%, #0057d8 55%, #4a9af5 100%);
  box-shadow: 0 4px 24px rgba(0, 65, 168, 0.35);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
}

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-burger { display: none; }
.nav-toggle.open .icon-close { display: block; }

.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,18,40,0.5);
  z-index: 199;
}
.nav-overlay.open { display: block; }

/* Active nav link */
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

/* Sign up CTA — visually distinct from "Log in" */
.nav-links a.nav-cta {
  background: #fff;
  color: var(--violet-dark) !important;
  font-weight: 700;
  padding: 8px 16px;
  margin-left: 2px;
}
.nav-links a.nav-cta:hover {
  background: #f0f6ff;
  color: var(--violet-deeper) !important;
  text-decoration: none;
}

.brand {
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; opacity: 0.9; color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: all 0.18s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  text-decoration: none;
}
.nav-links span {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 7px 8px;
}

/* ─── Notification bell ──────────────────────────────────────── */
.notif-bell-wrap { position: relative; display: flex; align-items: center; }
.notif-bell-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer; color: inherit;
}
.notif-bell-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.notif-bell-label { display: none; }
.nav-links .notif-bell-btn { color: rgba(255,255,255,0.78); }
.nav-links .notif-bell-btn:hover { color: #fff; background: rgba(255,255,255,0.14); }
.admin-topbar .notif-bell-btn { color: var(--text); }
.admin-topbar .notif-bell-btn:hover { background: var(--violet-bg); }
.notif-bell-dot {
  position: absolute; top: 6px; right: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: #ef4444; border: 2px solid rgba(0,0,0,0.2);
}
.nav-links .notif-bell-dot { border-color: #001f5b; }
.admin-topbar .notif-bell-dot { border-color: #fff; }

.notif-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; max-width: 90vw; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); z-index: 500; overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  font-weight: 700; font-size: 0.88rem; color: var(--text);
}
/* .nav-links span sets a light color for the header nav — override it since
   the dropdown is nested inside .nav-links but must always read as a white card */
.notif-dropdown-head span { color: var(--text); padding: 0; font-size: inherit; }
.notif-markall {
  background: none; border: none; color: var(--violet); font-size: 0.76rem; font-weight: 600;
  cursor: pointer; font-family: inherit; padding: 0;
}
.notif-markall:hover { text-decoration: underline; }
.notif-dropdown-body { max-height: 360px; overflow-y: auto; }
.notif-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.notif-item {
  display: block; padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--violet-bg); text-decoration: none; }
.notif-item.unread { background: #f7faff; }
.notif-item-title { font-weight: 700; font-size: 0.85rem; color: var(--text); margin-bottom: 2px; }
.notif-item.unread .notif-item-title::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet); margin-right: 6px; vertical-align: middle;
}
.notif-item-body { font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-bottom: 4px; }
.notif-item-time { font-size: 0.72rem; color: var(--muted); opacity: 0.8; }
.nav-profile {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 4px !important;
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-decoration: none !important;
}
.nav-profile:hover {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.4);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 100%);
  border: 2px solid rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.nav-avatar img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.nav-profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,87,216,0.06), 0 4px 12px rgba(0,87,216,0.04);
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,87,216,0.12), 0 1px 3px rgba(0,87,216,0.08);
  transform: translateY(-2px);
}

.job-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.job-card .meta {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
}
.job-card .meta span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--border);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,87,216,0.32);
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover {
  background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet-deeper) 100%);
  box-shadow: 0 5px 20px rgba(0,87,216,0.42);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,87,216,0.25); }

.btn.secondary {
  background: linear-gradient(135deg, #2d3436 0%, #1a1f20 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.btn.secondary:hover {
  background: linear-gradient(135deg, #1a1f20 0%, #000 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.btn.danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
  box-shadow: 0 2px 8px rgba(225,112,85,0.32);
}
.btn.danger:hover {
  background: linear-gradient(135deg, var(--danger-dark) 0%, #9d3024 100%);
  box-shadow: 0 4px 16px rgba(225,112,85,0.4);
}

.btn.outline {
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--violet);
  box-shadow: none;
}
.btn.outline:hover {
  background: var(--violet-bg);
  box-shadow: none;
  color: var(--violet-dark);
  transform: none;
  text-decoration: none;
}

.btn.small { padding: 5px 13px; font-size: 0.81rem; border-radius: 7px; }

/* ─── Forms ───────────────────────────────────────────────────── */
form.stacked { max-width: 500px; }
.field, .form-group { margin-bottom: 18px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 0.93rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(0,87,216,0.13);
}
textarea { resize: vertical; min-height: 120px; }
.help { color: var(--muted); font-size: 0.82rem; margin-top: 5px; }

.inline-form { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ─── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.badge.approved, .badge.active, .badge.accepted {
  background: var(--success-bg); color: var(--success-text);
}
.badge.pending, .badge.applied {
  background: var(--warning-bg); color: var(--warning-dark);
}
.badge.rejected, .badge.blocked {
  background: var(--danger-bg); color: var(--danger-dark);
}
.badge.reviewed {
  background: var(--violet-bg); color: var(--violet-dark);
}

/* ─── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.91rem;
  border-left: 4px solid transparent;
  font-weight: 500;
}
.alert.error   { background: var(--danger-bg);  color: var(--danger-dark); border-left-color: var(--danger); }
.alert.success { background: var(--success-bg); color: var(--success-text); border-left-color: var(--success); }

/* ─── Tables ──────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #f5f9ff;
}

/* ─── Stats grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,87,216,0.06);
  border-top: 3px solid var(--violet-light);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover {
  box-shadow: 0 6px 20px rgba(0,87,216,0.12);
  transform: translateY(-2px);
}
.stat-card .num {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--violet);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-card .label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ─── Search bar ──────────────────────────────────────────────── */
.search-bar { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 160px; }

/* ─── Filter tabs ─────────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-tabs a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: all 0.18s;
}
.filter-tabs a:hover {
  border-color: var(--violet-light);
  color: var(--violet);
  background: var(--violet-bg);
  text-decoration: none;
}
.filter-tabs a.active {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 2px 10px rgba(0,87,216,0.32);
}

/* ─── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state p { font-size: 1.05rem; }

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 0 24px;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px; text-align: center;
}
.footer-brand { margin: 0; font-weight: 500; color: var(--text); }
.footer-links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  color: var(--violet); font-weight: 600; font-size: 0.83rem; text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--violet-dark); text-decoration: underline; }
.footer-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--border); display: inline-block;
}
.footer-copy { margin: 0; font-size: 0.78rem; color: var(--muted); }

/* ─── Blog ────────────────────────────────────────────────────── */
.blog-post h1 { margin-bottom: 0.4rem; }
.blog-post .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-body { line-height: 1.85; }

/* ─── Admin sidebar layout ───────────────────────────────────── */
body.admin-layout { background: #f1f5f9; }

.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 240px;
  background: #1a2540;
  z-index: 300; overflow-y: auto;
  display: flex; flex-direction: column;
  transition: transform 0.25s;
}

.admin-sidebar-brand {
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.admin-sidebar-brand img { height: 36px; width: auto; display: block; }
.admin-sidebar-brand-text {
  color: #fff; font-weight: 800; font-size: 1rem;
  letter-spacing: -0.02em; text-decoration: none; line-height: 1.2;
}
.admin-sidebar-brand-text span { display: block; font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; }
.admin-sidebar-brand:hover { text-decoration: none; }

.admin-nav { padding: 10px 0; flex: 1; }
.admin-nav-section {
  padding: 14px 20px 5px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.3);
}
.admin-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 14px; margin: 2px 8px;
  border-radius: 8px; color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.admin-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.admin-nav-item.active { background: #0057d8; color: #fff; font-weight: 600; }
.admin-nav-item.active svg { opacity: 1; }

.admin-nav-count {
  margin-left: auto; background: #ef4444; color: #fff;
  font-size: 0.7rem; font-weight: 700; line-height: 1;
  padding: 3px 7px; border-radius: 20px; flex-shrink: 0;
}

/* Sub-menu */
.admin-nav-sub {
  margin: 1px 8px 4px 42px;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 12px;
  display: flex; flex-direction: column; gap: 1px;
}
.admin-nav-sub-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 6px;
  color: rgba(255,255,255,0.48); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.admin-nav-sub-item::before {
  content: ''; width: 5px; height: 5px;
  background: currentColor; border-radius: 50%; flex-shrink: 0;
}
.admin-nav-sub-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.82); text-decoration: none; }
.admin-nav-sub-item.active { color: #93c5fd; background: rgba(0,87,216,0.28); }

.admin-topbar {
  position: fixed; top: 0; left: 240px; right: 0; height: 58px;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; z-index: 200; gap: 16px;
}
.admin-topbar-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px; color: var(--text);
}
.admin-topbar-hamburger svg { width: 20px; height: 20px; display: block; }
.admin-topbar-title { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }
.admin-topbar-profile {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.84rem; font-weight: 600; color: var(--text);
  border-radius: 9px; padding: 5px 10px 5px 5px;
  transition: background 0.15s;
}
.admin-topbar-profile:hover { background: var(--violet-bg); text-decoration: none; color: var(--violet-dark); }
.admin-topbar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.admin-topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-topbar-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.admin-logout-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 6px 13px; font-size: 0.8rem; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.admin-logout-btn:hover { border-color: #ef4444; color: #ef4444; background: #fff5f5; }
.admin-logout-btn svg { width: 13px; height: 13px; }

.admin-main {
  margin-left: 240px; padding-top: 58px; min-height: 100vh;
  width: calc(100vw - 240px); overflow-x: hidden;
}
.admin-main-inner { padding: 24px 28px 52px; max-width: 100%; box-sizing: border-box; }

/* Sidebar overlay (mobile) */
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 250;
}
.admin-sidebar-overlay.open { display: block; }

@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; width: 100vw; }
  .admin-topbar { left: 0; }
  .admin-topbar-hamburger { display: flex; }
  .admin-main-inner { padding: 20px 16px 48px; }
}

/* ─── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 32px 0 10px;
  flex-wrap: wrap;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.pagination-btn:hover:not(.active):not(.disabled) {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-bg);
  text-decoration: none;
}
.pagination-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.pagination-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.pagination-ellipsis {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 36px;
}
.pagination-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 4px 0 0;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .site-header .container { height: 64px; padding: 0 16px; }
  .brand-logo { height: 38px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: #0a1f4d;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 14px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 0.95rem; }
  .nav-links a.nav-cta { text-align: center; margin-left: 0; margin-top: 6px; }
  .nav-profile { width: 100%; padding: 10px 14px 10px 8px !important; }
  .nav-links .inline-form { width: 100%; margin-top: 6px; }
  .nav-links .inline-form button { width: 100%; }
  .nav-links .notif-bell-wrap { width: 100%; order: -1; }
  .nav-links .notif-bell-btn {
    width: 100%; height: auto; justify-content: flex-start; gap: 10px;
    padding: 13px 16px; font-size: 0.95rem; border-radius: 8px;
  }
  .nav-links .notif-bell-label { display: inline; }
  .nav-links .notif-bell-dot { position: static; margin-left: auto; }
  .nav-links .notif-dropdown { position: fixed; top: 74px; left: 14px; right: 14px; width: auto; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  main { padding: 28px 0 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
