/* ════════════════════════════════════════════════════════════════
   ISTCKonnect — Design System  v2
   Fonts  : Syne (headings) · Plus Jakarta Sans (body)
   Palette: Navy / Green / Gold + batch color system
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ────────────────────────────────────────────────────── */
:root {
  --navy:       #0f172a;
  --navy2:      #1e2a4a;
  --navy3:      #243356;
  --green:      #2d6a4f;
  --green2:     #40916c;
  --green3:     #52b788;
  --green-glow: rgba(64,145,108,.18);
  --gold:       #a08c5b;
  --gold2:      #c9a96e;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-900:   #0f172a;

  --forest-green: #2d6a4f;
  --royal-blue:   #1d4ed8;
  --brick-brown:  #92400e;
  --slate-gray:   #475569;
  --khaki:        #a08c5b;

  --header-h:    64px;
  --nav-h:       64px;
  --content-max: 1100px;
  --radius-xs:   6px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-2xl:  32px;

  --shadow-xs:    0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:    0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 20px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:    0 24px 64px rgba(0,0,0,.16), 0 8px 20px rgba(0,0,0,.08);
  --shadow-green: 0 6px 24px rgba(45,106,79,.30);
  --shadow-card:  0 1px 3px rgba(15,23,42,.07), 0 0 0 1px rgba(15,23,42,.04);

  --ease:        cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out:    cubic-bezier(0,0,.2,1);
  --trans:       all .2s var(--ease);
  --trans-fast:  all .14s var(--ease);
  --trans-slow:  all .35s var(--ease);
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy2);
  background: var(--gray-100);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle dot grid atmosphere */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(15,23,42,.038) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy2);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(22px, 5vw, 34px); }
h2 { font-size: clamp(18px, 3.5vw, 26px); }
h3 { font-size: clamp(15px, 2.5vw, 19px); }
h4 { font-size: 15px; }
p  { color: var(--gray-500); line-height: 1.7; }
small { font-size: 12.5px; }

/* ── Layout ───────────────────────────────────────────────────────── */
.page-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 20px;
  width: 100%;
}
.page-body.wide { max-width: 100%; padding: 0; }
.page-body.full { max-width: 100%; padding: 24px; }

/* ── Header ───────────────────────────────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15,23,42,.07);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.app-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(15,23,42,.05), 0 4px 28px rgba(15,23,42,.09);
}
/* Green shimmer line slides in from left when scrolled */
.app-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green3) 55%, transparent 100%);
  opacity: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: opacity .4s, transform .55s var(--ease-out);
}
.app-header.scrolled::after { opacity: 1; transform: scaleX(1); }

/* Logo */
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy2) 0%, var(--green) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(45,106,79,.32);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.header-logo:hover .header-logo-mark {
  transform: rotate(-7deg) scale(1.07);
  box-shadow: 0 4px 16px rgba(45,106,79,.4);
}
.header-logo-mark svg { width: 18px; height: 18px; color: white; }
.header-logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--navy2); letter-spacing: -.4px;
}
.header-logo-name span { color: var(--green2); }

/* Desktop nav */
.header-nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
.header-nav a {
  position: relative;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500;
  color: var(--gray-500);
  transition: var(--trans);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.header-nav a:hover { background: var(--gray-100); color: var(--navy2); }
.header-nav a.active {
  color: var(--green2); font-weight: 600;
  background: rgba(64,145,108,.09);
}
/* Active underline tick */
.header-nav a.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 13px; right: 13px;
  height: 2px;
  background: linear-gradient(90deg, var(--green2), var(--green3));
  border-radius: 2px;
}
.header-nav a svg { width: 14px; height: 14px; opacity: .6; }
.header-nav a.active svg { opacity: 1; color: var(--green2); }
.header-spacer { flex: 1; }

/* Search */
.header-search { position: relative; flex: 1; max-width: 280px; }
.header-search input {
  width: 100%;
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 8px 14px 8px 36px;
  font-size: 13.5px; color: var(--navy2);
  outline: none; transition: var(--trans);
}
.header-search input:focus {
  border-color: var(--green2);
  background: white;
  box-shadow: 0 0 0 4px rgba(64,145,108,.1);
}
.header-search input::placeholder { color: var(--gray-400); }
.header-search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); pointer-events: none;
  width: 14px; height: 14px; transition: color .2s;
}
.header-search:focus-within .header-search-icon { color: var(--green2); }
.header-actions { display: flex; align-items: center; gap: 6px; }

