/* ════════════════════════════════════════════════════════════════════
   Events Voting — Contestant Profile  ·  White / Light Edition
   Fully accessible: WCAG AA contrast, no colour-blindness traps
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand palette — dark edition, bright enough for AA on black */
  --gold:      #26d9c9;
  --gold-lt:   #7ce8db;
  --gold-bg:   #052421;   /* dark turquoise tint */
  --gold-bdr:  rgba(38,217,201,.45);

  --blue:      #7db2ff;   /* anchor / link colour */
  --blue-lt:   rgba(96,165,250,.14);

  --teal:      #2dd4bf;
  --teal-lt:   rgba(45,212,191,.14);

  --rose:      #ff7a90;
  --rose-lt:   rgba(255,60,90,.14);

  /* Neutral — near-black background scale */
  --bg:        #0b0c10;
  --bg-2:      #16181f;
  --bg-3:      #1f222b;
  --border:    #2a2d38;
  --border-dk: #454a5a;

  /* Text — light on dark */
  --text:      #f5f6fa;   /* near-white */
  --text-2:    #cfd2dd;   /* light grey */
  --text-3:    #9aa0b5;   /* mid grey — still AA on #0b0c10 */
  --text-inv:  #0b0c10;

  --radius: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.45);

  --ff-d: 'Playfair Display', Georgia, serif;
  --ff-b: 'Outfit', system-ui, sans-serif;
}

/* ── Reset scoped to plugin ─────────────────────────────────────── */
.evt-profile-root *,
.evt-profile-root *::before,
.evt-profile-root *::after { box-sizing: border-box; margin: 0; padding: 0; }

.evt-profile-root {
  font-family: var(--ff-b);
  background: var(--bg) !important;
  color: var(--text) !important;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}
/* Desktop: fullwidth.js stretches the root to the whole browser width */
.evt-profile-root.evt-fullbleed { max-width: none !important; z-index: 1; }

/* Our own template owns the page — don't let the theme's sidebar / boxed
   content column squeeze it. Kept to the common, safe wrapper selectors. */
body.evt-contestant-profile-page #secondary,
body.evt-contestant-profile-page aside.widget-area,
body.evt-contestant-profile-page .sidebar-main { display: none !important; }
body.evt-contestant-profile-page #primary,
body.evt-contestant-profile-page .content-area {
  width: 100% !important; max-width: none !important; float: none !important;
  margin-left: 0 !important; margin-right: 0 !important;
}

.evt-profile-root *,
.evt-profile-root *::before {
  box-sizing: border-box;
  max-width: 100%;
}

/* ── Particle Canvas — very faint on white ──────────────────────── */
#evt-particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .25;
}

/* ════════════════════════════════════════════════════════════════════
   HERO — keeps photo full-bleed but overlays are lighter
   ════════════════════════════════════════════════════════════════════ */
.evt-hero {
  position: relative;
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; z-index: 1;
}

.evt-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transform: scale(1.06);
  transition: transform 8s ease;
  will-change: transform;
}
.evt-hero-bg-default {
  background: linear-gradient(135deg, #1a1c24 0%, #0e0f14 100%);
}

/* Overlay: dark scrim so the photo still reads while text stays legible */
.evt-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(6,7,10,.90) 0%,
    rgba(6,7,10,.62) 50%,
    rgba(6,7,10,.85) 100%
  );
}
.evt-hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* Rank badge */
.evt-hero-rank-badge {
  position: absolute; top: 28px; right: 28px; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  font-family: var(--ff-b); font-size: 13px; font-weight: 700;
  animation: badgePop .6s cubic-bezier(.34,1.56,.64,1) .8s both;
}
.evt-rank-1 {
  background: var(--gold-bg); border: 2px solid var(--gold-bdr);
  color: var(--gold); font-size: 15px;
}
.evt-rank-2 {
  background: rgba(96,165,250,.12); border: 2px solid #60a5fa; color: var(--blue);
}
.evt-rank-3 {
  background: rgba(253,186,116,.12); border: 2px solid #fdba74; color: #fdba74;
}
.evt-rank-other {
  background: var(--bg-2); border: 2px solid var(--border); color: var(--text-2);
}
@keyframes badgePop {
  from { opacity:0; transform: scale(.6) translateY(-10px); }
  to   { opacity:1; transform: none; }
}

