/* ═══════════════════════════════════════════════════════════
   EZ Rankings Dashboard  —  Modern UI 2.0
   Colors: #11559b (blue) · #f5c400 (gold) · #0d1b2e (dark)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --sidebar-w:   245px;
  --sidebar-bg:  #0d1b2e;
  --sidebar-hover: rgba(255,255,255,.06);
  --sidebar-active-bg: rgba(245,196,0,.12);
  --sidebar-active-color: #f5c400;
  --brand:       #11559b;
  --brand-light: rgba(17,85,155,.08);
  --gold:        #f5c400;
  --gold-dark:   #d4a800;
  --gold-glow:   rgba(245,196,0,.3);
  --surface:     #f0f4f8;
  --card:        #ffffff;
  --border:      #e8ecf2;
  --text:        #0d1b2e;
  --text-2:      #4a5568;
  --muted:       #8896a4;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(13,27,46,.06);
  --shadow-md:   0 6px 24px rgba(13,27,46,.10);
  --shadow-lg:   0 16px 48px rgba(13,27,46,.15);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
   SIDEBAR  —  Dark Navy
   ═══════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

/* subtle gradient shine on sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, rgba(245,196,0,.25), transparent 40%, transparent 60%, rgba(17,85,155,.3));
}

/* Logo area */
.sidebar-logo-area {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.sidebar-logo { max-height: 34px; filter: brightness(0) invert(1); opacity: .9; }
.logo-fallback {
  font-size: 20px; font-weight: 800; color: var(--gold);
  letter-spacing: -.5px;
}
.sidebar-tagline {
  display: block; margin-top: 4px;
  font-size: 9.5px; color: rgba(255,255,255,.3);
  letter-spacing: 1.2px; text-transform: uppercase;
}

/* Nav */
.sidebar-nav-wrap { flex: 1; overflow-y: auto; padding: 10px 12px; scrollbar-width: none; }
.sidebar-nav-wrap::-webkit-scrollbar { display: none; }

.nav-section {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  padding: 16px 8px 6px;
}

nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.55); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: all .18s ease;
  margin-bottom: 2px; position: relative;
}
nav a:hover  { background: var(--sidebar-hover); color: rgba(255,255,255,.9); }
nav a.active {
  background: var(--sidebar-active-bg);
  color: var(--gold);
  font-weight: 600;
}
nav a.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 2px;
  background: var(--gold);
}
nav a i { width: 16px; text-align: center; font-size: 14px; flex-shrink: 0; }

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar-sm {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #1a6bbf);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.15);
}
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-info span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info small { font-size: 11px; color: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════ */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1; min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Top gradient banner for pages */
.page-banner {
  background: linear-gradient(135deg, var(--brand) 0%, #1a6bbf 60%, #1e78d0 100%);
  padding: 28px 28px 70px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 40px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
}
.page-banner-pattern {
  position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px),
                    radial-gradient(circle at 80% 20%, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-banner-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.page-banner h4 { color: #fff; font-size: 20px; font-weight: 700; margin: 0; }
.page-banner small { color: rgba(255,255,255,.65); font-size: 13px; }

.banner-btn {
  background: var(--gold);
  color: #000; font-weight: 700; font-size: 13.5px;
  border: none; border-radius: 10px;
  padding: 10px 20px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px var(--gold-glow);
  transition: all .18s;
  text-decoration: none;
}
.banner-btn:hover {
  background: var(--gold-dark); color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--gold-glow);
}

.page-content {
  padding: 0 24px 32px;
  margin-top: -46px;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════ */
.flash-bar { padding: 12px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 16px; border-radius: 12px; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}
.flash-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.flash-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.flash button  { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 14px; opacity: .5; }

/* ═══════════════════════════════════════════════
   KPI CARDS
   ═══════════════════════════════════════════════ */
.kpi-card {
  background: var(--card) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--border) !important;
  position: relative;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}
.kpi-card.kpi-active {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-light), var(--shadow-sm) !important;
}
.kpi-card .card-body { padding: 18px !important; }
.kpi-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.kpi-value { font-size: 26px !important; font-weight: 800 !important; line-height: 1 !important; color: var(--text); }
.kpi-label { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.kpi-bar-wrap { height: 3px; background: #f1f5f9; }
.kpi-bar { height: 100%; transition: width .6s cubic-bezier(.4,0,.2,1); max-width: 100%; border-radius: 2px; }

/* ═══════════════════════════════════════════════
   TOOLBAR CARD
   ═══════════════════════════════════════════════ */
.toolbar-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.toolbar-card .form-control,
.toolbar-card .form-select {
  border-color: var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  background: #fafbfd;
}
.toolbar-card .form-control:focus,
.toolbar-card .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.toolbar-card .input-group-text {
  background: #fafbfd;
  border-color: var(--border);
  border-radius: 10px 0 0 10px;
}

/* Filter Pills */
.filter-pill {
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all .15s;
  border: 1.5px solid transparent;
  display: inline-flex; align-items: center; gap: 4px;
}
.filter-pill-all { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-pill-inactive { background: #f1f5f9; color: var(--text-2); border-color: #e2e8f0; }
.filter-pill-inactive:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
.filter-pill-clear { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* ═══════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════ */
.table-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table {
  font-size: 13.5px;
  margin: 0 !important;
}
.table thead th {
  font-size: 11px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  background: #f8fafc;
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 14px !important;
}
.table tbody tr {
  border-bottom: 1px solid #f4f6f9;
  transition: background .12s;
}
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: #f5f8ff; }
.table td { padding: 13px 14px !important; vertical-align: middle; }

/* Website name with link icon */
.proj-name {
  font-weight: 600; color: var(--text); font-size: 13.5px;
  display: flex; align-items: center; gap: 6px;
}
.proj-name-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}

/* Avatars */
.av {
  width: 30px; height: 30px; border-radius: 8px;
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.av-sm { width: 26px; height: 26px; font-size: 9px; border-radius: 6px; }

.comment-cell {
  max-width: 160px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  color: var(--muted);
}

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.sb-designing      { background: #eff6ff; color: #1d4ed8; }
.sb-developed      { background: #f0fdf4; color: #15803d; }
.sb-maintenance    { background: #fffbeb; color: #b45309; }
.sb-nonresponsive  { background: #fef2f2; color: #b91c1c; }

/* Payment badges */
.pay { padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pay-full    { background: #f0fdf4; color: #15803d; }
.pay-half    { background: #fffbeb; color: #b45309; }
.pay-pending { background: #fef2f2; color: #b91c1c; }
.muted-dash  { color: var(--muted); font-size: 16px; }

/* Date badge */
.date-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f8fafc; border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}

/* Action buttons */
.action-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all .15s; text-decoration: none;
}
.action-btn-edit       { color: var(--brand); }
.action-btn-edit:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.action-btn-del        { color: #dc2626; }
.action-btn-del:hover  { background: #dc2626; border-color: #dc2626; color: #fff; }

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: #f1f5f9; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}

/* ═══════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════ */
.login-page {
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #162540 50%, #11559b 100%);
  position: relative; overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(245,196,0,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(17,85,155,.2) 0%, transparent 60%);
}
.login-card {
  border-radius: 20px !important;
  position: relative; z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.97) !important;
}
.login-card .card-body { padding: 36px !important; }
.login-brand { font-size: 24px; font-weight: 800; color: var(--brand); }
.login-page .form-control {
  border-radius: 10px; font-size: 14px;
  border-color: var(--border); padding: 11px 14px;
}
.login-page .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.login-page .input-group-text {
  border-radius: 10px 0 0 10px;
  background: #f8fafc; border-color: var(--border);
}
.btn-signin {
  background: linear-gradient(135deg, var(--brand), #1a6bbf);
  color: #fff; border: none; border-radius: 10px;
  padding: 12px; font-size: 14.5px; font-weight: 600;
  width: 100%; cursor: pointer;
  transition: all .18s;
  box-shadow: 0 4px 14px rgba(17,85,155,.35);
}
.btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17,85,155,.45);
}

/* ═══════════════════════════════════════════════
   MOBILE TOPBAR
   ═══════════════════════════════════════════════ */
.mobile-topbar {
  background: var(--sidebar-bg);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-topbar .fw-bold { color: #fff; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 999;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */
.pmodal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(10,20,40,.6);
  backdrop-filter: blur(5px);
  z-index: 1040;
}
.pmodal-backdrop.active { display: block; }

.pmodal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(.95);
  width: min(740px, 96vw); max-height: 92vh;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.34,1.2,.64,1), opacity .2s ease;
}
.pmodal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1; pointer-events: all;
}
.pmodal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px 20px;
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #162d4e 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pmodal-header-icon {
  width: 44px; height: 44px;
  background: rgba(245,196,0,.15);
  border: 1.5px solid rgba(245,196,0,.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; color: var(--gold);
}
.pmodal-title   { font-size: 17px; font-weight: 700; margin: 0; color: #fff; }
.pmodal-subtitle{ font-size: 12px; color: rgba(255,255,255,.5); margin: 3px 0 0; }
.pmodal-close {
  margin-left: auto; width: 34px; height: 34px;
  border: none; background: rgba(255,255,255,.1);
  border-radius: 8px; color: rgba(255,255,255,.7);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.pmodal-close:hover { background: rgba(255,255,255,.2); color: #fff; }

.pmodal-body { padding: 22px 24px; overflow-y: auto; flex: 1; }

.pform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.pform-span2 { grid-column: span 2; }
.pform-group { display: flex; flex-direction: column; gap: 6px; }
.pform-label {
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  letter-spacing: .5px; text-transform: uppercase;
}
.req { color: #ef4444; }
.pform-input-wrap { position: relative; }
.pform-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 13px; pointer-events: none;
}
.pform-input-wrap:has(textarea) .pform-icon { top: 13px; transform: none; }
.pform-input {
  width: 100%; padding: 10px 12px 10px 36px;
  border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 13.5px;
  color: var(--text); background: #fafbfd;
  transition: all .15s; outline: none; appearance: none;
}
.pform-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
  background: #fff;
}
.pform-select { cursor: pointer; }
.pform-textarea { padding-top: 10px; resize: vertical; min-height: 80px; }

.pmodal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  background: #fafbfc;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.pbtn {
  padding: 10px 24px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: all .15s;
}
.pbtn-cancel { background: #f1f5f9; color: var(--text-2); }
.pbtn-cancel:hover { background: #e2e8f0; }
.pbtn-save {
  background: var(--gold); color: #000;
  box-shadow: 0 3px 12px var(--gold-glow);
}
.pbtn-save:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px var(--gold-glow);
}

/* ═══════════════════════════════════════════════
   USER CARDS
   ═══════════════════════════════════════════════ */
.ucard {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-sm);
}
.ucard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ucard-left { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
.ucard-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ucard-info { min-width: 0; }
.ucard-name     { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucard-username { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.ucard-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.ucard-badge-mgmt   { background: rgba(17,85,155,.1); color: var(--brand); }
.ucard-badge-member { background: rgba(245,196,0,.15); color: #92700a; }
.ucard-actions { display: flex; gap: 7px; flex-shrink: 0; }
.ucard-btn {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all .15s;
}
.ucard-btn-edit:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.ucard-btn-del:hover  { background: #dc2626; border-color: #dc2626; color: #fff; }
.ucard-btn-edit { color: var(--brand); }
.ucard-btn-del  { color: #dc2626; }

/* ═══════════════════════════════════════════════
   MEMBER STATS CARD
   ═══════════════════════════════════════════════ */
.member-stats-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.member-stats-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--sidebar-bg), #162d4e);
  color: #fff;
}
.member-stats-avatar {
  width: 46px; height: 46px; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,.2);
}
.member-stats-name { font-size: 15px; font-weight: 700; color: #fff; }
.member-stats-role { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }

.member-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
}
.ms-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px; gap: 4px; text-decoration: none;
  border-right: 1px solid var(--border);
  transition: background .15s;
}
.ms-stat:last-child { border-right: none; }
.ms-stat:hover { background: var(--surface); }
.ms-stat i { font-size: 18px; margin-bottom: 2px; }
.ms-stat-val { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.ms-stat-lbl { font-size: 11px; color: var(--muted); font-weight: 500; text-align: center; }

@media (max-width: 575px) {
  .member-stats-grid { grid-template-columns: repeat(3,1fr); }
  .ms-stat:nth-child(3) { border-right: none; }
}

/* ═══════════════════════════════════════════════
   SEARCH HIGHLIGHT
   ═══════════════════════════════════════════════ */
.highlight { background: rgba(245,196,0,.35); border-radius: 3px; padding: 0 2px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .page-content { padding: 0 12px 24px; }
  .page-banner { padding: 20px 16px 65px; }
  .pform-grid { grid-template-columns: 1fr; }
  .pform-span2 { grid-column: span 1; }
}

/* ═══════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════ */
.card { border-radius: var(--radius) !important; }
.btn-primary { background: var(--brand) !important; border-color: var(--brand) !important; border-radius: 10px !important; font-weight: 600 !important; }
.btn-primary:hover { background: #0d4480 !important; border-color: #0d4480 !important; }
.badge.rounded-pill { font-size: 11.5px !important; }
