/* ── CSS VARIABLES & THEMES ── */
:root[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --border-color: rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-gold: #b45309;
  --accent-gold-hover: #d97706;
  --accent-gold-rgb: 180, 83, 9;
  --accent-navy: #1e3a8a;
  --accent-teal: #0d9488;
  --accent-purple: #7c3aed;
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  --navbar-bg: rgba(248, 250, 252, 0.85);
  --glow-color: rgba(180, 83, 9, 0.06);
  --transition-speed: 0.3s;
}

:root[data-theme="dark"] {
  --bg-primary: #090e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --border-color: rgba(255, 255, 255, 0.06);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-gold: #d97706;
  --accent-gold-hover: #f59e0b;
  --accent-gold-rgb: 217, 119, 6;
  --accent-navy: #3b82f6;
  --accent-teal: #14b8a6;
  --accent-purple: #a78bfa;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 3px 10px rgba(0, 0, 0, 0.2);
  --navbar-bg: rgba(9, 14, 26, 0.85);
  --glow-color: rgba(217, 119, 6, 0.12);
  --transition-speed: 0.3s;
}

/* ── RESET & BASE STYLES ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

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

h1, h2, h3, h4 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ── UTILITY TOPBAR ── */
.topbar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 24px;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar-left a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.topbar-left a:hover {
  color: var(--accent-gold);
}

.topbar-left .sep {
  color: var(--border-color);
}

.visitor-counter {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* ── NAVIGATION NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-title {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.cv-btn {
  background-color: var(--accent-gold);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cv-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid var(--border-color);
  padding-left: 16px;
}

.lang-switch {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.lang-switch:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent-gold);
}

/* Toggle light/dark icons based on theme attribute */
:root[data-theme="light"] .theme-toggle-btn .light-icon { display: none; }
:root[data-theme="dark"] .theme-toggle-btn .dark-icon { display: none; }

/* Mobile Menu Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── HERO BANNER SECTION ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 70px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed);
}

/* Soft blur backdrops */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background-color: var(--accent-gold);
  top: -150px;
  right: -50px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background-color: var(--accent-navy);
  bottom: -100px;
  left: -50px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-avatar-wrapper {
  flex-shrink: 0;
}

.hero-avatar-frame {
  position: relative;
  width: 220px;
  height: 275px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-gold);
}

.hero-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-avatar-frame:hover img {
  transform: scale(1.05);
}

.frame-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 20px rgba(var(--accent-gold-rgb), 0.3);
  pointer-events: none;
}

.hero-content {
  flex: 1;
}

.hero-name-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
}

.hero-name-row h1 {
  font-family: 'Lora', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
}