/* Avatar */
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  border: 2.5px solid var(--gray-200);
  transition: var(--trans); cursor: pointer; background: none; padding: 0;
}
.avatar-btn:hover {
  border-color: var(--green2);
  box-shadow: 0 0 0 3px rgba(64,145,108,.15);
  transform: scale(1.06);
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: white;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: var(--trans);
}
.icon-btn:hover {
  background: var(--gray-50); color: var(--navy2);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm); transform: translateY(-1px);
}
.icon-btn svg { width: 16px; height: 16px; }

/* ── Mobile Bottom Nav ────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(15,23,42,.07);
  height: var(--nav-h);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 24px rgba(15,23,42,.07);
}
.mobile-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; font-weight: 600;
  color: var(--gray-400);
  transition: color .15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm);
  padding: 6px 4px; position: relative;
}
.mobile-nav a.active { color: var(--navy2); }
/* Active pill bg */
.mobile-nav a.active::before {
  content: '';
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 26px;
  background: rgba(64,145,108,.12);
  border-radius: 10px;
}
.mobile-nav a svg {
  width: 20px; height: 20px;
  transition: transform .25s var(--ease-spring); position: relative;
}
.mobile-nav a.active svg { transform: scale(1.12); color: var(--green2); }
.mobile-nav a span { position: relative; }

/* Profile avatar tab icon */
.nav-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
  transition: border-color .15s, transform .25s var(--ease-spring);
  position: relative;
}
.mobile-nav a.active .nav-avatar {
  border-color: var(--green2);
  transform: scale(1.12);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--trans);
  white-space: nowrap; text-decoration: none; letter-spacing: .01em;
  position: relative; overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97) !important; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Ripple layer */
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0); pointer-events: none;
  animation: rippleOut .55s var(--ease) forwards;
}
@keyframes rippleOut { to { transform: scale(4); opacity: 0; } }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(45,106,79,.28),
              inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #255c43 0%, #38805f 100%);
  box-shadow: var(--shadow-green); transform: translateY(-1px);
}
.btn-secondary {
  background: white; color: var(--navy2);
  border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--gray-300); background: var(--gray-50);
  box-shadow: var(--shadow-sm); transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--gray-500); padding: 7px 12px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--navy2); }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  transition: var(--trans); overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 0;
}
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--navy2); }
.card-header a  { font-size: 12px; color: var(--green2); font-weight: 600; }
.card-body   { padding: 16px 18px; }
.card-footer { padding: 12px 18px 16px; border-top: 1px solid var(--gray-100); }

/* ── Welcome Banner ───────────────────────────────────────────────── */
.welcome-banner {
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
}
.welcome-banner .wb-orb {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.28); pointer-events: none;
}
.welcome-banner .wb-orb-1 { width: 180px; height: 180px; right: -30px; top: -30px; }
.welcome-banner .wb-orb-2 { width: 120px; height: 120px; right: 90px; bottom: -50px; }
.welcome-banner .wb-orb-3 { width: 60px; height: 60px; right: 220px; top: 20px; opacity: .5; }
.wb-text { position: relative; z-index: 1; }
.wb-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  margin-bottom: 6px;
}
.wb-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 4vw, 26px); font-weight: 800;
  color: var(--navy2); margin-bottom: 6px;
  letter-spacing: -.03em;
}
.wb-sub { font-size: 13.5px; color: var(--gray-500); margin: 0; }
.wb-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Stat Grid ────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 28px;
}
.stat-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
}
/* Per-card top gradient accent */
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card:nth-child(1)::before { background: linear-gradient(90deg, var(--green), var(--green3)); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--green3), #a7f3d0); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-4deg); }