/* Hero inner grid */
.evt-hero-inner {
  position: relative; z-index: 5;
  max-width: 1360px; margin: 0 auto;
  padding: clamp(48px,8vw,100px) clamp(16px,5vw,40px) clamp(36px,5vw,60px);
  display: grid; grid-template-columns: minmax(0,380px) minmax(0,1fr);
  gap: 48px; align-items: center;
}

/* Photo */
.evt-hero-photo-wrap {
  display: flex; flex-direction: column; align-items: center;
  animation: photoReveal .9s cubic-bezier(.16,1,.3,1) .15s both;
}
@keyframes photoReveal {
  from { opacity:0; transform: translateY(28px) scale(.96); }
  to   { opacity:1; transform: none; }
}

.evt-hero-photo-frame {
  position: relative;
  width: 320px; height: 400px;
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--bg), 0 0 0 6px var(--gold-bdr);
}
.evt-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }

.evt-photo-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(38,217,201,.08) 100%);
  pointer-events: none;
}
.evt-photo-ring {
  position: absolute; border-radius: 22px; pointer-events: none;
  border: 2px solid rgba(38,217,201,.15);
  inset: -8px; animation: ringPulse 3s ease-in-out infinite;
}
.evt-ring-2 {
  inset: -18px; opacity: .5; animation-delay: .6s;
  border-color: rgba(38,217,201,.08);
}
@keyframes ringPulse {
  0%,100% { opacity:.4; transform: scale(1); }
  50%     { opacity:.9; transform: scale(1.005); }
}

.evt-no-photo {
  width: 320px; height: 400px;
  background: var(--bg-3); border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--border-dk);
}

.evt-contestant-code-tag {
  margin-top: 14px; padding: 6px 18px;
  background: var(--gold-bg); border: 1px solid var(--gold-bdr);
  border-radius: 50px; font-size: 11px; font-weight: 800;
  letter-spacing: 2px; color: var(--gold); text-transform: uppercase;
}

/* Hero info */
.evt-hero-info {
  display: flex; flex-direction: column; gap: 18px;
  animation: infoReveal .9s cubic-bezier(.16,1,.3,1) .3s both;
}
@keyframes infoReveal {
  from { opacity:0; transform: translateX(28px); }
  to   { opacity:1; transform: none; }
}

.evt-event-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: var(--gold-bg) !important; border: 1px solid var(--gold-bdr);
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  color: var(--gold) !important; text-transform: uppercase; width: fit-content;
}
.evt-event-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; transform: scale(1); }
  50%     { opacity:.3; transform: scale(.7); }
}

.evt-contestant-name {
  font-family: var(--ff-d);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 900; line-height: 1.08;
  color: var(--text) !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Gold accent underline on name */
.evt-contestant-name::after {
  content: ''; display: block; margin-top: 10px;
  width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
}

.evt-contestant-tagline {
  font-size: 16px; color: var(--text-2) !important; line-height: 1.75; max-width: 500px;
  word-break: break-word; overflow-wrap: break-word;
}

/* Vote counter */
.evt-vote-counter-wrap {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 28px; border-radius: 14px;
  background: var(--gold-bg); border: 2px solid var(--gold-bdr);
  width: fit-content;
}
.evt-vote-number {
  font-family: var(--ff-d); font-size: 46px; font-weight: 900; line-height: 1;
  color: var(--gold); min-width: 6ch; text-align: center;
}
.evt-vote-label {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-lt); margin-top: 4px; text-align: center;
}
.evt-vote-sub-stats { display: flex; align-items: center; gap: 14px; }
.evt-vote-sub       { display: flex; flex-direction: column; align-items: center; }
.evt-vote-sub-num   { font-size: 22px; font-weight: 800; color: var(--text) !important; }
.evt-vote-sub-lbl   { font-size: 10px; color: var(--text-3) !important; text-transform: uppercase; letter-spacing: 1px; }
.evt-vote-divider   { width: 1px; height: 32px; background: var(--border); }