.chinese-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.positions-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.position-tag {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fellowships-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.fellowship-badge {
  background-color: rgba(var(--accent-gold-rgb), 0.08);
  border: 1px solid rgba(var(--accent-gold-rgb), 0.2);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fellowship-badge.font-gold {
  color: var(--accent-gold);
  font-weight: 600;
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
}

.contact-pill {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-tertiary);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.contact-pill a {
  color: var(--text-secondary);
}

.contact-pill:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.contact-pill:hover a {
  color: var(--accent-gold);
}

/* ── STATS BAR SECTION ── */
.stats-section {
  background-color: var(--bg-primary);
  padding: 40px 24px;
  border-bottom: 1px solid var(--border-color);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-icon-wrapper {
  font-size: 24px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.stat-num-wrapper {
  margin-bottom: 4px;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-plus {
  font-size: 20px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-left: 2px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* ── MAIN CONTENT CONTAINER ── */
.main-container {
  max-width: 1200px;
  margin: 64px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

.content-column {
  min-width: 0; /* Prevent flex/grid overflow issues */
}

.content-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--accent-gold);
  font-size: 20px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 12px;
}

.section-title-row .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.action-btn-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  transition: all 0.2s ease;
}

.action-btn-link:hover {
  background-color: var(--accent-gold);
  color: #ffffff;
}

.inline-link {
  color: var(--accent-navy);
  border-bottom: 1px dashed var(--accent-navy);
  padding-bottom: 1px;
}

.inline-link:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* About bio contents */
.bio-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

.premium-callout {
  background: linear-gradient(135deg, rgba(var(--accent-gold-rgb), 0.08) 0%, rgba(var(--accent-gold-rgb), 0.02) 100%);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 24px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-text {
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.65;
}

/* Timelines styling */
.subsection-title {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.positions-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 20px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  color: #ffffff;
}

.timeline-badge.lead { background-color: var(--accent-gold); }
.timeline-badge.faculty { background-color: var(--accent-teal); }
.timeline-badge.visit { background-color: var(--accent-purple); }

.timeline-info h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Teaching Courses styling */
.courses-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.course-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 16px;
}

.group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 8px;
}

.courses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-pill {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
}

.course-pill small {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background-color: rgba(0,0,0,0.05);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}

:root[data-theme="dark"] .course-pill small {
  background-color: rgba(255,255,255,0.08);
}

.course-pill.highlight {
  border-color: var(--accent-gold);
  background-color: rgba(var(--accent-gold-rgb), 0.05);
  color: var(--accent-gold);
  font-weight: 600;
}

.course-pill.fade {
  opacity: 0.7;
}

/* ── NEWS SECTION ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.news-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.2s;
  animation: fadeIn 0.4s ease forwards;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.news-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  height: fit-content;
}

.news-badge.recent {
  background-color: rgba(var(--accent-gold-rgb), 0.1);
  border-color: rgba(var(--accent-gold-rgb), 0.3);
  color: var(--accent-gold);
}

.news-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-details .badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  color: #ffffff;
}

.award-badge { background-color: var(--accent-gold); }
.talk-badge { background-color: var(--accent-purple); }
.paper-badge { background-color: var(--accent-teal); }
.position-badge { background-color: var(--accent-navy); }

.news-txt {
  font-size: 14.5px;
  color: var(--text-primary);
}

.news-link {
  color: var(--accent-navy);
  text-decoration: underline;
}

.news-link:hover {
  color: var(--accent-gold);
}

/* ── RESEARCH INTERESTS GRID ── */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.research-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.research-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--glow-color);
}

.research-icon {
  font-size: 28px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.research-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.research-body p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── AWARDS Elegant GRID ── */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.award-card-elegant {
  position: relative;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  padding-left: 32px;
  transition: all 0.3s ease;
}

.award-card-elegant::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12px;
  width: 4px;
  height: calc(100% - 48px);
  background-color: var(--accent-gold);
  border-radius: 2px;
}

.award-card-elegant:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.award-year-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.award-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.award-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── PUBLICATIONS SECTION ── */
.publications-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-tertiary);
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.publications-intro p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.publications-buttons {
  display: flex;
  gap: 8px;
}

.pub-external-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pub-external-btn:hover {
  background-color: var(--accent-gold);
  color: #ffffff !important;
  border-color: var(--accent-gold);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-card-premium {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.pub-card-premium:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.pub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pub-impact-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.pub-impact-tag.highlight {
  color: var(--accent-gold);
  border-color: rgba(var(--accent-gold-rgb), 0.3);
  background-color: rgba(var(--accent-gold-rgb), 0.05);
}

.pub-date-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pub-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pub-title a {
  color: var(--text-primary);
}

.pub-title a:hover {
  color: var(--accent-gold);
}

.pub-authors {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pub-journal {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-navy);
  font-style: italic;
}

.pub-meta-info {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

/* Books design */
.books-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.book-card-premium {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
  transition: all 0.3s ease;
}

.book-card-premium:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.book-spine-accent {
  width: 12px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-gold-hover));
  flex-shrink: 0;
}

.book-body-wrapper {
  padding: 20px;
  flex: 1;
}

.book-title {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.book-details {
  font-size: 13px;
  color: var(--accent-navy);
  font-weight: 600;
  margin-bottom: 4px;
}

.book-authors-list {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.book-links-row {
  display: flex;
  gap: 8px;
}

.book-links-row a {
  font-size: 12px;
  font-weight: 600;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.book-links-row a:hover {
  background-color: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

/* ── RESEARCH PROJECTS TABLE ── */
.table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.projects-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1.5px solid var(--border-color);
}

.projects-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.projects-table tr:last-child td {
  border-bottom: none;
}

.projects-table tr:hover td {
  background-color: var(--bg-tertiary);
}

.project-year-tag {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.project-code {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
  white-space: nowrap;
}

.role-badge.pi { background-color: var(--accent-gold); }
.role-badge.copi { background-color: var(--text-muted); }

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
  display: inline-block;
  white-space: nowrap;
}

.status-badge.active { background-color: var(--accent-teal); }
.status-badge.completed { background-color: var(--text-muted); }

.col-period, .col-budget {
  white-space: nowrap;
}

/* ── SIDEBAR STYLE & WIDGETS ── */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.widget-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Recruiting Widget */
.recruiting-widget {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-gold-rgb), 0.05) 100%);
  border: 2px solid var(--accent-gold);
}

.recruiting-widget h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recruiting-widget h3 i {
  color: var(--accent-gold);
}

.recruiting-widget p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.recruit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-gold);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.recruit-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