.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease-spring);
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.green { background: rgba(45,106,79,.1);  color: var(--green2); }
.stat-icon.blue  { background: rgba(29,78,216,.1);  color: #1d4ed8; }
.stat-icon.gold  { background: rgba(160,140,91,.12);color: var(--gold); }
.stat-icon.red   { background: rgba(220,38,38,.08); color: #dc2626; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1;
  color: var(--navy2); letter-spacing: -.04em;
}
.stat-label { font-size: 12px; color: var(--gray-400); font-weight: 500; margin-top: 3px; white-space: normal; line-height: 1.3; }

/* ── Quick Actions ────────────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px; margin-bottom: 32px;
}
.action-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 14px 16px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s,
              border-color .22s, color .18s;
  color: var(--navy2); cursor: pointer;
  position: relative; overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow-xs);
}
/* Fill layer on hover */
.action-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--action-color, var(--green));
  opacity: 0; transition: opacity .2s var(--ease);
  border-radius: inherit;
}
.action-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  transform: translateY(-3px);
}
.action-card:hover::before { opacity: 1; }
.action-card:hover .action-icon { background: rgba(255,255,255,.2); }
.action-card:hover .action-icon svg { color: white; }
.action-card:hover .action-label { color: white; }

.action-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--action-bg, var(--gray-100));
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; position: relative;
}
.action-icon svg {
  width: 20px; height: 20px;
  color: var(--action-color, var(--green));
  transition: color .2s;
}
.action-label {
  font-size: 12.5px; font-weight: 600; color: var(--navy2);
  transition: color .18s; position: relative; line-height: 1.3;
}

/* ── Section Headings ─────────────────────────────────────────────── */
.section-heading {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.section-heading h2 {
  font-size: 16px; font-weight: 700; color: var(--navy2);
  display: flex; align-items: center; gap: 8px;
  position: relative; padding-left: 12px;
}
/* Left green accent bar */
.section-heading h2::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px;
  background: linear-gradient(to bottom, var(--green2), var(--green3));
  border-radius: 2px;
}
.section-heading a {
  font-size: 12.5px; color: var(--green2); font-weight: 600;
  white-space: nowrap; display: flex; align-items: center;
  gap: 4px; transition: gap .15s, color .15s;
}
.section-heading a:hover { color: var(--green); gap: 7px; }

/* ── Member Grid & Cards ──────────────────────────────────────────── */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}
.member-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 22px 16px 18px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
  text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden; cursor: pointer;
  will-change: transform;
}
/* Batch-color top strip */
.member-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--batch-color, var(--gray-200));
  transition: height .2s var(--ease);
}
.member-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) perspective(600px);
  border-color: var(--gray-300);
}
.member-card:hover::before { height: 6px; }
/* "View Profile" reveal overlay */
.member-card::after {
  content: 'View Profile →';
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,23,42,.82) 0%, rgba(15,23,42,.3) 65%, transparent 100%);
  color: white; font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
  padding: 32px 14px 12px; text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.member-card:hover::after { opacity: 1; transform: translateY(0); }

.member-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0,0,0,.1),
              0 0 0 3px var(--batch-light, var(--gray-200));
  transition: transform .28s var(--ease-spring);
  background: var(--gray-100);
}
.member-card:hover .member-avatar { transform: scale(1.07); }
.member-name {
  font-family: 'Syne', sans-serif;
  font-size: 13.5px; font-weight: 700; color: var(--navy2);
  margin-top: 4px; line-height: 1.3;
}
.member-trade { font-size: 11.5px; color: var(--gray-400); font-weight: 500; }
.member-company { font-size: 11.5px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.member-company svg { width: 11px; height: 11px; }
.member-batch {
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 100px;
  letter-spacing: .3px; margin-top: 2px;
}

/* ── Sidebar: Opp items ───────────────────────────────────────────── */
.opp-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px; border-radius: var(--radius);
  transition: background .15s;
  text-decoration: none; color: inherit; margin-bottom: 2px;
}
.opp-item:hover { background: var(--gray-50); }
.opp-item:hover .opp-item-icon { background: rgba(45,106,79,.1); color: var(--green2); }
.opp-item-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gray-400); transition: background .15s, color .15s;
}
.opp-item-icon svg { width: 16px; height: 16px; }
.opp-item-title {
  font-size: 13px; font-weight: 600; color: var(--navy2);
  margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.opp-item-meta { font-size: 11.5px; color: var(--gray-400); }

/* ── Sidebar: Batch rows ──────────────────────────────────────────── */
.batch-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--gray-100);
  text-decoration: none; color: inherit;
  transition: padding-left .15s;
}
.batch-row:hover { padding-left: 5px; }
.batch-row:hover .batch-row-year { color: var(--green2); }
.batch-row:last-child { border-bottom: none; }
.batch-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.batch-row-year { font-size: 13px; font-weight: 600; color: var(--navy2); transition: color .15s; }
.batch-row-count { margin-left: auto; font-size: 11.5px; color: var(--gray-400); }

