/* =============================================
   LANDING.CSS — Hero & Page-level styles
   Tema: Merah × Emas
   ============================================= */

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;           /* full viewport tinggi di desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b91c1c 0%, #c2410c 35%, #d97706 100%);
  overflow: hidden;
  padding: 0 24px;
}
/* Decorative blobs & Blueprint Math Grid */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(255,100,100,.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(255,200,50,.22) 0%, transparent 55%),
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  pointer-events: none;
}
/* Animated particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(249,202,36,.12);
  animation: float linear infinite;
}
.math-particle {
  position: absolute;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  animation: floatMath infinite ease-in-out;
}
@keyframes floatMath {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, -18px) rotate(4deg); }
  66% { transform: translate(-8px, -10px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  /* padding atas memastikan tidak tertutup navbar */
  padding: calc(var(--nav-height) + 56px) 0 88px;
  color: #ffffff;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  letter-spacing: .5px;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 1.5s ease infinite;
}

/* Avatar (single dosen) */
.hero-avatar-wrapper {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 28px;
}
.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(243,156,18,.4);
  animation: pulse-ring 2.8s ease-out infinite;
}
.hero-avatar {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.2);
  box-shadow: 0 0 0 8px rgba(192,57,43,.2), var(--shadow-xl);
}

/* Headline */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hero-title {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255,255,255,.92);
  margin-bottom: 10px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.hero-nidn { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; }
.nidn-label { font-size: 11px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1.5px; }
.nidn-value { font-size: 14px; font-weight: 800; color: #fef08a; letter-spacing: 1.5px; text-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* Stat cards (single dosen hero) */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  min-width: 108px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
  background: none;
  -webkit-text-fill-color: unset;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,.85); margin-top: 4px; letter-spacing: .5px; font-weight: 600; }

/* CTA */
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.4);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.scroll-wheel {
  width: 20px; height: 34px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 10px;
  position: relative;
}
.scroll-wheel::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  border-radius: 2px;
  background: rgba(243,156,18,.6);
  animation: float 1.4s ease infinite;
}

/* =========================================
   STATS SECTION (public index overview)
   ========================================= */
.stats-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #b91c1c 0%, #c2410c 50%, #d97706 100%);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(255,120,120,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 50%, rgba(255,220,80,.2)  0%, transparent 60%);
}
.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat-ov-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.stat-ov-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.stat-ov-icon { font-size: 32px; color: var(--secondary-light); margin-bottom: 12px; }
.stat-ov-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,.2);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-ov-label { font-size: 12px; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* =========================================
   ABOUT / PROGRAM CARDS
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.about-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
  color: var(--text-white);
}
.about-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.about-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: linear-gradient(135deg, #b91c1c 0%, #c2410c 50%, #b45309 100%);
  color: #ffffff;
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}
.footer-brand .brand-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text-white);
}
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fef08a; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.85); transition: var(--transition); }
.footer-col ul li a:hover { color: #fef08a; padding-left: 4px; }
.footer-col ul li .material-symbols-outlined { font-size: 15px; margin-right: 6px; color: #fef08a; vertical-align: middle; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.footer-admin-link { color: rgba(255,255,255,.8); transition: var(--transition); }
.footer-admin-link:hover { color: #fef08a; }

/* =========================================
   PROFILE PAGE — Profil Tab Content
   ========================================= */
.profil-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.profil-photo-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profil-social { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.profil-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1.5px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}
.profil-social a:hover { background: var(--grad-primary); color: var(--text-white); border-color: transparent; transform: translateY(-2px); }

.info-card, .bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.info-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-item { display: flex; align-items: flex-start; gap: 12px; }
.info-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 18px;
}
.info-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.bio-card h4 { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.bio-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

/* =========================================
   TIMELINE (Pendidikan)
   ========================================= */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
}
.timeline-dot {
  position: absolute;
  left: -32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--primary);
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  transition: var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.timeline-year {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--primary);
  background: rgba(192,57,43,.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.timeline-content h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.timeline-content p { font-size: 14px; color: var(--text-secondary); }
.timeline-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px; font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  color: var(--primary);
  border: 1px solid var(--border-hover);
}

/* =========================================
   RESEARCH CARDS
   ========================================= */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.research-icon { margin-bottom: 12px; color: var(--primary); }
.research-year {
  font-size: 11px; font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.research-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.research-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }

/* =========================================
   PUBLICATION LIST
   ========================================= */
.pub-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pub-filter {
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}
.pub-filter.active, .pub-filter:hover { background: var(--grad-primary); color: var(--text-white); border-color: transparent; }

.pub-list { display: flex; flex-direction: column; gap: 12px; }
.pub-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pub-item:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.pub-type-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pub-type-badge.jurnal { background: rgba(192,57,43,.1); color: var(--primary); }
.pub-type-badge.prosiding { background: rgba(243,156,18,.1); color: var(--secondary-dark); }
.pub-type-badge.buku { background: rgba(22,163,74,.1); color: #15803d; }
.pub-content { flex: 1; }
.pub-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.pub-journal { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.pub-metrics { display: flex; gap: 12px; flex-wrap: wrap; }
.pub-metric {
  font-size: 12px; color: var(--text-secondary);
  padding: 2px 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
}
.pub-link {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1.5px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 700;
  transition: var(--transition);
}
.pub-link:hover { background: var(--grad-primary); color: var(--text-white); border-color: transparent; }

/* =========================================
   ABDIMAS CARDS
   ========================================= */
.abdimas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.abdimas-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.abdimas-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.abdimas-img {
  height: 96px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
}
.abdimas-icon { color: rgba(255,255,255,.7); }
.abdimas-body { padding: 18px 20px; }
.abdimas-year {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--secondary-dark);
  background: rgba(243,156,18,.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.abdimas-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.abdimas-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  background: rgba(192,57,43,.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

/* =========================================
   KONTAK
   ========================================= */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.kontak-info { display: flex; flex-direction: column; gap: 14px; }
.kontak-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.kontak-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.kontak-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-white);
  flex-shrink: 0;
  font-size: 20px;
}
.kontak-card h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 4px; }
.kontak-card a, .kontak-card p { font-size: 14px; color: var(--text-primary); transition: var(--transition); }
.kontak-card a:hover { color: var(--primary); }

.kontak-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.kontak-form h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .profil-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .kontak-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hero-scroll-indicator { display: none !important; }
}
@media (max-width: 600px) {
  .hero-name { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =============================================
   CHART SECTION — Distribusi Jabatan Dosen
   ============================================= */
.chart-section { background: var(--bg-soft); }

.chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ── Canvas container ── */
.chart-canvas-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 32px rgba(192,57,43,.18));
}

.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Center overlay label */
.chart-center-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 2px;
}

.chart-center-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  transition: all .2s;
}

.chart-center-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: all .2s;
}

/* ── Legend panel ── */
.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 280px;
  max-width: 380px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all .25s;
}

.legend-item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  border-color: transparent;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.legend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.legend-bar-wrap {
  height: 5px;
  border-radius: 99px;
  background: var(--bg-soft);
  overflow: hidden;
}

.legend-bar {
  height: 100%;
  border-radius: 99px;
  width: 0;           /* animated via JS */
  transition: width 1s ease;
}

.legend-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.legend-num {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.legend-pct {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .chart-wrapper { flex-direction: column; gap: 36px; }
  .chart-canvas-wrap { width: 260px; height: 260px; }
  .chart-legend { max-width: 100%; width: 100%; }
}