/* Contact Info widget */
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.c-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.c-value {
  font-size: 13.5px;
  color: var(--text-primary);
  word-break: break-all;
}

.c-value a {
  color: var(--text-primary);
}

.c-value a:hover {
  color: var(--accent-gold);
}

/* Academic Profiles list */
.profile-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-btn {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.profile-btn .btn-icon {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  display: flex;
  justify-content: center;
}

.profile-btn .btn-text {
  flex: 1;
}

.profile-btn small {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Profiles Hover Branded Effects */
.profile-btn.orcid:hover {
  background-color: #a62626;
  border-color: #a62626;
  color: #ffffff !important;
}

.profile-btn.scholar:hover {
  background-color: #4285f4;
  border-color: #4285f4;
  color: #ffffff !important;
}

.profile-btn.scopus:hover {
  background-color: #f66d1b;
  border-color: #f66d1b;
  color: #ffffff !important;
}

.profile-btn.dblp:hover {
  background-color: #0b5b95;
  border-color: #0b5b95;
  color: #ffffff !important;
}

.profile-btn.researchgate:hover {
  background-color: #00ccbb;
  border-color: #00ccbb;
  color: #ffffff !important;
}

.profile-btn.acm:hover {
  background-color: #0080c1;
  border-color: #0080c1;
  color: #ffffff !important;
}

.profile-btn.ieee:hover {
  background-color: #006699;
  border-color: #006699;
  color: #ffffff !important;
}

.profile-btn.scival:hover {
  background-color: #555555;
  border-color: #555555;
  color: #ffffff !important;
}

/* Quick links list */
.quick-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-links-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.quick-links-list li a:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent-gold);
  padding-left: 16px;
}

/* ── FOOTER SECTION ── */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
  margin-top: 80px;
  transition: background-color var(--transition-speed);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-meta p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-meta p strong {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-copyright p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── BACK TO TOP BUTTON ── */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* ── KEYFRAME ANIMATIONS ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE DESIGN MEDIA QUERIES ── */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .recruiting-widget {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  
  .hero-name-row {
    justify-content: center;
  }
  
  .positions-track, .fellowships-row, .quick-contact {
    justify-content: center;
  }
  
  .stats-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  
  .navbar {
    padding: 12px 16px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 10px 16px;
  }
  
  .cv-btn {
    justify-content: center;
  }
  
  .nav-controls {
    border-left: none;
    padding-left: 0;
    justify-content: space-between;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .sidebar-column {
    grid-template-columns: 1fr;
  }
  
  .recruiting-widget {
    grid-column: span 1;
  }
  
  .research-grid, .awards-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-name-row h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .content-section {
    padding: 24px;
  }
  
  .news-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .news-badge {
    text-align: left;
    width: fit-content;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* ── SUB-PAGES GENERAL STYLES ── */
.subpage-container {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 24px;
}

.nav-back {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-back a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-back a:hover {
  color: var(--accent-gold);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 48px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed);
}

.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ── HONORS & AWARDS SUB-PAGE ── */
.award-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.award-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--card-shadow);
}

.award-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-gold);
}