/* ── Profile Strength ─────────────────────────────────────────────── */
.strength-bar-wrap {
  background: var(--gray-100); border-radius: 100px;
  height: 8px; overflow: hidden; margin-bottom: 12px;
}
.strength-bar-fill {
  height: 100%; border-radius: 100px;
  transition: width .9s var(--ease-out);
  position: relative;
}
.strength-bar-fill.high {
  background: linear-gradient(90deg, var(--green), var(--green3));
  box-shadow: 0 2px 6px rgba(45,106,79,.3);
}
.strength-bar-fill.low { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
/* Shine sweep */
.strength-bar-fill::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
  border-radius: 100px;
  animation: barShine 2.4s ease-in-out infinite;
}
@keyframes barShine { 0%,100%{opacity:0}50%{opacity:1} }

/* ── Article cards ────────────────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.article-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow-card);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gray-300); }
.article-card:hover .article-thumb { transform: scale(1.04); }
.article-thumb-wrap { overflow: hidden; height: 180px; }
.article-thumb { width: 100%; height: 100%; object-fit: cover; background: var(--gray-100); transition: transform .45s var(--ease); }
.article-body { padding: 18px; }
.article-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--green2); margin-bottom: 7px;
  display: flex; align-items: center; gap: 5px;
}
.article-cat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green3); display: inline-block; }
.article-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--navy2);
  line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-excerpt {
  font-size: 13px; color: var(--gray-500); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  font-size: 12px; color: var(--gray-400);
}
/* Horizontal article card variant (sidebar) */
.article-card.row { display: flex; flex-direction: row; align-items: center; }
.article-card.row .article-thumb-wrap { width: 100px; height: 80px; flex-shrink: 0; border-radius: var(--radius) 0 0 var(--radius); }
.article-card.row .article-thumb { height: 100%; }
.article-card.row .article-body { padding: 14px 16px; }

