/* =============================================
   EVOPOLLS PUBLIC VOTING CSS
   Used only by the public voting layout (app-voting).
   Scoped via evp- prefixes so it never affects dashboard/admin.
   Covers: voting page, payment page, payment/status page.
   ============================================= */

.evp-voting-page {
  --ep-navy:      #14259B;
  --ep-navy-dark: #0d1a6b;
  --ep-gold:      #F5A623;
  --ep-gold-dark: #d4891a;
  --ep-bg:        #f5f7ff;
  --ep-white:     #ffffff;
  --ep-border:    #e2e8f5;
  --ep-text:      #0d0d0d;
  --ep-muted:     #374151;

  margin: 0;
  font-family: 'Figtree', 'Segoe UI', sans-serif;
  background: var(--ep-bg);
  color: var(--ep-text);
  min-height: 100vh;
}
.evp-voting-page *, .evp-voting-page *::before, .evp-voting-page *::after { box-sizing: border-box; }

/* ---- Minimal branded top bar (no nav) ---- */
.evp-voting-topbar {
  background: var(--ep-white);
  border-bottom: 1px solid var(--ep-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(20,37,155,0.06);
}
.evp-voting-topbar img { height: 36px; width: auto; }

/* ---- Page wrapper ---- */
.evp-voting-wrapper {
  max-width: 750px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
.evp-voting-container { max-width: 640px; margin: 0 auto; }
.evp-voting-container--narrow { max-width: 600px; }

/* ---- Hero / banner image ---- */
.evp-hero-image {
  width: 100%;
  max-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(20,37,155,0.1);
}
.evp-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Event / page header ---- */
.evp-voting-header { text-align: center; margin-bottom: 28px; }
.evp-voting-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #000000;
  margin: 0 0 10px;
  line-height: 1.2;
}
.evp-voting-header p { font-size: 15px; color: var(--ep-muted); margin: 0; }
.evp-voting-header p strong { color: #000000; }

/* ---- Filter card ---- */
.evp-filter-card {
  background: var(--ep-white);
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 12px rgba(20,37,155,0.05);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.evp-search-wrap { flex: 1; min-width: 200px; position: relative; }
.evp-search-wrap i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af; font-size: 14px;
}
.evp-voting-input {
  width: 100%; height: 46px;
  border: 1.5px solid var(--ep-border);
  border-radius: 10px;
  padding: 0 14px 0 38px;
  font-size: 14px; color: var(--ep-text);
  background: var(--ep-white);
  outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.evp-voting-input:focus { border-color: var(--ep-navy); box-shadow: 0 0 0 3px rgba(20,37,155,0.08); }
.evp-voting-input::placeholder { color: #9ca3af; }
.evp-voting-select {
  height: 46px; min-width: 200px;
  border: 1.5px solid var(--ep-border);
  border-radius: 10px;
  padding: 0 36px 0 14px;
  font-size: 14px; color: var(--ep-text);
  background: var(--ep-white);
  outline: none; transition: border-color 0.2s;
  font-family: inherit; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314259B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.evp-voting-select:focus { border-color: var(--ep-navy); box-shadow: 0 0 0 3px rgba(20,37,155,0.08); }

/* ---- Loader ---- */
.evp-voting-loader { text-align: center; padding: 60px 20px; }
.evp-voting-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--ep-border);
  border-top-color: var(--ep-navy);
  border-radius: 50%;
  animation: evp-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes evp-spin { to { transform: rotate(360deg); } }
.evp-voting-loader p { font-size: 14px; color: var(--ep-muted); }

/* ---- Empty state ---- */
.evp-voting-empty {
  text-align: center; padding: 48px 20px;
  background: var(--ep-white);
  border-radius: 14px; border: 1px solid var(--ep-border);
}
.evp-voting-empty i { font-size: 36px; color: #d1d5db; margin-bottom: 14px; display: block; }
.evp-voting-empty p { font-size: 15px; color: var(--ep-muted); margin: 0; }

/* ==== LAYOUT A: IMAGE / CARD GRID ==== */
.evp-contestant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 560px) { .evp-contestant-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.evp-contestant-card {
  background: var(--ep-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 12px rgba(20,37,155,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.evp-contestant-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(20,37,155,0.12); }
.evp-card-img-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f0f3ff; }
.evp-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.evp-contestant-card:hover .evp-card-img-wrap img { transform: scale(1.04); }
.evp-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8ecf8, #f0f3ff);
}
.evp-card-placeholder i { font-size: 48px; color: #c7d0e8; }
.evp-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.evp-card-name { font-size: 15px; font-weight: 800; color: #000000; text-align: center; line-height: 1.3; }
.evp-card-code { font-size: 12px; color: #6b7280; text-align: center; }
.evp-card-code span { background: #f0f3ff; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.evp-vote-button {
  display: block; width: 100%; margin-top: 10px;
  padding: 11px 0;
  background: var(--ep-gold); color: #111;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  text-align: center; border-radius: 10px; border: none;
  cursor: pointer; transition: background 0.2s ease, transform 0.15s ease;
  font-family: inherit; text-transform: uppercase;
}
.evp-vote-button:hover { background: var(--ep-gold-dark); transform: translateY(-1px); }
.evp-vote-button:active { transform: translateY(0); }

/* ==== LAYOUT B: LIST / RADIO ==== */
.evp-category-block {
  background: var(--ep-white);
  border-radius: 16px;
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 12px rgba(20,37,155,0.06);
  margin: 0 auto 20px;
  overflow: hidden;
  max-width: 680px;
}
.evp-category-title {
  background: linear-gradient(135deg, #f0f4ff 0%, #eef3fb 100%);
  padding: 16px 22px;
  font-size: 17px; font-weight: 800; color: #000000;
  border-bottom: 1px solid var(--ep-border);
}
.evp-category-body { padding: 16px 22px 20px; }
.evp-radio-list { list-style: none; padding: 0; margin: 0 0 16px; }
.evp-radio-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  cursor: pointer; transition: background 0.15s ease; margin-bottom: 4px;
}
.evp-radio-item:hover { background: #f5f7ff; }
.evp-radio-item.selected { background: #eff3ff; }
.evp-radio-item input[type="radio"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ep-navy); cursor: pointer; }
.evp-radio-label { flex: 1; font-size: 15px; font-weight: 600; color: var(--ep-text); }
.evp-radio-code { font-size: 12px; color: #6b7280; background: #f0f3ff; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.evp-list-vote-button {
  width: 100%; padding: 14px;
  background: var(--ep-navy); color: var(--ep-white);
  font-weight: 800; font-size: 14px; letter-spacing: 0.8px;
  text-align: center; border-radius: 12px; border: none;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  font-family: inherit; text-transform: uppercase;
}
.evp-list-vote-button:hover { background: var(--ep-navy-dark); transform: translateY(-1px); }

/* ---- Share section ---- */
.evp-share-card {
  background: var(--ep-white);
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 12px rgba(20,37,155,0.05);
  max-width: 680px; margin: 0 auto;
}
.evp-share-card h5 { font-size: 16px; font-weight: 800; color: #000000; margin: 0 0 14px; }
.evp-share-url-row {
  display: flex; gap: 0; margin-bottom: 16px;
  border: 1.5px solid var(--ep-border); border-radius: 10px; overflow: hidden;
}
.evp-share-url-input {
  flex: 1; height: 46px; border: none; padding: 0 14px;
  font-size: 13px; color: var(--ep-muted); background: #f9fafb;
  outline: none; font-family: inherit;
}
.evp-copy-button {
  padding: 0 18px; background: var(--ep-gold); border: none; cursor: pointer;
  color: #111; font-size: 15px; font-weight: 700; transition: background 0.2s;
  display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.evp-copy-button:hover { background: var(--ep-gold-dark); color: #fff; }
.evp-share-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.evp-share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease; flex-shrink: 0;
}
.evp-share-btn:hover { transform: scale(1.12); opacity: 0.9; }
.evp-share-fb { background: #1877f2; color: #fff; }
.evp-share-li { background: #0a66c2; color: #fff; }
.evp-share-tw { background: #000; color: #fff; }
.evp-share-wa { background: #25d366; color: #fff; }
.evp-share-tg { background: #0088cc; color: #fff; }
.evp-share-qr { background: var(--ep-navy); color: #fff; }

/* ---- Powered by footer ---- */
.evp-voting-powered { text-align: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ep-border); }
.evp-voting-powered a { font-size: 13px; color: #9ca3af; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.evp-voting-powered img { height: 20px; opacity: 0.6; }
.evp-voting-powered a:hover { color: var(--ep-navy); }
.evp-voting-powered a:hover img { opacity: 1; }

/* =============================================
   PAYMENT PAGE
   ============================================= */
.evp-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ep-navy);
  text-decoration: none; padding: 6px 14px; border-radius: 8px;
  background: rgba(20,37,155,0.06); margin-bottom: 24px; transition: background 0.2s;
}
.evp-back-link:hover { background: rgba(20,37,155,0.12); color: var(--ep-navy); }

.evp-contestant-header { text-align: center; margin-bottom: 28px; }
.evp-contestant-avatar {
  width: 88px; height: 88px; border-radius: 16px; object-fit: cover;
  margin: 0 auto 14px; display: block;
  border: 3px solid var(--ep-border); box-shadow: 0 4px 16px rgba(20,37,155,0.12);
}
.evp-contestant-header h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 900; color: #000000; margin: 0 0 6px; }
.evp-contestant-header p { font-size: 14px; color: var(--ep-muted); margin: 0; }
.evp-category-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ep-navy);
  background: rgba(20,37,155,0.08); padding: 4px 12px; border-radius: 20px; margin-top: 8px;
}

.evp-payment-card {
  background: var(--ep-white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--ep-border);
  box-shadow: 0 4px 24px rgba(20,37,155,0.07);
  margin-bottom: 16px;
}
@media (max-width: 480px) { .evp-payment-card { padding: 22px 18px; } }

.evp-section-label {
  font-size: 13px; font-weight: 700; color: var(--ep-muted);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.evp-section-label::after { content: ''; flex: 1; height: 1px; background: var(--ep-border); }

/* Vote packages */
.evp-package-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.evp-package-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1.5px solid var(--ep-border); border-radius: 12px;
  cursor: pointer; transition: all 0.18s ease; background: var(--ep-white); user-select: none;
}
.evp-package-card:hover { border-color: var(--ep-navy); background: #f0f4ff; }
.evp-package-card.selected { border-color: var(--ep-navy); background: #eff3ff; }
.evp-package-radio {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid #c7d0e8; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.15s;
}
.evp-package-card.selected .evp-package-radio { border-color: var(--ep-navy); background: var(--ep-navy); }
.evp-package-card.selected .evp-package-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.evp-package-card input[type="radio"] { display: none; }
.evp-package-label { flex: 1; font-size: 15px; font-weight: 600; color: var(--ep-text); }
.evp-package-card.selected .evp-package-label { color: var(--ep-navy); }
.evp-package-price { font-size: 13px; font-weight: 700; color: var(--ep-muted); }
.evp-package-card.selected .evp-package-price { color: var(--ep-navy); }

/* Vote quantity input */
.evp-form-group { margin-bottom: 20px; }
.evp-form-label { display: block; font-size: 13px; font-weight: 700; color: var(--ep-text); margin-bottom: 8px; }
.evp-form-label .muted { color: #6b7280; font-weight: 500; }
.evp-form-input {
  width: 100%; height: 50px;
  border: 1.5px solid var(--ep-border); border-radius: 12px; padding: 0 16px;
  font-size: 15px; color: var(--ep-text); background: var(--ep-white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
}
.evp-form-input:focus { border-color: var(--ep-navy); box-shadow: 0 0 0 3px rgba(20,37,155,0.08); }
.evp-form-input::placeholder { color: #9ca3af; }
select.evp-form-input { cursor: pointer; }
.evp-amount-display {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #f5f7ff; border-radius: 10px; margin-top: 10px; border: 1px solid var(--ep-border);
}
.evp-amount-display span { font-size: 13px; color: var(--ep-muted); }
.evp-amount-display strong { font-size: 16px; color: var(--ep-navy); font-weight: 800; }

/* Payment methods */
.evp-payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.evp-payment-method-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1.5px solid var(--ep-border); border-radius: 12px;
  cursor: pointer; transition: all 0.18s ease; background: var(--ep-white); user-select: none;
}
.evp-payment-method-card:hover { border-color: var(--ep-navy); background: #f0f4ff; }
.evp-payment-method-card.selected { border-color: var(--ep-navy); background: #eff3ff; }
.evp-payment-method-card input[type="radio"] { display: none; }
.evp-method-radio {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid #c7d0e8; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.15s;
}
.evp-payment-method-card.selected .evp-method-radio { border-color: var(--ep-navy); background: var(--ep-navy); }
.evp-payment-method-card.selected .evp-method-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.evp-method-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.pm-mpesa  { background: #e8f5e9; color: #2e7d32; }
.pm-mobile { background: #fff8e1; color: #f57f17; }
.pm-card   { background: #e3f2fd; color: #1565c0; }
.pm-paypal { background: #e8eaf6; color: #283593; }
.evp-method-name { flex: 1; font-size: 15px; font-weight: 600; color: var(--ep-text); }
.evp-payment-method-card.selected .evp-method-name { color: var(--ep-navy); }
.evp-method-logos { display: flex; gap: 4px; font-size: 10px; color: #9ca3af; align-items: center; }

.evp-conditional-fields { background: #f8faff; border-radius: 12px; padding: 18px; border: 1px solid var(--ep-border); margin-bottom: 24px; }

/* Complete payment button */
.evp-complete-button {
  width: 100%; height: 54px;
  background: var(--ep-navy); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  border: none; border-radius: 14px; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px;
}
.evp-complete-button:hover { background: var(--ep-navy-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20,37,155,0.25); }
.evp-complete-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.evp-complete-button .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: evp-spin 0.7s linear infinite;
}

/* Terms notice */
.evp-terms-notice {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px;
  padding: 14px 18px; font-size: 13px; color: #92400e; line-height: 1.6;
}
.evp-terms-notice i { color: var(--ep-gold-dark); margin-right: 6px; }
.evp-terms-notice a { color: var(--ep-gold-dark); font-weight: 700; }

/* =============================================
   PAYMENT STATUS / CONFIRMATION PAGE
   ============================================= */
.evp-status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-top: 10px;
}
.evp-status-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.status-pending  { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.status-pending::before  { background: #f59e0b; }
.status-success  { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.status-success::before  { background: #22c55e; }
.status-failed   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.status-failed::before   { background: #ef4444; }

.evp-status-card {
  background: var(--ep-white); border-radius: 16px; padding: 28px;
  border: 1px solid var(--ep-border); box-shadow: 0 4px 24px rgba(20,37,155,0.07); margin-bottom: 16px;
}
@media (max-width: 480px) { .evp-status-card { padding: 22px 18px; } }
.evp-status-card-title { font-size: 16px; font-weight: 800; color: #000000; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.evp-status-card-title i { color: var(--ep-gold); font-size: 18px; }

.evp-instructions-list { list-style: none; padding: 0; margin: 0; }
.evp-instructions-list li {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid #f0f3fa; font-size: 14px; gap: 12px;
}
.evp-instructions-list li:last-child { border-bottom: none; }
.evp-instructions-list li span { color: var(--ep-muted); font-weight: 500; flex-shrink: 0; }
.evp-instructions-list li strong { color: var(--ep-navy); font-weight: 800; text-align: right; word-break: break-all; }

.evp-reference-row {
  background: #f0f4ff; border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; border: 1px solid var(--ep-border);
}
.evp-reference-row label { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }
.evp-reference-row code { font-size: 16px; font-weight: 800; color: var(--ep-navy); letter-spacing: 1px; font-family: 'Courier New', monospace; }
.evp-copy-ref-button {
  padding: 6px 14px; background: var(--ep-navy); color: #fff; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; transition: background 0.2s;
  font-family: inherit; display: flex; align-items: center; gap: 6px;
}
.evp-copy-ref-button:hover { background: var(--ep-navy-dark); }

.evp-polling-notice {
  display: flex; align-items: center; gap: 12px;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px;
}
.evp-polling-notice .spin-icon {
  width: 20px; height: 20px; border: 2px solid #bae6fd; border-top-color: var(--ep-navy);
  border-radius: 50%; animation: evp-spin 0.8s linear infinite; flex-shrink: 0;
}
.evp-polling-notice p { font-size: 13px; color: var(--ep-navy); margin: 0; font-weight: 600; }

.evp-stk-notice {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px; font-size: 13px; color: #92400e; line-height: 1.7;
}
.evp-stk-notice strong { color: #78350f; display: block; margin-bottom: 4px; font-size: 14px; }
.evp-stk-notice i { color: var(--ep-gold-dark); margin-right: 6px; }

.evp-status-icon-wrap { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

.evp-cta-group { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.evp-btn-primary, .evp-btn-gold, .evp-btn-outline {
  width: 100%; border-radius: 12px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-weight: 800;
}
.evp-btn-primary { height: 52px; background: var(--ep-navy); color: #fff; font-size: 15px; border: none; transition: background 0.2s, box-shadow 0.2s; letter-spacing: 0.3px; }
.evp-btn-primary:hover { background: var(--ep-navy-dark); color: #fff; box-shadow: 0 6px 20px rgba(20,37,155,0.22); }
.evp-btn-gold { height: 52px; background: var(--ep-gold); color: #111; font-size: 15px; border: none; transition: background 0.2s; }
.evp-btn-gold:hover { background: var(--ep-gold-dark); color: #fff; }
.evp-btn-outline { height: 48px; background: transparent; color: var(--ep-navy); font-size: 14px; font-weight: 700; border: 1.5px solid var(--ep-navy); transition: all 0.2s; }
.evp-btn-outline:hover { background: var(--ep-navy); color: #fff; }
.evp-btn-muted { border-color: #e2e8f5; color: #6b7280; }
.evp-btn-muted:hover { background: #6b7280; color: #fff; border-color: #6b7280; }

/* =============================================
   PUBLIC RESULTS PAGE (voting-results.html)
   ============================================= */
.evp-filter-label { font-size: 13px; font-weight: 700; color: var(--ep-muted); white-space: nowrap; flex-shrink: 0; }
.evp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: evp-pulse 1.8s ease-in-out infinite; flex-shrink: 0; display: inline-block; }
@keyframes evp-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.evp-res-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 560px) { .evp-res-summary { grid-template-columns: repeat(2, 1fr); } }
.evp-res-card { background: var(--ep-white); border-radius: 14px; padding: 16px 14px; border: 1px solid var(--ep-border); box-shadow: 0 2px 10px rgba(20,37,155,0.05); text-align: center; }
.evp-res-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 16px; }
.evp-res-icon.blue { background: rgba(20,37,155,0.08); color: var(--ep-navy); }
.evp-res-icon.gold { background: rgba(245,166,35,0.12); color: var(--ep-gold-dark); }
.evp-res-icon.green { background: #f0fdf4; color: #16a34a; }
.evp-res-icon.purple { background: #f5f3ff; color: #7c3aed; }
.evp-res-value { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 900; color: #000; line-height: 1.1; margin-bottom: 4px; word-break: break-word; }
.evp-res-label { font-size: 11px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

.evp-leaderboard { display: flex; flex-direction: column; gap: 10px; }
.evp-res-row { background: var(--ep-white); border-radius: 14px; border: 1px solid var(--ep-border); box-shadow: 0 2px 10px rgba(20,37,155,0.05); padding: 14px 18px; display: flex; align-items: center; gap: 14px; transition: box-shadow 0.2s ease; }
.evp-res-row:hover { box-shadow: 0 6px 24px rgba(20,37,155,0.1); }
.evp-res-row.rank-1 { border-color: var(--ep-gold); background: linear-gradient(to right, #fffbeb 0%, #ffffff 60%); box-shadow: 0 4px 20px rgba(245,166,35,0.15); }
.evp-res-rank { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; flex-shrink: 0; }
.evp-res-rank.r1 { background: var(--ep-gold); color: #111; }
.evp-res-rank.r2 { background: #e2e8f0; color: #475569; }
.evp-res-rank.r3 { background: #fed7aa; color: #c2410c; }
.evp-res-rank.rn { background: #f1f5f9; color: #64748b; }
.evp-res-avatar { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--ep-border); background: #f0f3ff; }
.evp-res-avatar-ph { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #e8ecf8, #f0f3ff); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--ep-border); }
.evp-res-avatar-ph i { font-size: 20px; color: #c7d0e8; }
.evp-res-info { flex: 1; min-width: 0; }
.evp-res-name-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.evp-res-name { font-size: 14px; font-weight: 800; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evp-res-code { font-size: 11px; font-weight: 600; color: #9ca3af; background: #f1f5f9; padding: 1px 7px; border-radius: 20px; white-space: nowrap; }
.evp-res-crown { font-size: 14px; color: var(--ep-gold); margin-left: 4px; }
.evp-res-bar { height: 8px; background: #f1f5f9; border-radius: 50px; overflow: hidden; }
.evp-res-bar-fill { height: 100%; border-radius: 50px; background: var(--ep-navy); transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.evp-res-row.rank-1 .evp-res-bar-fill { background: var(--ep-gold); }
.evp-res-stats { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 2px; }
.evp-res-pct { font-size: 16px; font-weight: 900; color: #000; line-height: 1; }
.evp-res-row.rank-1 .evp-res-pct { color: var(--ep-gold-dark); }
.evp-res-votes { font-size: 11px; color: #9ca3af; font-weight: 600; white-space: nowrap; }
.evp-res-updated { text-align: center; margin-top: 20px; font-size: 12px; color: #9ca3af; display: flex; align-items: center; justify-content: center; gap: 6px; }
.evp-res-updated i { color: var(--ep-gold-dark); font-size: 11px; }

/* =============================================
   CONTESTANT RESULT PAGE (contestant-result.html)
   ============================================= */
.evp-cr-profile { display: flex; align-items: center; gap: 20px; }
@media (max-width: 480px) { .evp-cr-profile { flex-direction: column; align-items: flex-start; gap: 14px; } }
.evp-cr-avatar { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; border: 3px solid var(--ep-border); display: block; flex-shrink: 0; }
.evp-cr-avatar-ph { width: 88px; height: 88px; border-radius: 18px; background: linear-gradient(135deg, #e8ecf8, #f0f3ff); border: 3px solid var(--ep-border); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; color: var(--ep-navy); flex-shrink: 0; }
.evp-cr-info { flex: 1; min-width: 0; }
.evp-cr-info h2 { font-size: clamp(1.2rem, 3.5vw, 1.55rem); font-weight: 900; color: #000; margin: 0 0 8px; line-height: 1.2; }
.evp-cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.evp-cr-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--ep-border); }
.evp-cr-chip i { font-size: 10px; }
.evp-cr-chip.code { background: #f0f4ff; color: var(--ep-navy); border-color: rgba(20,37,155,0.15); }
.evp-cr-chip.cat { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.evp-cr-chip.event { background: #f0fdf4; color: #166534; border-color: #86efac; }
.evp-cr-progress-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.evp-cr-progress-label span { font-size: 13px; color: var(--ep-muted); }
.evp-cr-progress-label strong { font-size: 22px; font-weight: 900; color: var(--ep-navy); }
