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

.cvp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:22px;margin:24px 0}.cvp-card{border:1px solid #e5e7eb;border-radius:10px;padding:16px;background:#fff}.cvp-card h3{margin:12px 0 6px}.cvp-photo{width:100%;height:220px;object-fit:cover;border-radius:7px}.cvp-card-link{color:inherit;text-decoration:none}.cvp-vote-btn,.cvp-pay-btn{display:inline-block;background:#1d4ed8;color:#fff!important;border:0;border-radius:6px;padding:11px 20px;text-decoration:none;cursor:pointer;font-weight:600}.cvp-filter{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:20px 0}.cvp-filter input{padding:9px;max-width:180px;border:1px solid #cbd5e1;border-radius:5px}.cvp-filter button{padding:10px 16px;cursor:pointer}.cvp-modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.68);z-index:999999;align-items:center;justify-content:center;padding:18px}.cvp-modal.is-open{display:flex}.cvp-modal-box{position:relative;background:#fff;color:#111827;width:min(100%,460px);max-height:90vh;overflow:auto;border-radius:12px;padding:28px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.cvp-modal-box h2{margin:0 0 18px}.cvp-close{position:absolute;right:14px;top:8px;background:none;border:0;font-size:30px;cursor:pointer;color:#555}.cvp-modal label{display:block;font-weight:600;margin:12px 0}.cvp-modal label input,.cvp-modal label select{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:11px;border:1px solid #cbd5e1;border-radius:6px}.cvp-total{font-size:18px}.cvp-privacy{font-size:12px;color:#64748b}.cvp-pay-btn{width:100%;font-size:16px}.cvp-pay-btn:disabled{opacity:.6;cursor:wait}.cvp-message{margin:12px 0 0;color:#b91c1c}.cvp-candidate-details{margin-top:20px}@media(max-width:520px){.cvp-modal-box{padding:22px 18px}.cvp-filter input{max-width:100%;width:100%}}

/* Candidate listing cards, shared eligibility panel (listing) and admin dashboard */
.cvp-card{border:1px solid #e2e8f0;border-radius:16px;padding:18px;background:#fff;box-shadow:0 5px 20px rgba(15,23,42,.06);transition:transform .18s ease,box-shadow .18s ease}.cvp-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,23,42,.1)}.cvp-card h3{font-size:20px}.cvp-card-bio{color:#64748b;line-height:1.55}.cvp-card-age{color:#475569;font-size:14px}.cvp-eligibility{margin:16px 0;padding:15px;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#eef5ff)}.cvp-eligibility-head{display:flex;justify-content:space-between;gap:10px;align-items:center;font-weight:700;color:#173b70;margin-bottom:12px}.cvp-eligibility-state{font-size:11px;padding:5px 8px;border-radius:20px;background:#fff;color:#2563eb;white-space:nowrap}.cvp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cvp-stats>div{display:flex;flex-direction:column;gap:4px}.cvp-stats small{font-size:11px;line-height:1.3;color:#64748b}.cvp-stats strong{font-size:19px;color:#0f172a}.cvp-progress{height:7px;background:#dbeafe;border-radius:20px;overflow:hidden;margin-top:13px}.cvp-progress span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#14b8a6);border-radius:20px}.cvp-admin-wrap .cvp-admin-intro{max-width:900px;color:#50575e;font-size:14px}.cvp-admin-filter{display:flex;align-items:end;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:18px;margin:18px 0 24px}.cvp-admin-filter label{display:flex;flex-direction:column;gap:7px;min-width:240px}.cvp-admin-filter select{min-width:240px;max-width:100%;height:36px}.cvp-admin-table-wrap{overflow-x:auto;margin:12px 0 24px}.cvp-eligibility-table{min-width:950px}.cvp-eligibility-table th{background:#f0f5fb;color:#173b70}.cvp-eligibility-table td,.cvp-eligibility-table th{padding:13px 10px}.cvp-status{display:inline-block;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:700;white-space:nowrap}.cvp-status.is-eligible{background:#dcfce7;color:#166534}.cvp-status.is-pending{background:#fff7ed;color:#9a3412}
@media(max-width:600px){.cvp-stats{gap:5px}.cvp-stats strong{font-size:16px}.cvp-stats small{font-size:10px}.cvp-eligibility{padding:12px}.cvp-eligibility-head{align-items:flex-start;flex-direction:column}}


/* =====================================================================
   SINGLE CANDIDATE PAGE (new design + WhatsApp share box)
   Everything below is scoped to .cvp-profile / .cvp-crumb, so the
   listing cards and admin styles above are not affected.
   Layout: [ Photo 50% | Bio 50% ] then everything else 100% wide
   ===================================================================== */



.cvp-profile {
  --ink: #0b1020;
  --text: #4a5270;
  --muted: #7a829e;
  --line: #e4e7f2;
  --canvas: #f3f5fc;
  --card: #ffffff;
  --brand: #5b4bff;
  --brand-2: #7c3aed;
  --cyan: #22d3ee;
  --amber: #fbbf24;

  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* 50% / 50% */
  gap: 32px;
  align-content: start;

  /* full-width band; content stays inside a 1200px column.
     If your theme container is already full width you can delete these 4 lines */
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 64px max(24px, calc((100vw - 1200px) / 2)) 80px;

  background:
    radial-gradient(900px 420px at 85% -80px, rgba(91, 75, 255, .13), transparent 70%),
    radial-gradient(700px 360px at 0% 0%, rgba(34, 211, 238, .12), transparent 70%),
    var(--canvas);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html:has(.cvp-profile) { overflow-x: clip; }

.cvp-profile *,
.cvp-profile *::before,
.cvp-profile *::after { box-sizing: border-box; }

/* ---------------- HERO: photo 50% ---------------- */
.cvp-profile .cvp-profile-photo {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px;
  background: #dfe4f5;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 140, .45);
  animation: cvp-photo-in .9s cubic-bezier(.2, .7, .2, 1) both;
}

/* ---------------- Photo placeholder (no featured image) ----------------
   WordPress prints no <img> when no image is uploaded, so a pseudo-element
   sits in the same grid cell. A real photo paints on top of it. */
.cvp-profile::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 520px;
  border-radius: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ccircle cx='200' cy='150' r='64' fill='white' fill-opacity='.95'/%3E%3Cpath d='M70 400c0-92 58-140 130-140s130 48 130 140z' fill='white' fill-opacity='.95'/%3E%3C/svg%3E")
      center 62% / min(58%, 340px) no-repeat,
    radial-gradient(420px 320px at 25% 15%, rgba(255, 255, 255, .28), transparent 70%),
    linear-gradient(145deg, #6d5dfc, #22b8e6);
  box-shadow: 0 30px 60px -30px rgba(40, 30, 140, .45);
  animation: cvp-photo-in .9s cubic-bezier(.2, .7, .2, 1) both;
}

/* hide the placeholder when a photo exists (modern browsers; harmless if unsupported) */
.cvp-profile:has(.cvp-profile-photo)::before { visibility: hidden; }

/* a photo that fails to load still shows the brand gradient behind it */
.cvp-profile .cvp-profile-photo { background-color: #6d5dfc; }

/* ---------------- HERO: bio 50% ---------------- */
.cvp-profile .cvp-profile-heading {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 60px -36px rgba(11, 16, 32, .25);
  animation: cvp-rise .8s .1s cubic-bezier(.2, .7, .2, 1) both;
}

.cvp-profile .cvp-profile-heading br { display: none; }

.cvp-profile .cvp-profile-heading h2 {
  order: 1;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.cvp-profile .cvp-profile-heading > p {
  order: 2;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.cvp-profile .cvp-profile-heading .bio {
  order: 3;
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.cvp-profile .bio > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

.cvp-profile .about_condidate {
  max-width: 62ch;
  white-space: pre-line;          /* keeps paragraph breaks */
  font-size: 16px;
  line-height: 1.8;
}

/* ---------------- Everything else = 100% width ---------------- */
.cvp-profile > .cvp-profile-grid,
.cvp-profile > .cvp-eligibility-section,
.cvp-profile > .cvp-vote-btn { grid-column: 1 / -1; min-width: 0; }

/* ---------------- Info cards (2 columns, lone last card = full width) ---------------- */
.cvp-profile .cvp-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* 50% / 50% */
  gap: 20px;
  animation: cvp-rise .8s .2s cubic-bezier(.2, .7, .2, 1) both;
}

.cvp-profile .cvp-profile-item {
  --ico: none;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cvp-profile .cvp-profile-item::before {
  content: "";
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 75, 255, .12), rgba(34, 211, 238, .16));
}

/* icon drawn with a mask so it takes the brand colour */
.cvp-profile .cvp-profile-item::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%) scale(.46);
  background: var(--brand);
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
  pointer-events: none;
}

.cvp-profile .cvp-profile-item:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 75, 255, .35);
  box-shadow: 0 22px 40px -22px rgba(91, 75, 255, .45);
}

.cvp-profile .cvp-profile-item > span {
  grid-column: 2;
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.cvp-profile .cvp-profile-item > strong {
  grid-column: 2;
  align-self: start;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* icons (stroke SVGs) */
.cvp-profile .cvp-item-name { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-age { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-email { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-mobile { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-facebook { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 8h3V4h-3a4 4 0 0 0-4 4v3H7v4h3v6h4v-6h3l1-4h-4V8z'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-x { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4 4 20'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-linkedin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 11v6M8 7.5v.01M12 17v-6M12 13a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-youtube { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='4'/%3E%3Cpath d='m10 9 5 3-5 3z'/%3E%3C/svg%3E"); }
.cvp-profile .cvp-item-other { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }


/* Mother Icon */
.cvp-profile .cvp-item-mother {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2M9 14l3 3 3-3'/%3E%3C/svg%3E");
}

/* Father Icon */
.cvp-profile .cvp-item-father {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2M9 14h6'/%3E%3C/svg%3E");
}

/* Date of Birth Icon */
.cvp-profile .cvp-item-dob {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18M8 15h2M14 15h2'/%3E%3C/svg%3E");
}

/* Nomination Category Icon */
.cvp-profile .cvp-item-nomination-category {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.5 5.5L20 11l-5.5 2.5L12 19l-2.5-5.5L4 11l5.5-2.5L12 3z'/%3E%3Cpath d='M19 16l1 2 2 1-2 1-1 2-1-2-2-1 2-1 1-2z'/%3E%3C/svg%3E");
}

/* City Icon */

.cvp-profile .cvp-item-city {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6M9 9h.01M15 9h.01M9 12h.01M15 12h.01'/%3E%3C/svg%3E");
}

/* a lone last card takes the full row automatically */
.cvp-profile .cvp-profile-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* profile links */
.cvp-profile .cvp-profile-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s ease, color .2s ease;
}
.cvp-profile .cvp-profile-item a:hover { background-size: 100% 2px; color: var(--brand-2); }

/* ---------------- Voting eligibility (100%) ---------------- */
.cvp-profile .cvp-eligibility-section {
  animation: cvp-rise .8s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.cvp-profile .cvp-eligibility-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.cvp-profile .cvp-eligibility {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 0;
  padding: 36px 40px 40px;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(124, 58, 237, .45), transparent 70%),
    radial-gradient(520px 240px at 0% 100%, rgba(34, 211, 238, .22), transparent 70%),
    var(--ink);
  border-radius: 28px;
  color: #fff;
  box-shadow: 0 40px 70px -40px rgba(11, 16, 32, .8);
}

.cvp-profile .cvp-eligibility-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.cvp-profile .cvp-eligibility-head > span:first-child {
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.cvp-profile .cvp-eligibility-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .45);
  border-radius: 999px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
}
.cvp-profile .cvp-eligibility-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: cvp-pulse 1.8s ease-out infinite;
}

.cvp-profile .cvp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.cvp-profile .cvp-stats > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.cvp-profile .cvp-stats small {
  color: #b4bddb;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}

.cvp-profile .cvp-stats strong {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.cvp-profile .cvp-stats > div:nth-child(2) strong { color: var(--cyan); }
.cvp-profile .cvp-stats > div:nth-child(3) strong { color: var(--amber); }

.cvp-profile .cvp-progress {
  height: 12px;
  margin-top: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}
.cvp-profile .cvp-progress > span {
  display: block;
  height: 100%;
  min-width: 12px;                /* stays visible even at 0.03% */
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  box-shadow: 0 0 18px rgba(34, 211, 238, .7);
  transform-origin: left center;
  animation: cvp-fill 1.5s .6s cubic-bezier(.2, .7, .2, 1) both;
}

/* ---------------- Vote button ---------------- */
.cvp-profile .cvp-vote-btn {
  position: relative;
  overflow: hidden;
  justify-self: center;
  width: min(100%, 460px);
  min-height: 66px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 20px 40px -16px rgba(91, 75, 255, .8);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  animation:
    cvp-rise .8s .4s cubic-bezier(.2, .7, .2, 1) both,
    cvp-glow 2.8s 1.6s ease-in-out infinite;
}
.cvp-profile .cvp-vote-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.cvp-profile .cvp-vote-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 26px 46px -16px rgba(91, 75, 255, .95);
}
.cvp-profile .cvp-vote-btn:hover::after { left: 120%; }
.cvp-profile .cvp-vote-btn:active { transform: translateY(0) scale(.98); }
.cvp-profile .cvp-vote-btn:disabled {
  background: #a3abc6;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
  transform: none;
}
.cvp-profile .cvp-vote-btn:focus-visible,
.cvp-profile .cvp-profile-item a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}


/* =========================================================
   Extra elements added by the updated PHP
   ========================================================= */

/* back link row above the hero (full width, aligned to the 1200px column) */
.cvp-crumb {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 24px max(24px, calc((100vw - 1200px) / 2)) 20px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.cvp-crumb a { color: #5b4bff; text-decoration: none; transition: color .2s ease; }
.cvp-crumb a:hover { color: #7c3aed; }
.cvp-crumb span { margin-left: 10px; color: #7a829e; }

/* event chip above the candidate name */
.cvp-profile .cvp-chip {
  order: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(91, 75, 255, .1);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.cvp-profile .cvp-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* heading above the info cards (full width, own row) */
.cvp-profile .cvp-section-title {
  grid-column: 1 / -1;
  margin: 16px 0 -8px;
  padding: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  animation: cvp-rise .8s .2s cubic-bezier(.2, .7, .2, 1) both;
}

/* percentage line under the progress bar */
.cvp-profile .cvp-pct {
  margin-top: 14px;
  color: #b4bddb;
  font-size: 14px;
  font-weight: 500;
}
.cvp-profile .cvp-pct b { color: #fff; }

/* note under the vote button */
.cvp-profile .cvp-vote-note {
  grid-column: 1 / -1;
  justify-self: center;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ---------------- WhatsApp share box (chat-style) ---------------- */
.cvp-profile .cvp-share {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 30px 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 48px -36px rgba(11, 16, 32, .35);
  animation: cvp-rise .8s .35s cubic-bezier(.2, .7, .2, 1) both;
}

.cvp-profile .cvp-share-text h3 {
  margin: 0 0 6px;
  padding: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.cvp-profile .cvp-share-text p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* chat panel */
.cvp-profile .cvp-share-chat {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e3ddd2;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px);
  background-size: 14px 14px;
}

.cvp-profile .cvp-share-bubble {
  position: relative;
  padding: 12px 14px 10px;
  background: #dcf8c6;
  border-radius: 14px 14px 14px 4px;
  color: #1f2a24;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 8px 18px -10px rgba(18, 140, 126, .5);
  transform-origin: left bottom;
  animation: cvp-bubble .7s .9s cubic-bezier(.2, .9, .3, 1.2) both;
}
.cvp-profile .cvp-share-bubble b { display: block; margin-bottom: 2px; }
.cvp-profile .cvp-share-bubble u { color: #0b7d6e; text-decoration: none; overflow-wrap: anywhere; }
.cvp-profile .cvp-share-bubble small {
  display: block;
  margin-top: 4px;
  color: #6b8f7c;
  font-size: 11px;
  text-align: right;
}

/* short WhatsApp button joined to the message */
.cvp-profile .cvp-wa-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 22px;
  border-radius: 14px;
  background: #25d366;
  color: #fff !important;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 24px -12px rgba(18, 140, 126, .95);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
  animation: cvp-wa-ring 2.8s 1.6s ease-in-out infinite;
}
.cvp-profile .cvp-wa-btn svg { flex-shrink: 0; }
.cvp-profile .cvp-wa-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.cvp-profile .cvp-wa-btn:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(18, 140, 126, 1);
}
.cvp-profile .cvp-wa-btn:hover svg { animation: cvp-wa-wiggle .6s ease; }
.cvp-profile .cvp-wa-btn:hover::after { left: 120%; }
.cvp-profile .cvp-wa-btn:active { transform: scale(.98); }
.cvp-profile .cvp-wa-btn:focus-visible { outline: 3px solid #128c7e; outline-offset: 4px; }

/* ---------------- Keyframes ---------------- */
@keyframes cvp-rise     { from { opacity: 0; transform: translateY(22px); } }
@keyframes cvp-photo-in { from { opacity: 0; transform: scale(.96); } }
@keyframes cvp-fill     { from { transform: scaleX(0); } }
@keyframes cvp-bubble   { from { opacity: 0; transform: translateY(12px) scale(.9); } }
@keyframes cvp-wa-wiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-14deg) scale(1.12); }
  60%      { transform: rotate(10deg) scale(1.12); }
}
@keyframes cvp-wa-ring {
  0%, 100% { box-shadow: 0 12px 24px -12px rgba(18, 140, 126, .95), 0 0 0 0 rgba(37, 211, 102, .45); }
  50%      { box-shadow: 0 12px 24px -12px rgba(18, 140, 126, .95), 0 0 0 11px rgba(37, 211, 102, 0); }
}
@keyframes cvp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, .65); }
  100% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
}
@keyframes cvp-glow {
  0%, 100% { box-shadow: 0 20px 40px -16px rgba(91, 75, 255, .8), 0 0 0 0 rgba(91, 75, 255, .35); }
  50%      { box-shadow: 0 20px 40px -16px rgba(91, 75, 255, .8), 0 0 0 14px rgba(91, 75, 255, 0); }
}

/* ---------------- Tablet ---------------- */
@media (max-width: 1024px) {
  .cvp-profile .cvp-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cvp-profile .cvp-profile-heading { padding: 36px; }
}

@media (max-width: 860px) {
  .cvp-profile { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 56px; gap: 24px; }
  .cvp-profile .cvp-profile-photo {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .cvp-profile::before { min-height: 0; aspect-ratio: 4 / 3; }
  .cvp-profile .cvp-profile-heading { grid-column: 1; grid-row: 2; }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 600px) {
  .cvp-profile .cvp-profile-grid { grid-template-columns: 1fr; gap: 14px; }
  .cvp-profile .cvp-profile-heading { padding: 26px 22px; border-radius: 22px; }
  .cvp-profile .cvp-profile-photo { border-radius: 22px; aspect-ratio: 1 / 1; }
  .cvp-profile::before { border-radius: 22px; aspect-ratio: 1 / 1; }
  .cvp-profile .cvp-eligibility { padding: 24px 20px 28px; border-radius: 22px; }
  .cvp-profile .cvp-stats { grid-template-columns: 1fr; gap: 12px; }
  .cvp-profile .cvp-stats > div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
  }
  .cvp-profile .cvp-stats strong { font-size: 30px; }
  .cvp-profile .cvp-vote-btn { position: sticky; bottom: 14px; z-index: 5; width: 100%; }
}

/* ---------------- Share box responsive ---------------- */
@media (max-width: 860px) {
  .cvp-profile .cvp-share { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; }
}
@media (max-width: 600px) {
  .cvp-profile .cvp-share { padding: 20px 18px; border-radius: 22px; }
  .cvp-profile .cvp-share-chat { padding: 14px; border-radius: 18px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .cvp-profile *,
  .cvp-profile *::before,
  .cvp-profile *::after {
    animation: none !important;
    transition: none !important;
  }
}