/* Share strip */
.evt-share-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.evt-share-label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.evt-share-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s; text-decoration: none; background: var(--bg);
  color: var(--text-2);
}
.evt-share-btn svg { width: 17px; height: 17px; }
.evt-share-copy:hover { background: var(--bg-3); transform: scale(1.1); }
.evt-share-wa   { background: #25D366; color: #fff; border-color: #25D366; }
.evt-share-wa:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(37,211,102,.35); }
.evt-share-fb   { background: #1877F2; color: #fff; border-color: #1877F2; }
.evt-share-fb:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(24,119,242,.35); }
.evt-share-tw   { background: #111; color: #fff; border-color: #111; }
.evt-share-tw:hover { transform: scale(1.1); }

/* Hero CTA */
.evt-hero-vote-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff; font-weight: 800; font-size: 16px;
  text-decoration: none; width: fit-content;
  border: none; cursor: pointer; font-family: var(--ff-b);
  transition: all .25s;
  box-shadow: 0 6px 24px rgba(38,217,201,.3);
}
.evt-hero-vote-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(38,217,201,.4);
  color: #fff;
}
.evt-hero-vote-cta svg {
  width: 20px; height: 20px;
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(4px); }
}

/* Scroll hint */
.evt-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 5;
}
.evt-scroll-dot {
  width: 28px; height: 48px; border-radius: 14px; border: 2px solid var(--border-dk);
  position: relative;
}
.evt-scroll-dot::after {
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 10px; border-radius: 2px; background: var(--border-dk);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,100% { opacity:.7; top: 7px; }
  50%     { opacity:.2; top: 22px; }
}

/* ════════════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════════════ */
.evt-stats-bar {
  background: transparent;
  border: none;
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  padding: 18px 16px 4px;
}
.evt-stats-bar-inner {
  display: inline-flex; justify-content: center; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--gold-bdr);
  border-radius: 999px;
  padding: 10px clamp(20px,6vw,40px);
  gap: clamp(20px,6vw,40px);
}
.evt-sbar-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 2px 4px;
}
.evt-sbar-item strong {
  font-family: var(--ff-d); font-size: 22px; font-weight: 900; color: var(--gold) !important;
}
.evt-sbar-item span {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-3) !important;
  font-weight: 700;
}
.evt-sbar-sep { width: 1px; height: 32px; background: var(--gold-bdr); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   PROFILE BODY
   ════════════════════════════════════════════════════════════════════ */
.evt-profile-body {
  max-width: 1360px; margin: 0 auto;
  padding: clamp(20px,5vw,56px) clamp(12px,4vw,40px) clamp(60px,8vw,100px);
  position: relative; z-index: 2;
  overflow: hidden;
}
.evt-profile-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,440px);
  gap: clamp(28px, 3.5vw, 56px); align-items: start;
}

/* Cards */
.evt-about-card, .evt-others-card {
  background: var(--bg) !important;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-bdr);
  border-radius: var(--radius);
  padding: clamp(16px,4vw,36px); margin-bottom: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.evt-card-eyebrow {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold) !important;
  background: var(--gold-bg); border: 1px solid var(--gold-bdr);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.evt-card-title {
  font-family: var(--ff-d); font-size: 26px; font-weight: 800;
  color: var(--text) !important; margin-bottom: 16px; line-height: 1.25;
}
.evt-about-text {
  font-size: 16px; line-height: 1.85; color: var(--text-2) !important;
  word-break: break-word; overflow-wrap: break-word;
}

/* Photo showcase */
.evt-photo-showcase { margin-bottom: 24px; }
.evt-showcase-inner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.evt-showcase-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evt-showcase-glare {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(108deg, rgba(255,255,255,.12) 0%, transparent 55%);
  pointer-events: none;
}
.evt-showcase-caption {
  text-align: center; margin-top: 12px; font-size: 13px;
  color: var(--text-3); font-style: italic; font-family: var(--ff-d);
}