.award-year {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.award-year.gold {
  background-color: rgba(var(--accent-gold-rgb), 0.1);
  border-color: rgba(var(--accent-gold-rgb), 0.3);
  color: var(--accent-gold);
}

.award-body {
  flex: 1;
}

.award-body strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: inline;
}

.award-detail {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.6;
}

/* ── MEMBERS SUB-PAGE ── */
.jump-bar {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
}

.jump-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.jump-link:hover {
  background-color: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.member-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(var(--accent-gold-rgb), 0.1);
  color: var(--accent-gold);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid rgba(var(--accent-gold-rgb), 0.2);
}

.member-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
}

.member-chinese {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.member-year {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.badge-intl {
  display: inline-block;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
  text-transform: uppercase;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.data-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1.5px solid var(--border-color);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: var(--bg-tertiary);
}

.data-table .yr {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

.data-table .pos {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.award-mark {
  display: inline-block;
  background-color: rgba(var(--accent-gold-rgb), 0.1);
  border: 1px solid rgba(var(--accent-gold-rgb), 0.3);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.search-bar .result-count {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.hidden-row {
  display: none !important;
}

/* ── RECRUITING SUB-PAGE ── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.type-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  background-color: var(--bg-secondary);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.type-card:hover {
  transform: translateY(-2px);
}

.type-card.highlight {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-gold-rgb), 0.05) 100%);
}

.type-card .type-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.type-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.type-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.type-card .type-label {
  display: inline-block;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.type-card.highlight .type-label {
  background-color: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: 8px;
  font-size: 14.5px;
}

.checklist li::before {
  content: "✓";
  color: var(--accent-teal);
  font-weight: 700;
  flex-shrink: 0;
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.area-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.area-card .area-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 14.5px;
}

.area-card .area-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-list li {
  padding: 10px 0 10px 20px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14.5px;
  position: relative;
}

.req-list li:last-child {
  border-bottom: none;
}

.req-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-gold-rgb), 0.08) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.cta-box h3 {
  font-family: 'Lora', serif;
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.cta-btn {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #ffffff !important;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* ── Live Member Count Badges ─────────────────────────────────────────────── */
.member-count-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold, #c8a951), var(--accent-hover, #a8873a));
  color: #1a1400;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}

/* ── Global Member Search & Filter Panel ──────────────────────────────────── */
.member-search-panel {
  margin-bottom: 40px;
  padding: 22px 26px 18px;
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.member-search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.member-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.member-search-input-wrap .search-icon-glyph {
  position: absolute;
  left: 14px;
  color: var(--text-muted, #888);
  font-size: 0.88rem;
  pointer-events: none;
  z-index: 1;
}

#globalMemberSearch {
  width: 100%;
  padding: 11px 42px 11px 40px;
  font-size: 0.93rem;
  font-family: inherit;
  background: var(--input-bg, rgba(0,0,0,0.2));
  border: 1.5px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 10px;
  color: var(--text-primary, #eee);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#globalMemberSearch:focus {
  outline: none;
  border-color: var(--accent-gold, #c8a951);
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

#globalMemberSearch::placeholder {
  color: var(--text-muted, #666);
}

[data-theme="light"] #globalMemberSearch {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  font-size: 0.85rem;
  line-height: 1;
}
.search-clear-btn:hover { color: var(--text-primary, #eee); }

.search-result-label {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
  transition: opacity 0.2s;
}

/* Filter Chips */
.member-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted, #aaa);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--accent-gold, #c8a951);
  color: var(--accent-gold, #c8a951);
  background: rgba(200, 169, 81, 0.08);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--accent-gold, #c8a951), #a8893c);
  border-color: transparent;
  color: #1a1400;
  box-shadow: 0 2px 8px rgba(200,169,81,0.3);
}

[data-theme="light"] .filter-chip {
  border-color: rgba(0,0,0,0.15);
  color: #666;
}

[data-theme="light"] .filter-chip.active {
  color: #1a1400;
}

/* No results message */
.member-no-results {
  display: none;
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted, #888);
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

.member-no-results i {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
  opacity: 0.35;
}

/* Animated section reveal when filter changes */
.member-grid, .table-wrapper, .search-bar {
  transition: opacity 0.2s ease;
}