/* ── Opp Grid ─────────────────────────────────────────────────────── */
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.opp-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px;
  transition: var(--trans); display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-card);
}
.opp-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gray-300); }
.opp-type-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 6px; display: inline-block;
}
.opp-type-job        { background: #dbeafe; color: #1d4ed8; }
.opp-type-internship { background: #d8f3dc; color: var(--green); }
.opp-type-freelance  { background: #fef3c7; color: #92400e; }
.opp-type-collab     { background: #ede9fe; color: #6d28d9; }
.opp-type-service    { background: var(--gray-100); color: var(--gray-500); }
.opp-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy2); }
.opp-meta  { font-size: 12.5px; color: var(--gray-400); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.opp-desc  { font-size: 13px; color: var(--gray-500); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opp-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--gray-100); }

/* ── Forms ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: 14px; color: var(--navy2);
  outline: none; transition: var(--trans);
}
.form-control:focus { border-color: var(--green2); background: white; box-shadow: 0 0 0 3px rgba(64,145,108,.1); }
.form-control::placeholder { color: var(--gray-400); }

/* ── Dropdown ─────────────────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  min-width: 190px; z-index: 300; overflow: hidden;
  animation: dropIn .18s var(--ease-spring); display: none;
}
.dropdown-menu.open { display: block; }
@keyframes dropIn { from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:none} }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13.5px; color: var(--gray-700);
  cursor: pointer; transition: background .12s;
}
.dropdown-item:hover { background: var(--gray-50); color: var(--navy2); }
.dropdown-item svg { width: 14px; height: 14px; color: var(--gray-400); }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }

/* ── Modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal {
  background: white; border-radius: var(--radius-xl);
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); animation: modalIn .28s var(--ease-spring);
}
@keyframes modalIn{from{opacity:0;transform:scale(.94) translateY(20px)}to{opacity:1;transform:none}}
.modal-header { padding: 22px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 18px; }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* ── Tabs ─────────────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1.5px solid var(--gray-200); margin-bottom: 24px; }
.tab {
  padding: 10px 18px; font-size: 13.5px; font-weight: 600;
  color: var(--gray-400); border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px; cursor: pointer; transition: color .15s;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--navy2); }
.tab.active { color: var(--green2); border-bottom-color: var(--green2); }

/* ── Badges ───────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; letter-spacing: .3px; }
.badge-green { background: rgba(45,106,79,.1);   color: var(--green); }
.badge-blue  { background: rgba(29,78,216,.1);   color: #1d4ed8; }
.badge-gold  { background: rgba(160,140,91,.12); color: var(--gold); }
.badge-gray  { background: var(--gray-100);      color: var(--gray-500); }

/* ── Flash messages ───────────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; margin-bottom: 18px;
  animation: slideDown .3s var(--ease-spring);
}
@keyframes slideDown{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.flash svg { width: 16px; height: 16px; flex-shrink: 0; }
.flash-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.flash-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.flash-info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }
.flash-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

/* ── Skeleton / Spinner ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 300% 100%; animation: shimmer 1.6s ease-in-out infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--gray-200); border-top-color: var(--green2); border-radius: 50%; animation: spin .75s linear infinite; display: inline-block; }
@keyframes spin{to{transform:rotate(360deg)}}

/* ── Empty States ─────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; color: var(--gray-400); }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: .6; }
.empty-state h3 { font-size: 15px; color: var(--gray-500); margin-bottom: 6px; }

/* ── Page Header ──────────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-header h1 { font-size: clamp(20px, 4vw, 28px); }

/* ── Scroll Reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .18s; }
.reveal-delay-4 { transition-delay: .24s; }
.reveal-delay-5 { transition-delay: .30s; }
.reveal-delay-6 { transition-delay: .36s; }

/* Page-entry fade */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none} }
.fade-in   { animation: fadeUp .55s var(--ease-out) both; }
.fade-in-2 { animation: fadeUp .55s var(--ease-out) .10s both; }
.fade-in-3 { animation: fadeUp .55s var(--ease-out) .20s both; }
.fade-in-4 { animation: fadeUp .55s var(--ease-out) .30s both; }
.fade-in-5 { animation: fadeUp .55s var(--ease-out) .40s both; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media(max-width:1024px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:768px) {
  .header-nav    { display: none; }
  .header-search { display: none; }
  .mobile-nav    { display: flex; }
  .page-body     { padding: 16px 16px calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); }
  .stat-grid     { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .stat-card     { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .stat-num      { font-size: 22px; }
  .stat-label    { font-size: 11.5px; }
  .member-grid   { grid-template-columns: repeat(auto-fill, minmax(152px,1fr)); gap: 12px; }
  .opp-grid      { grid-template-columns: 1fr; }
  .article-grid  { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(4,1fr); gap: 10px; }
  .welcome-banner { padding: 22px 20px; }
}
@media(max-width:480px) {
  .stat-grid     { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .stat-card     { padding: 10px 12px; }
  .stat-icon     { width: 32px; height: 32px; }
  .stat-num      { font-size: 20px; }
  .member-grid   { grid-template-columns: repeat(2,1fr); }
  .member-avatar { width: 52px; height: 52px; }
  .quick-actions { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .action-card   { padding: 12px 6px 10px; gap: 6px; border-radius: var(--radius); }
  .action-icon   { width: 38px; height: 38px; border-radius: 10px; }
  .action-icon svg { width: 17px; height: 17px; }
  .action-label  { font-size: 10.5px; }
}

/* ── PWA safe areas ───────────────────────────────────────────────── */
@supports(padding-top:env(safe-area-inset-top)) {
  .app-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
}

/* ── Utilities ────────────────────────────────────────────────────── */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-400) !important; }
.text-green  { color: var(--green2) !important; }
.text-gold   { color: var(--gold) !important; }
.font-bold   { font-weight: 700; }
.mt-0{margin-top:0}.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}
.flex{display:flex;align-items:center}.flex-col{display:flex;flex-direction:column}.flex-1{flex:1}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rounded-full{border-radius:100px}

/* ── Search bar (admin + directory) ─────────────────────────────── */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar-icon {
  position: absolute;
  left: 12px;
  width: 16px !important;
  height: 16px !important;
  color: var(--gray-400);
  pointer-events: none;
  flex-shrink: 0;
}
.search-bar .form-control {
  padding-left: 38px;
}
/* Catch-all: any loose SVG not inside a sized context */
.card svg:not([class]),
.page-body > form svg:not([class]) {
  width: 16px;
  height: 16px;
}