/* Other contestants */
.evt-others-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px;
}
.evt-other-card > div:not(.evt-other-photo) { min-width: 0; }
.evt-other-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: all .2s;
}
.evt-other-card:hover {
  background: var(--gold-bg); border-color: var(--gold-bdr);
  transform: translateY(-2px); box-shadow: var(--shadow);
  color: inherit;
}
.evt-other-photo {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.evt-other-photo img { width: 100%; height: 100%; object-fit: cover; }
.evt-other-name  { font-size: 13px; font-weight: 700; color: var(--text) !important; overflow-wrap: anywhere; }
.evt-other-votes { font-size: 11px; color: var(--gold) !important; margin-top: 2px; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════
   VOTE CARD
   ════════════════════════════════════════════════════════════════════ */
.evt-vote-card {
  position: sticky; top: 24px;
  background: var(--bg);
  border: 2px solid var(--gold-bdr);
  border-radius: var(--radius);
  padding: clamp(14px,4vw,32px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.evt-vote-card-crown {
  font-size: 34px; text-align: center; margin-bottom: 14px;
  animation: crownFloat 3s ease-in-out infinite;
}
@keyframes crownFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}
.evt-vote-card-header { text-align: center; margin-bottom: 24px; }
.evt-vote-card-header h2 {
  font-family: var(--ff-d); font-size: 22px; font-weight: 800;
  color: var(--text) !important; margin-bottom: 6px;
}
.evt-vote-card-header p { font-size: 13px; color: var(--text-3) !important; }

/* Packages — rounded pill chips in a wrapping row, matching the
   reference's preset-amount pills. Same 9 values/prices/click JS —
   styling only. */
.evt-pkg-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-2) !important; margin-bottom: 12px;
  text-align: center;
}
.evt-pkg-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px;
}
.evt-pkg {
  position: relative;
  flex: 0 0 auto;
  min-width: 76px;
  padding: 12px 16px 10px;
  border-radius: 999px; border: 2px solid var(--border);
  background: var(--bg-2);
  cursor: pointer; transition: all .2s; text-align: center;
  color: var(--text); font-family: var(--ff-b);
}
.evt-pkg:hover {
  border-color: var(--gold-lt); background: var(--gold-bg);
}
.evt-pkg.evt-pkg-selected {
  border-color: var(--gold); background: var(--gold-bg);
  box-shadow: 0 0 0 3px rgba(38,217,201,.15);
}
.evt-pkg-popular-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff;
  font-size: 9px; font-weight: 900; padding: 2px 10px;
  border-radius: 50px; white-space: nowrap;
}
.evt-pkg-votes    { font-size: 18px; font-weight: 800; color: var(--text) !important; line-height: 1; }
.evt-pkg.evt-pkg-selected .evt-pkg-votes { color: var(--gold) !important; }
.evt-pkg-unit     { display: none; }
.evt-pkg-price    { font-size: 11px; font-weight: 700; color: var(--gold) !important; margin-top: 3px; }


/* Summary */
.evt-vote-summary {
  background: var(--bg-2); border-radius: 12px;
  padding: 16px 18px; border: 1px solid var(--border); margin-bottom: 18px;
}
.evt-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.evt-summary-row:last-child { border: none; }
.evt-summary-row span  { color: var(--text-3) !important; font-weight: 600; }
.evt-summary-row strong { color: var(--text) !important; font-weight: 700; }
.evt-summary-total span   { color: var(--text-2) !important; font-size: 14px; font-weight: 700; }
.evt-summary-total strong {
  font-family: var(--ff-d); font-size: 20px; color: var(--gold) !important; font-weight: 900;
}

/* Vote / Pay button */
.evt-vote-submit {
  width: 100%; padding: 17px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff; border: none; border-radius: 14px;
  font-family: var(--ff-b); font-size: 17px; font-weight: 800;
  cursor: pointer; transition: all .3s;
  box-shadow: 0 6px 24px rgba(38,217,201,.3);
  position: relative; overflow: hidden;
}
.evt-vote-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(108deg, rgba(255,255,255,.18) 0%, transparent 50%);
  pointer-events: none;
}
.evt-vote-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(38,217,201,.4);
}
.evt-vote-submit:active { transform: translateY(0); }
.evt-vote-btn-text,
.evt-vote-btn-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* Spinner */
.evt-spinner-ring {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Message */
#evt-vote-message {
  margin-top: 12px; padding: 13px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; text-align: center;
}
#evt-vote-message.error {
  background: var(--rose-lt); border: 1px solid #fda4af; color: var(--rose);
}

/* Secure note */
.evt-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; font-size: 11px; color: var(--text-3); font-weight: 600;
}
.evt-secure-note svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--teal); }

/* Closed / missing WC */
.evt-voting-closed, .evt-woo-missing {
  text-align: center; padding: 44px 28px;
  background: var(--bg-2); border: 2px solid var(--border);
  border-radius: var(--radius);
}
.evt-closed-icon, .evt-woo-icon { font-size: 48px; margin-bottom: 14px; }
.evt-voting-closed h3, .evt-woo-missing h3 {
  font-family: var(--ff-d); font-size: 20px; color: var(--text) !important; margin-bottom: 8px;
}
.evt-voting-closed p, .evt-woo-missing p { color: var(--text-3) !important; font-size: 14px; }

/* ── Mini Leaderboard ───────────────────────────────────────────── */
.evt-mini-leaderboard {
  margin-top: 18px;
  background: var(--bg) !important; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.evt-mini-lb-header {
  padding: 14px 18px;
  background: var(--gold-bg) !important; border-bottom: 2px solid var(--gold-bdr);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--gold) !important;
}
.evt-mini-lb-header span:first-child {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(38,217,201,.16); border: 1px solid var(--gold-bdr);
  font-size: 12px;
}
.evt-mini-lb-link {
  margin-left: auto; font-size: 10px; color: var(--gold) !important;
  text-decoration: none; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase;
  border: 1px solid var(--gold-bdr); border-radius: 999px;
  padding: 5px 12px;
  transition: background .15s;
}
.evt-mini-lb-link:hover { text-decoration: none; background: rgba(38,217,201,.12); }
.evt-mini-lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.evt-mini-lb-row:last-child { border: none; }
.evt-mini-lb-row:hover { background: var(--bg-2); }
.evt-mini-lb-current {
  background: var(--gold-bg) !important;
  border-left: 3px solid var(--gold);
}
.evt-mini-lb-rank { width: 26px; text-align: center; font-size: 17px; flex-shrink: 0; }
.evt-mini-lb-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.evt-mini-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.evt-mini-lb-info { flex: 1; min-width: 0; }
.evt-mini-lb-name {
  font-size: 12px; font-weight: 700; color: var(--text) !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.evt-mini-lb-name em { color: var(--gold) !important; font-style: normal; }
.evt-mini-lb-bar {
  height: 4px; background: var(--bg-3); border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.evt-mini-lb-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}
.evt-mini-lb-count { font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; flex-shrink: 0; }

/* ── AOS simple polyfill ────────────────────────────────────────── */
[data-aos="fade-up"]    { opacity:0; transform:translateY(24px); transition: all .7s cubic-bezier(.16,1,.3,1); }
[data-aos="fade-left"]  { opacity:0; transform:translateX(24px); transition: all .7s cubic-bezier(.16,1,.3,1) .1s; }
[data-aos="fade-right"] { opacity:0; transform:translateX(-24px);transition: all .7s cubic-bezier(.16,1,.3,1); }
[data-aos="zoom-in"]    { opacity:0; transform:scale(.85);        transition: all .5s cubic-bezier(.34,1.56,.64,1); }
[data-aos].is-visible   { opacity:1; transform:none; }

/* ══════════════════════════════════════════════════════════════════
   LARGE DESKTOP  (≥1200px) — roomy two-column hero that lines up with
   the body grid below it
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .evt-hero-inner { grid-template-columns: minmax(0,400px) minmax(0,1fr); gap: 64px; }
  .evt-hero-photo-frame,
  .evt-no-photo   { width: 360px; height: 450px; }
  .evt-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

/* ── Tablet ≤1050px ─────────────────────────────────────────────── */
@media (max-width: 1050px) {
  .evt-hero-inner     { grid-template-columns: minmax(0,1fr); text-align: center; }
  .evt-hero-photo-wrap { margin: 0 auto; align-items: center; }
  .evt-hero-info      { align-items: center; }
  .evt-contestant-name::after { margin: 10px auto 0; }
  .evt-profile-grid   { grid-template-columns: minmax(0,1fr); }
  .evt-vote-card      { position: static; }
  .evt-profile-right  { order: -1; }
}

/* ── Mobile ≤640px ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hard containment on containers that can cause scroll */
  .evt-profile-root   { overflow-x: hidden; }
  .evt-hero           { overflow: hidden; }
  .evt-stats-bar      { overflow: hidden; }
  .evt-profile-body   { overflow: hidden; }

  /* Push hero content down to clear fixed theme header (~20% of viewport) */
  .evt-hero-inner     { padding-top: 40vh; }

  /* Photo size — v2.1.0 original */
  .evt-hero-photo-frame,
  .evt-no-photo       { width: 200px !important; height: 260px !important; }
  .evt-hero-rank-badge { top: 12px; right: 12px; font-size: 11px; padding: 4px 10px; }

  /* Name + tagline */
  .evt-contestant-name { font-size: clamp(22px,6vw,36px); }
  .evt-contestant-tagline { font-size: 14px; }

  /* Vote counter */
  .evt-vote-number    { font-size: 28px; }
  .evt-vote-counter-wrap { flex-direction: column; gap: 10px; width: 100%; }

  /* Stats bar: shrink so 4 items fit */
  .evt-sbar-item      { padding: 4px 2px; min-width: 0; flex: 1 1 0; }
  .evt-sbar-icon      { font-size: 15px; }
  .evt-sbar-item strong { font-size: 14px; }
  .evt-sbar-item span { font-size: 6px; letter-spacing: 0; }
  .evt-sbar-sep       { height: 24px; }

  /* Cards */
  .evt-about-card,
  .evt-others-card    { margin-bottom: 12px; }
  .evt-about-text     { font-size: 15px; line-height: 1.7; }
  .evt-card-title     { font-size: 20px; }
  .evt-others-grid    { grid-template-columns: 1fr; }

  /* Leaderboard */
  .evt-mini-lb-header { padding: 10px 12px; font-size: 12px; }
  .evt-mini-lb-row    { padding: 9px 12px; gap: 6px; }
  .evt-mini-lb-name   { max-width: 130px; font-size: 11px; }
  .evt-mini-lb-count  { font-size: 11px; }

  /* Vote card header */
  .evt-vote-card-crown  { font-size: 22px; margin-bottom: 8px; }
  .evt-vote-card-header { margin-bottom: 14px; }
  .evt-vote-card-header h2 { font-size: 15px; }

  /* ══ PACKAGE GRID — 2 COLUMNS ══
     Worst-case 360px phone:
       body padding: clamp → ~12px each side → 336px inner
       vote card padding: clamp → ~14px each side → 308px inner
       2 cols, gap 8px → (308-8)/2 = 150px per chip — fully readable */
  .evt-pkg-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px !important;
    margin-bottom: 16px;
  }
  .evt-pkg            { padding: 14px 8px 12px; }
  .evt-pkg-votes      { font-size: 22px; }
  .evt-pkg-unit       { font-size: 8px; margin: 2px 0; }
  .evt-pkg-price      { font-size: 11px; }
  .evt-pkg-popular-badge { font-size: 8px; padding: 2px 8px; top: -9px; }

  /* Summary — label above value */
  .evt-vote-summary   { padding: 12px 14px; }
  .evt-summary-row    {
    flex-direction: column; align-items: flex-start;
    gap: 2px; padding: 8px 0;
  }
  .evt-summary-row span   { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
  .evt-summary-row strong { font-size: 14px; word-break: break-word; overflow-wrap: anywhere; }
  .evt-summary-total strong { font-size: 18px; }

  /* Pay button */
  .evt-vote-submit    { font-size: 15px; padding: 15px; border-radius: 50px; }

  /* Secure note */
  .evt-secure-note    { font-size: 10px; flex-wrap: wrap; justify-content: center; }

  /* Share */
  .evt-share-btn      { width: 34px; height: 34px; }
  .evt-share-btn svg  { width: 15px; height: 15px; }
}

/* ════════════════════════════════════════════════════════════════════
   VOTE PANEL POLISH
   Extra shadow/gradient touches on top of the dark palette above —
   markup, packages, and pricing logic are untouched.
   ════════════════════════════════════════════════════════════════════ */
.evt-vote-card { box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.4); }

.evt-pkg.evt-pkg-selected {
  box-shadow: 0 0 0 3px rgba(38,217,201,.25);
}

/* CTA button — orange-to-pink gradient, matching the dark reference */
.evt-vote-submit {
  background: linear-gradient(135deg, #ff7a30 0%, #ff2e78 100%);
  box-shadow: 0 6px 24px rgba(255,46,120,.35);
}
.evt-vote-submit:hover {
  box-shadow: 0 12px 36px rgba(255,46,120,.45);
}

