/* ==========================================================================
   XcelVote Shared Design System  (UI-only layer â€” no backend dependency)
   Brand: APA Technologies Ltd. | Navy / Teal / Green / White
   Loaded by all public pages + admin login for one consistent product feel.
   ========================================================================== */
:root {
  --xv-navy: #041c3a;
  --xv-navy-2: #0a3556;
  --xv-ink: #0f172a;
  --xv-teal: #0f766e;
  --xv-green: #10b981;
  --xv-green-dark: #059669;
  --xv-green-soft: #f0fdf4;
  --xv-blue: #2563eb;
  --xv-amber: #f59e0b;
  --xv-amber-dark: #b45309;
  --xv-purple: #7c3aed;
  --xv-red: #dc2626;
  --xv-slate: #475569;
  --xv-muted: #64748b;
  --xv-faint: #94a3b8;
  --xv-line: #e8eef4;
  --xv-bg: #f6f9fc;
  --xv-card: #ffffff;
  --xv-radius: 0;
  --xv-radius-sm: 0;
  --xv-shadow: 0 4px 18px rgba(4, 28, 58, 0.06);
  --xv-shadow-lg: 0 18px 44px rgba(4, 28, 58, 0.12);
  --xv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Skip link */
.xv-skip { position: absolute; left: 16px; top: -52px; z-index: 2000; background: var(--xv-navy); color: #fff; padding: 10px 16px; border-radius: 0; font-size: 13px; font-weight: 600; text-decoration: none; transition: top 0.2s ease; }
.xv-skip:focus { top: 12px; color: #fff; }

/* ================= HEADER ================= */
/* Single-row public navigation: pure-white sticky surface, APA mark on the
   left, centered primary links, and Get Tickets on the right. */
.xv-nav {
  --xv-nav-ink: #23262f;
  --xv-nav-muted: #6b7280;
  --xv-nav-line: #ececf2;
   --xv-nav-accent: #059669;
   --xv-nav-accent-dark: #047857;
  --xv-nav-green: #059669;
  --xv-nav-green-soft: #f0fdf4;
  --xv-nav-yellow: #F5B301;
  --xv-nav-yellow-hover: #FFC93C;
  --xv-nav-pad: clamp(20px, 3.5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 1400;
  background: #FFFFFF;
  color: var(--xv-nav-ink);
  border-bottom: 1px solid var(--xv-nav-line);
  box-shadow: none;
}
.xv-nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; height: 80px; margin: 0; padding: 0 var(--xv-nav-pad); }
/* AdminLTE sets `body { overflow: hidden auto; }`, which turns the body into a
   scroll container and silently breaks position: sticky. Public pages opt out;
   html still prevents horizontal scrolling. */
body.ev-page:not(.modal-open):not(.xv-menu-open) { overflow: visible; }
html { scroll-padding-top: 81px; }
.xv-brand { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.xv-brand img { display: block; width: auto; height: 40px; max-width: 150px; object-fit: contain; }
.xv-brand-copy { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; margin-left: 11px; line-height: 1.1; }
.xv-brand-name { color: #111827; font-size: 16px; font-weight: 700; letter-spacing: -.15px; white-space: nowrap; }
.xv-brand-tagline { color: var(--xv-nav-muted); font-size: 10px; font-weight: 500; letter-spacing: .35px; white-space: nowrap; }
.xv-brand:focus-visible { outline: 2px solid var(--xv-nav-accent); outline-offset: 4px; border-radius: 4px; }

.xv-links { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; height: 100%; }
.xv-links a { position: relative; display: inline-flex; align-items: center; padding: 0 8px; font-size: 14px; font-weight: 500; letter-spacing: 0.15px; text-transform: uppercase; color: #111827; text-decoration: none; white-space: nowrap; transition: color 0.18s ease; }
.xv-links a::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 20px; height: 2px; border-radius: 2px; background: transparent; transition: background 0.18s ease; }
.xv-links a:hover { color: var(--xv-nav-green); }
.xv-links a:hover::after { background: rgba(5, 150, 105, 0.3); }
.xv-links a.active, .xv-links a.active:hover { color: #000; font-weight: 600; }
.xv-links a.active::after { background: var(--xv-nav-green); }
.xv-links a:focus-visible { outline: 2px solid var(--xv-nav-green); outline-offset: -6px; border-radius: 4px; }

/* Suppress the browser tap highlight and pointer-only focus ring on the nav.
   Keyboard users keep the visible :focus-visible rings above. */
.xv-nav a, .xv-nav button { -webkit-tap-highlight-color: transparent; }
.xv-nav a:focus:not(:focus-visible),
.xv-nav button:focus:not(:focus-visible) { outline: 0 !important; box-shadow: none; }

.xv-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 100%; margin-left: auto; flex: 0 0 auto; }

/* Primary CTA */
.xv-nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 26px; border-radius: 0; background: var(--xv-nav-yellow); color: #06243F; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.18s ease, transform 0.18s ease; }
.xv-nav-cta svg { width: 16px; height: 16px; display: block; flex: 0 0 16px; }
.xv-nav-cta:hover { background: var(--xv-nav-yellow-hover); color: #06243F; }
.xv-nav-cta:active { transform: translateY(1px); }
.xv-nav-cta:focus-visible { outline: 2px solid #06243F; outline-offset: 3px; }

/* Hamburger (tablet + mobile only) */
.xv-menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 0; background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; transition: background 0.18s ease; }
.xv-menu-toggle:hover { background: var(--xv-nav-yellow); }
.xv-menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #0B1B2B; transition: transform 0.2s ease, opacity 0.2s ease; }
.xv-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.xv-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.xv-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.xv-menu-toggle:focus-visible { outline: 2px solid #06243F; outline-offset: 2px; }

/* Shared contact rows (retained inside the mobile panel) */
.xv-contact { display: flex; align-items: center; gap: 7px; min-width: 0; text-decoration: none; }
.xv-contact-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 1px solid #e5e6ee; display: inline-flex; align-items: center; justify-content: center; color: var(--xv-nav-accent); background: #faf9ff; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.xv-contact-icon svg { width: 14px; height: 14px; display: block; }
.xv-contact-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.xv-contact-label { font-size: 9px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: #7b7f8c; line-height: 1.3; }
.xv-contact-value { font-size: 11px; font-weight: 600; color: var(--xv-nav-green); line-height: 1.3; white-space: nowrap; }
.xv-contact:hover .xv-contact-value { color: var(--xv-nav-accent); }
.xv-contact:hover .xv-contact-icon { background: #f0eeff; border-color: #dcd8ff; color: var(--xv-nav-accent-dark); }
.xv-contact:focus-visible { outline: 2px solid var(--xv-nav-accent); outline-offset: 4px; border-radius: 4px; }

/* ===== Off-canvas menu (tablet + mobile) ===== */
.xv-mobile-shell { position: fixed; inset: 0; z-index: 1300; visibility: hidden; pointer-events: none; }
.xv-mobile-shell.is-open { visibility: visible; pointer-events: auto; }
.xv-mobile-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); opacity: 0; transition: opacity 0.28s ease; }
.xv-mobile-shell.is-open .xv-mobile-overlay { opacity: 1; }
.xv-mobile-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fff; display: flex; flex-direction: column; padding: 22px 24px 26px; overflow-y: auto; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -18px 0 50px rgba(15, 23, 42, 0.16); }
.xv-mobile-shell.is-open .xv-mobile-panel { transform: translateX(0); }
.xv-mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--xv-nav-line); }
.xv-mobile-brand { display: inline-flex; align-items: center; text-decoration: none; }
.xv-mobile-brand img { height: 34px; width: auto; display: block; }
.xv-mobile-close { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: #f6f6fa; color: #353842; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.xv-mobile-close:hover { background: #f0eeff; color: var(--xv-nav-accent); }
.xv-mobile-close:focus-visible { outline: 2px solid var(--xv-nav-accent); outline-offset: 2px; }
.xv-mobile-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xv-mobile-links { display: flex; flex-direction: column; padding: 12px 0 2px; }
.xv-mobile-links a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-bottom: 1px solid #f2f2f7; font-size: 13.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #000; text-decoration: none; transition: background 0.18s ease, color 0.18s ease; }
.xv-mobile-links a:hover { color: #000; background: var(--xv-nav-green-soft); }
.xv-mobile-links a.active, .xv-mobile-links a.active:hover { padding-left: 12px; border-left: 3px solid var(--xv-nav-green); background: var(--xv-nav-green-soft); color: #000; font-weight: 700; }
.xv-mobile-links a:focus-visible { outline: 2px solid var(--xv-nav-green); outline-offset: -4px; }
.xv-mobile-contact { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--xv-nav-line); }
.xv-mobile-contact-title { margin: 0 0 2px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #9ca3af; }
.xv-mobile-contact .xv-contact { align-items: flex-start; }
.xv-mobile-contact .xv-contact-icon { width: 34px; height: 34px; flex-basis: 34px; }
.xv-mobile-contact .xv-contact-icon svg { width: 15px; height: 15px; }
.xv-mobile-contact .xv-contact-label { font-size: 9.5px; }
.xv-mobile-contact .xv-contact-value { font-size: 11.5px; white-space: normal; overflow-wrap: anywhere; }
.xv-mobile-foot { margin-top: auto; padding-top: 28px; }
.xv-mobile-cta { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 18px; border-radius: 0; background: var(--xv-nav-yellow); color: #06243F; font-size: 13px; font-weight: 700; text-decoration: none; transition: background 0.18s ease; }
.xv-mobile-cta:hover { background: var(--xv-nav-yellow-hover); color: #06243F; }
.xv-mobile-cta svg { width: 15px; height: 15px; }
.xv-mobile-cta:focus-visible { outline: 2px solid var(--xv-nav-green); outline-offset: 3px; }
body.xv-menu-open { overflow: hidden; }

/* Desktop â€” compact header */
@media (min-width: 1181px) and (max-width: 1360px) {
  /* Tighten the centre links slightly on narrower desktops. */
  .xv-links a { padding: 0 7px; font-size: 14px; }
  .xv-links a::after { left: 7px; right: 7px; }
}
@media (max-width: 1180px) {
  html { scroll-padding-top: 69px; }
  .xv-nav { --xv-nav-pad: 24px; }
  .xv-nav-inner { height: 68px; gap: 18px; }
  .xv-links { display: none; }
  .xv-brand img { height: 34px; }
  .xv-nav-actions { gap: 9px; }
  .xv-nav-cta { height: 42px; padding: 0 21px; font-size: 13px; }
  .xv-menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 65px; }
  .xv-nav { --xv-nav-pad: 18px; }
  .xv-nav-inner { height: 64px; gap: 12px; }
  .xv-nav-cta { height: 40px; padding: 0 17px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  html { scroll-padding-top: 61px; }
  .xv-nav { --xv-nav-pad: 16px; }
  .xv-nav-inner { height: 60px; gap: 10px; }
  .xv-brand img { height: 30px; }
  .xv-brand-copy { margin-left: 8px; gap: 1px; }
  .xv-brand-name { font-size: 14px; }
  .xv-brand-tagline { font-size: 8px; letter-spacing: .2px; }
  .xv-nav-actions { gap: 6px; }
  .xv-nav-cta { height: 38px; padding: 0 14px; font-size: 12px; }
  .xv-menu-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .xv-mobile-panel { padding: 18px 18px 22px; }
}
@media (max-width: 350px) {
  .xv-brand-name { font-size: 13px; }
  .xv-brand-tagline { font-size: 7px; }
  .xv-nav-actions { gap: 5px; }
  .xv-nav-cta { padding: 0 11px; gap: 5px; font-size: 11.5px; }
  .xv-nav-cta svg { width: 13px; height: 13px; flex-basis: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .xv-mobile-panel, .xv-mobile-overlay { transition: none; }
}

/* ================= BUTTONS ================= */
.xv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 0; font-size: 13.5px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--xv-font); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.xv-btn:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 2px; }
.xv-btn-primary { background: var(--xv-green); border-color: var(--xv-green); color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28); }
.xv-btn-primary:hover { background: var(--xv-green-dark); border-color: var(--xv-green-dark); color: #fff; transform: translateY(-1px); }
.xv-btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.xv-btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.xv-btn--inactive, .xv-btn--inactive:hover { opacity: 0.55; cursor: not-allowed; border-color: rgba(255, 255, 255, 0.28); background: transparent; color: #fff; transform: none; box-shadow: none; }
.xv-btn-ghost { background: #fff; border-color: #e2e8f0; color: #334155; }
.xv-btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--xv-ink); }
/* Voting-closed action on public event cards: red with white text. Scoped to
   the explicit modifier so no other ghost button is affected. */
.xv-btn.xv-btn--closed { background: #DC2626; border-color: #DC2626; color: #fff; }
.xv-btn.xv-btn--closed:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.xv-btn-danger { background: var(--xv-red); border-color: var(--xv-red); color: #fff; }
.xv-btn-danger:hover { background: #b91c1c; color: #fff; }
.xv-btn-block { width: 100%; }
.xv-btn-sm { padding: 9px 16px; font-size: 12.5px; }

/* ================= HERO ================= */
.xv-hero { background: linear-gradient(120deg, var(--xv-navy) 0%, var(--xv-navy-2) 45%, var(--xv-teal) 100%); position: relative; overflow: hidden; }
.xv-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.xv-hero-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 104px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.xv-hero-inner--single { grid-template-columns: minmax(0, 720px); justify-content: center; text-align: center; padding-bottom: 88px; }
.xv-hero-inner--single .xv-hero-sub { margin-left: auto; margin-right: auto; }
.xv-hero-inner--single .xv-hero-actions { justify-content: center; }
.xv-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0; font-size: 11px; font-weight: 700; color: #d1fae5; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; }
.xv-hero-badge i { width: 7px; height: 7px; border-radius: 0; background: #34d399; display: inline-block; animation: xvPulse 2s infinite; }
.xv-hero-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff; line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.8px; font-family: var(--xv-font); }
.xv-hero-title em { font-style: normal; color: #34d399; }
.xv-hero-sub { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.78); max-width: 520px; margin: 0 0 26px; }
.xv-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.xv-hero-actions .xv-btn { padding: 13px 28px; font-size: 14px; }
.xv-hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; }
.xv-hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
/* Glass feature panel */
.xv-panel { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; padding: 30px 28px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12); max-width: 400px; width: 100%; justify-self: end; }
.xv-panel-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; color: #6ee7b7; text-transform: uppercase; margin: 0 0 14px; }
.xv-panel-icon { width: 52px; height: 52px; border-radius: 0; margin-bottom: 16px; background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(52, 211, 153, 0.35); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(16, 185, 129, 0.25); }
.xv-panel-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 8px; letter-spacing: -0.3px; }
.xv-panel-desc { font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); margin: 0 0 18px; }
.xv-panel-live { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; padding: 12px 14px; }
.xv-live-dot { width: 9px; height: 9px; border-radius: 0; background: #34d399; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: xvPulse 2s infinite; }
.xv-panel-live strong { display: block; font-size: 13px; font-weight: 700; color: #fff; }
.xv-panel-live span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.62); }

/* ================= STATS ================= */
.xv-stats { padding: 0; margin-top: -52px; position: relative; z-index: 3; }
.xv-stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xv-stat { background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); padding: 20px; display: flex; align-items: center; gap: 14px; min-height: 104px; box-shadow: var(--xv-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.xv-stat:hover { transform: translateY(-3px); box-shadow: var(--xv-shadow-lg); }
.xv-stat-icon { width: 46px; height: 46px; border-radius: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.xv-stat-icon svg { width: 22px; height: 22px; }
.xv-stat-icon--green { background: rgba(16, 185, 129, 0.12); color: var(--xv-green-dark); }
.xv-stat-icon--blue { background: rgba(37, 99, 235, 0.1); color: var(--xv-blue); }
.xv-stat-icon--amber { background: rgba(245, 158, 11, 0.13); color: var(--xv-amber-dark); }
.xv-stat-icon--purple { background: rgba(124, 58, 237, 0.1); color: var(--xv-purple); }
.xv-stat-num { font-size: 26px; font-weight: 800; color: var(--xv-ink); line-height: 1.1; letter-spacing: -0.4px; }
.xv-stat-lbl { font-size: 11px; font-weight: 700; color: var(--xv-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }
/* Homepage quick-action cards: same shell as .xv-stat, rendered as links. */
.xv-stat--link { text-decoration: none; color: inherit; cursor: pointer; }
.xv-stat--link:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 2px; }
.xv-stat-title { font-size: 16.5px; font-weight: 800; color: var(--xv-ink); line-height: 1.3; letter-spacing: -0.2px; }
.xv-stat-sub { font-size: 12.5px; color: var(--xv-muted); margin-top: 3px; line-height: 1.45; }
/* Compact navigation tiles: tighter padding, yellow accents, trailing arrow. */
.xv-stat--link { min-height: 0; padding: 14px 16px; gap: 12px; align-items: center; background: #FFFFFF; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease; }
.xv-stat--link:hover { border-color: #F5B301; background: #FEF9E7; }
.xv-stat--link:active { border-color: #F5B301; background: #FEF9E7; }
.xv-stat--link .xv-stat-icon { width: 42px; height: 42px; background: rgba(245, 179, 1, 0.14); color: #F5B301; }
.xv-stat--link .xv-stat-icon svg { width: 20px; height: 20px; }
.xv-stat--link .xv-stat-title { font-size: 15px; }
.xv-stat--link .xv-stat-sub { font-size: 12px; }
.xv-stat--link > div:nth-child(2) { min-width: 0; }
.xv-stat-arrow { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #F5B301; transition: transform 0.18s ease; }
.xv-stat-arrow svg { width: 16px; height: 16px; display: block; }
.xv-stat--link:hover .xv-stat-arrow { transform: translateX(3px); }

/* ================= SECTIONS ================= */
.xv-section { padding: 64px 0; }
/* Vote page layout styles live in the dedicated section at the end of this
   file; its content begins directly below the shared sticky navbar. */
.xv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.xv-sec-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.xv-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--xv-green-dark); }
.xv-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--xv-green); border-radius: 0; display: inline-block; }
.xv-sec-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--xv-ink); margin: 0 0 10px; letter-spacing: -0.5px; font-family: var(--xv-font); }
.xv-sec-sub { font-size: 15px; line-height: 1.65; color: var(--xv-muted); margin: 0; }
.xv-sec-count { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--xv-faint); }

/* ================= CARDS ================= */
.xv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.xv-card { background: var(--xv-card); border-radius: 0; overflow: hidden; box-shadow: var(--xv-shadow); display: flex; flex-direction: column; border: 1px solid var(--xv-line); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; text-decoration: none; color: inherit; min-width: 0; }
a.xv-card:hover, a.xv-card:focus-visible { transform: translateY(-5px); border-color: #a7f3d0; box-shadow: var(--xv-shadow-lg); }
a.xv-card:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 3px; }
.xv-card-img { height: 176px; flex-shrink: 0; position: relative; overflow: hidden; background: linear-gradient(135deg, #e8eef4, #f1f5f9); }
.xv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
a.xv-card:hover .xv-card-img img { transform: scale(1.04); }
.xv-card-img-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.xv-card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.xv-card-title { font-size: 16.5px; font-weight: 800; color: var(--xv-ink); margin: 0 0 8px; line-height: 1.4; letter-spacing: -0.2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xv-card-desc { font-size: 13.5px; color: var(--xv-muted); line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xv-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.xv-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--xv-slate); background: #f8fafc; border: 1px solid #edf1f6; border-radius: 0; padding: 6px 10px; }
.xv-meta-item svg { width: 13px; height: 13px; stroke: var(--xv-green-dark); flex-shrink: 0; }
.xv-meta-item--cost { background: rgba(16, 185, 129, 0.1); color: #047857; font-weight: 700; border-color: rgba(16, 185, 129, 0.2); }
.xv-card-foot { margin-top: auto; }

/* ================= BADGES ================= */
.xv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 0; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
.xv-badge::before { content: ''; width: 6px; height: 6px; border-radius: 0; background: currentColor; }
.xv-badge--active, .xv-badge--published, .xv-badge--success { background: var(--xv-green); color: #fff; }
.xv-badge--upcoming, .xv-badge--pending { background: var(--xv-amber); color: #fff; }
.xv-badge--live { background: #ef4444; color: #fff; }
.xv-badge--closed, .xv-badge--ended, .xv-badge--failed { background: #64748b; color: #fff; }
/* Voting-closed keeps the shared closed shape but uses the red closed-state
   treatment (white text + white dot via currentColor). Ticketing closed, sold
   out, ended and cancelled keep the gray treatment above. */
.xv-badge--voting-closed { background: #DC2626; color: #fff; }
.xv-badge--locked, .xv-badge--draft { background: #e2e8f0; color: var(--xv-slate); }
.xv-badge--on-image { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); }

/* ================= FORMS ================= */
.xv-field { margin-bottom: 16px; }
.xv-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--xv-slate); margin-bottom: 7px; }
.xv-label .req { color: var(--xv-red); }
.xv-label .opt { color: var(--xv-faint); font-weight: 500; }
.xv-input, .xv-select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: var(--xv-radius-sm); font-size: 14px; color: var(--xv-ink); background: #f8fafc; outline: none; font-family: var(--xv-font); transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
textarea.xv-input { height: auto; padding: 12px 14px; resize: vertical; }
.xv-input:focus, .xv-select:focus { border-color: var(--xv-green); background: #fff; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12); }
.xv-select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.xv-searchbar { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); padding: 10px; box-shadow: var(--xv-shadow); }
.xv-search-field { flex: 1; min-width: 0; position: relative; }
.xv-search-field > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--xv-faint); pointer-events: none; }
.xv-search-field .xv-input { padding-left: 44px; border-color: transparent; }
.xv-filter-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 6px 6px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 0; font-size: 12.5px; color: var(--xv-slate); }
.xv-filter-tag-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--xv-faint); }
.xv-filter-tag-value { font-size: 13px; font-weight: 700; color: var(--xv-ink); }
.xv-filter-tag-sep { font-size: 12px; color: #cbd5e1; }
.xv-filter-tag a, .xv-filter-tag-clear { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 0; background: #f1f5f9; color: var(--xv-slate); text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.xv-filter-tag a:hover, .xv-filter-tag-clear:hover { background: #fee2e2; color: #b91c1c; }
.xv-filter-tag a:focus-visible, .xv-filter-tag-clear:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 2px; }
.xv-filter-row { margin-top: 16px; }

/* ================= PAGE HEAD ================= */
.xv-pagehead { background: linear-gradient(120deg, var(--xv-navy) 0%, var(--xv-navy-2) 55%, var(--xv-teal) 100%); position: relative; overflow: hidden; }
.xv-pagehead::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.xv-pagehead-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px; position: relative; z-index: 1; }
.xv-pagehead-inner--center { text-align: center; max-width: 720px; }
.xv-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.65); text-decoration: none; margin-bottom: 16px; }
.xv-crumb:hover { color: #fff; }
.xv-pagehead h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: #fff; margin: 0 0 10px; letter-spacing: -0.6px; }
.xv-pagehead p { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.75); margin: 0; }

/* ================= TABLES ================= */
.xv-table-wrap { background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); overflow-x: auto; box-shadow: var(--xv-shadow); }
table.xv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.xv-table thead th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--xv-muted); background: #f8fafc; padding: 12px 16px; border-bottom: 1px solid var(--xv-line); white-space: nowrap; }
.xv-table tbody td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; color: var(--xv-ink); vertical-align: middle; }
.xv-table tbody tr:last-child td { border-bottom: none; }
.xv-table tbody tr:hover td { background: #f8fafc; }

/* ================= ALERTS ================= */
.xv-alert { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--xv-radius-sm); padding: 13px 16px; font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; border: 1px solid; }
.xv-alert--success { background: var(--xv-green-soft); border-color: #bbf7d0; color: #065f46; }
.xv-alert--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.xv-alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.xv-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ================= EMPTY ================= */
.xv-empty { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 0; max-width: 560px; margin: 0 auto; }
.xv-empty-icon { width: 68px; height: 68px; border-radius: 0; margin: 0 auto 18px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.xv-empty h3 { font-size: 18px; font-weight: 800; color: var(--xv-ink); margin: 0 0 8px; }
.xv-empty p { font-size: 14px; line-height: 1.6; color: var(--xv-muted); margin: 0 0 22px; }
.xv-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ================= STATUS PAGES ================= */
.xv-status-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--xv-bg); font-family: var(--xv-font); }
.xv-status-card { max-width: 520px; width: 100%; background: #fff; border-radius: 0; border: 1px solid var(--xv-line); box-shadow: var(--xv-shadow-lg); overflow: hidden; }
.xv-status-head { padding: 36px 32px 28px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.xv-status-head--success { background: linear-gradient(135deg, var(--xv-green-dark), var(--xv-green)); }
.xv-status-head--failed { background: linear-gradient(135deg, #7f1d1d, var(--xv-red)); }
.xv-status-icon { width: 62px; height: 62px; border-radius: 0; background: rgba(255, 255, 255, 0.2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.xv-status-head h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.xv-status-head p { margin: 0; opacity: 0.88; font-size: 13.5px; }
.xv-status-body { padding: 24px 28px; }
.xv-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.xv-kv:last-child { border-bottom: none; }
.xv-kv dt { color: var(--xv-muted); font-weight: 500; }
.xv-kv dd { margin: 0; color: var(--xv-ink); font-weight: 600; text-align: right; word-break: break-word; }
.xv-status-actions { padding: 0 28px 26px; display: flex; gap: 10px; }
.xv-status-actions .xv-btn { flex: 1; }

/* ================= AUTH ================= */
.xv-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-family: var(--xv-font); }
.xv-auth-brand { background: linear-gradient(140deg, var(--xv-navy) 0%, var(--xv-navy-2) 55%, var(--xv-teal) 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.xv-auth-brand::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.xv-auth-brand > * { position: relative; z-index: 1; }
.xv-auth-logo { height: 64px; width: auto; margin-bottom: 20px; }
.xv-auth-brand h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.5px; }
.xv-auth-brand p { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; line-height: 1.65; margin: 0 0 28px; max-width: 380px; }
.xv-auth-stats { display: flex; gap: 28px; }
.xv-auth-stats div { display: flex; flex-direction: column; }
.xv-auth-stats strong { font-size: 24px; font-weight: 800; }
.xv-auth-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.6); }
.xv-auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.xv-auth-box { width: 100%; max-width: 400px; }
.xv-auth-box h2 { font-size: 24px; font-weight: 800; color: var(--xv-ink); margin: 0 0 6px; letter-spacing: -0.4px; }
.xv-auth-box > p { font-size: 14px; color: var(--xv-muted); margin: 0 0 26px; }

/* ================= MISC ================= */
.xv-muted { color: var(--xv-muted); }
.xv-center { text-align: center; }
.xv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 2px; }

@keyframes xvPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes xvFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .xv-hero-inner { gap: 40px; }
  .xv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xv-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .xv-auth { grid-template-columns: 1fr; }
  .xv-auth-brand { padding: 40px 28px; }
  .xv-auth-stats { gap: 20px; }
}
@media (max-width: 860px) {
  .xv-hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .xv-panel { justify-self: stretch; max-width: none; }
}
@media (max-width: 640px) {
  .xv-hero-inner { padding: 40px 20px 84px; }
  .xv-hero-actions { display: grid; grid-template-columns: 1fr; }
  .xv-hero-actions .xv-btn { width: 100%; }
  .xv-stats-inner { padding: 0 16px; gap: 12px; }
  .xv-stat-num { font-size: 21px; }
  .xv-wrap { padding: 0 16px; }
  .xv-grid { grid-template-columns: 1fr; gap: 18px; }
  .xv-searchbar { flex-wrap: wrap; }
  .xv-search-field { flex: 1 1 100%; }
  .xv-status-actions { flex-direction: column; }
  .xv-section { padding: 48px 0; }
}
@media (max-width: 560px) {
  .xv-stats-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ================= EVENT VIEW (hook classes preserved for voting JS) ================= */
.ev-v-hero { background: linear-gradient(120deg, var(--xv-navy) 0%, var(--xv-navy-2) 55%, var(--xv-teal) 100%); position: relative; overflow: hidden; }
.ev-v-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.ev-v-hero-inner { max-width: 1200px; margin: 0 auto; padding: 40px 24px 56px; position: relative; z-index: 1; }
.ev-v-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.ev-v-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 600; text-decoration: none; }
.ev-v-back:hover { color: #fff; }
.ev-v-status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
.ev-v-status-badge--active { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(52, 211, 153, 0.4); color: #34d399; }
.ev-v-status-badge--paused { background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; }
.ev-v-status-badge--closed { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.ev-v-status-dot { width: 7px; height: 7px; border-radius: 0; background: currentColor; animation: xvPulse 2s infinite; }
.ev-v-hero-content { max-width: 760px; }
.ev-v-hero-text { max-width: 760px; }
/* Disabled/secondary vote button (voting paused state, class hook kept for JS) */
.ev-btn--secondary { background: #e2e8f0 !important; color: #94a3b8 !important; cursor: not-allowed !important; }
.ev-v-hero-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: #fff; margin: 0 0 10px; letter-spacing: -0.6px; line-height: 1.2; }
.ev-v-hero-desc { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.75); margin: 0 0 16px; }
.ev-v-hero-dates { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ev-v-hero-date { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.ev-v-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.ev-v-hero-stat { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; padding: 12px 20px; text-align: center; min-width: 110px; }
.ev-v-hero-stat-num { font-size: 22px; font-weight: 800; color: #fff; }
.ev-v-hero-stat-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.ev-v-paused { display: flex; align-items: center; gap: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 0; padding: 14px 18px; font-size: 13.5px; font-weight: 600; margin: 18px 0 0; }
.ev-v-how-bar { background: #fff; border-bottom: 1px solid var(--xv-line); }
.ev-v-how-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; gap: 26px; flex-wrap: wrap; }
.ev-v-how-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--xv-slate); }
.ev-v-how-item svg { color: var(--xv-green-dark); flex-shrink: 0; }
.ev-v-search { padding: 26px 0 6px; }
.ev-v-search-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ev-v-search-box { display: flex; max-width: 420px; background: #fff; border: 1px solid var(--xv-line); border-radius: 0; padding: 6px; box-shadow: var(--xv-shadow); }
.ev-v-search-box input { flex: 1; border: none; outline: none; padding: 0 14px; font-size: 14px; color: var(--xv-ink); background: transparent; min-width: 0; font-family: var(--xv-font); }
.ev-v-search-btn { width: 40px; height: 40px; border: none; border-radius: 0; background: var(--xv-green); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-v-search-btn:hover { background: var(--xv-green-dark); }
.ev-v-section { padding: 16px 0 56px; }
.ev-v-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ev-v-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ev-v-card { background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); overflow: hidden; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.ev-v-card:hover { transform: translateY(-3px); box-shadow: var(--xv-shadow-lg); border-color: #a7f3d0; }
.ev-v-card-img { height: 120px; background-size: cover; background-position: center; }
.ev-v-card-body { padding: 16px 18px; }
.ev-v-card-name { font-size: 14.5px; font-weight: 800; color: var(--xv-ink); line-height: 1.4; }
.ev-v-card-sub { font-size: 12px; color: var(--xv-faint); margin-top: 3px; }
.ev-v-empty { text-align: center; padding: 36px 20px; color: var(--xv-faint); font-size: 13.5px; }
.ev-v-back-cats { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--xv-line); color: var(--xv-slate); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 9px 16px; border-radius: 0; margin-bottom: 18px; font-family: var(--xv-font); }
.ev-v-back-cats:hover { border-color: #cbd5e1; color: var(--xv-ink); }
.ev-v-nominee-head { text-align: center; margin-bottom: 24px; }
.ev-v-nominee-head h2 { font-size: 22px; font-weight: 800; color: var(--xv-ink); margin: 0 0 4px; }
.ev-v-nominee-head p { font-size: 13px; color: var(--xv-muted); margin: 0; }
.ev-v-nominee-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
/* Nominee cards injected by voting JS â€” classes must stay identical */
.ev-view-nominee { background: #fff !important; border-radius: 0 !important; border: 1px solid var(--xv-line) !important; padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 1 220px; max-width: 240px; box-shadow: var(--xv-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease !important; }
.ev-view-nominee:hover { transform: translateY(-3px) !important; box-shadow: var(--xv-shadow-lg) !important; }
.ev-view-nominee--empty { flex: 0 0 100%; max-width: none; box-shadow: none !important; border-style: dashed !important; }
.ev-view-nominee-avatar { width: 76px; height: 76px; border-radius: 0; overflow: hidden; border: 3px solid #d1fae5; flex-shrink: 0; background: #f1f5f9; }
.ev-view-nominee-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-view-nominee-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
.ev-view-nominee-name { font-size: 15.5px !important; font-weight: 800 !important; color: var(--xv-ink) !important; margin: 2px 0 0 !important; }
/* --- Shared code badge: event, category & nominee codes (public) --- */
.code-badge { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: 0.6px; color: #1e293b; background: #eef2f7; border: 1px solid #dbe3ec; border-radius: 6px; padding: 4px 9px; white-space: nowrap; vertical-align: middle; }
.code-badge--nominee { color: #047857; background: #ecfdf5; border-color: #bbf0d0; }
.code-badge--stacked { margin-top: 5px; }
.ev-view-nominee-bio { font-size: 12px !important; color: var(--xv-faint) !important; margin: 0 !important; line-height: 1.5; }
@media (max-width: 1024px) { .ev-v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= EVENT CATEGORIES PAGE (event_view.php only) =================
   Page-scoped: every selector is prefixed with body.ev-cats-page or a
   .ev-cats-* class that only exists on the category section of event_view.php,
   so no other public page inherits these rules. Visual reference: light grey
   canvas, white header panel with a yellow spine, centred search, four-up
   horizontal category cards. Structural hooks used by the page JS
   (#categoryGrid, .ev-v-card, #categorySearch, #categoryEmpty, .xv-section)
   are intentionally preserved. */
body.ev-cats-page { background: #F8FAFC; }
/* Constrained canvas: 1128px of usable width at full size, matching the
   reference. Nominations and alerts on this page share the same edges. */
body.ev-cats-page .xv-wrap { max-width: 1176px; }

.ev-cats-section { padding: 26px 0 44px; }
.ev-cats-wrap { max-width: 1176px; margin: 0 auto; padding: 0 24px; }

/* Header panel */
.ev-cats-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #E3E8EE;
  border-left: 5px solid #FFC400;
  padding: 15px 22px 15px 18px;
  margin: 0 0 16px;
}
.ev-cats-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: #FFC400;
  text-decoration: none;
}
.ev-cats-back:hover,
.ev-cats-back:focus-visible { color: #FFC400; }
.ev-cats-back svg { width: 22px; height: 22px; display: block; }
.ev-cats-title {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 23px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #263746;
  overflow-wrap: anywhere;
}

/* Search */
.ev-cats-search { display: flex; justify-content: center; margin: 0 0 10px; }
.ev-cats-search-box {
  display: flex;
  width: 100%;
  max-width: 330px;
  background: #fff;
  border: 1px solid #E3E8EE;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.ev-cats-search-box:focus-within { border-color: #0f766e; }
.ev-cats-search-box input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  color: #263746;
  font-family: var(--xv-font);
}
.ev-cats-search-box input::placeholder { color: #94A3B8; }
.ev-cats-search-btn {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 0;
  border-radius: 0;
  background: #FFC400;
  color: #263746;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ev-cats-search-btn:hover,
.ev-cats-search-btn:focus-visible { background: #FFB800; }
.ev-cats-search-btn svg { width: 18px; height: 18px; }

/* Grid + horizontal cards */
.ev-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 17px;
}
.ev-v-card.ev-cats-card {
  display: flex;
  align-items: stretch;
  min-height: 100px;
  background: #fff;
  border: 1px solid #E3E8EE;
  overflow: hidden;
}
.ev-v-card.ev-cats-card:hover {
  transform: translateY(-2px);
  border-color: #FFC400;
  box-shadow: 0 5px 14px rgba(25, 59, 54, 0.08);
}
/* Poster source is 400x442 (0.905). The image box is 86x98 so `contain`
   shows the whole poster with only ~1.5px of letterboxing top and bottom â€”
   no important content is cropped. */
.ev-cats-card-img {
  width: 86px;
  flex: 0 0 86px;
  background-color: #F1F5F9;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.ev-cats-card-img--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F1F5F9, #E3E8EE);
  color: #64748b;
}
.ev-cats-card-img--fallback svg { width: 22px; height: 22px; }
.ev-cats-card-body {
  padding: 10px 12px 10px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
}
.ev-cats-card-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #263746;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.ev-cats-card-sub { font-size: 11px; line-height: 1.35; color: #64748b; margin-top: 2px; }

/* Empty state */
.ev-cats-empty {
  text-align: center;
  padding: 44px 20px;
  color: #64748b;
  font-size: 14px;
  background: #fff;
  border: 1px solid #E3E8EE;
}

/* Back to top â€” yellow square with a dark arrow (this page only) */
.ev-cats-page #evBackToTop {
  border-radius: 0;
  background: #FFC400;
  color: #263746;
  box-shadow: 0 3px 10px rgba(25, 59, 54, 0.22);
}
.ev-cats-page #evBackToTop:hover {
  background: #FFB800;
  color: #263746;
  box-shadow: 0 6px 16px rgba(25, 59, 54, 0.28);
  transform: translateY(-3px);
}

@media (max-width: 1150px) {
  /* Four across would squeeze two-line titles at this width. */
  .ev-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  /* Match the shared .xv-wrap gutter so all sections stay flush. */
  .ev-cats-wrap { padding: 0 20px; }
}
@media (max-width: 899px) {
  .ev-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ev-cats-section { padding: 20px 0 36px; }
  .ev-cats-wrap { padding: 0 20px; }
  .ev-cats-head { gap: 10px; padding: 13px 14px 13px 12px; margin-bottom: 14px; }
  .ev-cats-back { width: 22px; height: 22px; }
  .ev-cats-back svg { width: 20px; height: 20px; }
  .ev-cats-title { font-size: 15px; }
  .ev-cats-search { margin-bottom: 10px; }
  .ev-cats-search-box input { height: 48px; font-size: 13px; }
  .ev-cats-search-btn { width: 48px; height: 48px; flex-basis: 48px; }
  .ev-cats-grid { grid-template-columns: 1fr; gap: 12px; }
  .ev-v-card.ev-cats-card { min-height: 96px; }
  .ev-cats-card-img { width: 80px; flex-basis: 80px; }
  .ev-cats-card-body { padding: 10px 12px 10px 16px; }
  .ev-cats-card-name { font-size: 13px; }
}

/* --- Event details hero: reuses the homepage .xv-featured hero (banner as
   background + dark overlay + left-aligned content). Tighter bottom padding
   than the homepage variant since no stats overlap follows it. Without a
   banner the gradient alone renders, matching the homepage fallback. --- */
.xv-featured--event .xv-featured-inner { padding-top: 56px; padding-bottom: 64px; }
@media (max-width: 860px) {
  .xv-featured--event .xv-featured-inner { padding: 44px 20px 52px; }
}
@media (max-width: 640px) {
  .xv-featured--event .xv-featured-inner { padding: 36px 16px 44px; }
}

/* ================= RESULTS (hook classes preserved for live-refresh JS) ================= */
/* The Results page furniture (hero, stats, search, cards, badges, empty
   state) reuses the shared .xv-* components above. Only results-specific
   internals are styled below. .r-countdown / .r-cat-section / .r-nom-card /
   .r-nom-bar-fill are structural hooks kept for the live-refresh + animation JS. */
.xv-stats-inner--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Results stats always stay 3-up (compact tiles below keep them readable). */
@media (max-width: 720px) { .xv-stats-inner--3 { gap: 10px; } }
@media (max-width: 460px) { .xv-stats-inner--3 { gap: 8px; } }
/* Compact stat tiles so a 3-up row never overflows a 320px viewport. */
@media (max-width: 720px) {
  .xv-stats-inner--3 .xv-stat { padding: 12px 10px; gap: 8px; min-height: 0; flex-direction: column; align-items: flex-start; }
  .xv-stats-inner--3 .xv-stat-icon { width: 30px; height: 30px; }
  .xv-stats-inner--3 .xv-stat-icon svg { width: 16px; height: 16px; }
  .xv-stats-inner--3 .xv-stat-num { font-size: 18px; letter-spacing: -0.2px; }
  .xv-stats-inner--3 .xv-stat-lbl { font-size: 9.5px; letter-spacing: 0.4px; }
}
@media (max-width: 460px) {
  .xv-stats-inner--3 .xv-stat { padding: 10px 8px; }
  .xv-stats-inner--3 .xv-stat-num { font-size: 16px; overflow-wrap: anywhere; }
  .xv-stats-inner--3 .xv-stat > div:last-child { min-width: 0; }
}

/* --- Slim results hero (single event): back link left, heading truly centered,
   live badge right. The 1fr/auto/1fr grid keeps the heading centered even
   though the side controls differ in width. --- */
.r-head--slim .xv-pagehead-inner { min-height: 165px; padding: 44px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 20px; }
.r-head--slim h1 { margin: 0; grid-column: 2; text-align: center; }
.r-head--slim .r-head-back { grid-column: 1; justify-self: start; margin: 0; color: #fff; white-space: nowrap; }
.r-head--slim .r-head-back:hover { color: #fff; text-decoration: underline; }
.r-head--slim .r-head-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.r-head--slim .r-head-back:active { opacity: 0.8; }
.r-head--slim .r-live-indicator { grid-column: 3; justify-self: end; }
@media (max-width: 640px) {
  .r-head--slim .xv-pagehead-inner { min-height: 110px; padding: 36px 16px; grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .r-head--slim .r-head-back { grid-column: 1; grid-row: 1; }
  .r-head--slim .r-live-indicator { grid-column: 2; grid-row: 1; }
  .r-head--slim h1 { grid-column: 1 / -1; grid-row: 2; font-size: 24px; }
}
.r-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #047857; background: #dcfce7; border: 1px solid #86efac; padding: 4px 10px; }
.r-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,0.6); animation: rLivePulse 1.8s infinite; }
@keyframes rLivePulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
/* Red "LIVE RESULTS" indicator (reference-design accent) */
.r-live-indicator { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: #dc2626; padding: 5px 11px; }
.r-live-indicator-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: rLivePulseRed 1.8s infinite; }
@keyframes rLivePulseRed { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) {
  .r-live-indicator-dot { animation: none; }
}
.r-head-meta-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,0.82); }
.r-head-meta-item i { color: #6ee7b7; }
.r-head-meta-item strong { color: #fff; font-variant-numeric: tabular-nums; }
.r-head-meta-end { margin-top: 2px; }
.r-official-indicator { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: #b7791f; padding: 5px 11px; }
.r-refresh-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.38); padding: 8px 16px; border-radius: 0; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.r-refresh-btn:hover { background: rgba(255,255,255,0.24); border-color: rgba(255,255,255,0.6); }
.r-refresh-btn:disabled { opacity: 0.6; cursor: default; }
.r-refresh-btn.is-busy i { animation: rSpin 0.9s linear infinite; }
@keyframes rSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* --- Two-column category grid (one column on narrow screens) --- */
.r-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; width: 100%; max-width: 100%; }

/* Results containers must span the same width as the summary stat cards.
   `body.ev-page` is a column flexbox, so a `.xv-wrap` with `margin: 0 auto`
   shrink-to-fits instead of stretching to its max-width. Forcing width:100%
   makes it fill its parent; `.xv-wrap`'s own max-width:1200px still applies,
   so it matches `.xv-stats-inner` exactly. Deliberately do NOT set max-width
   here, or the 1200px cap would be lost. */
.r-wrap { width: 100%; }

/* --- Category card --- */
.r-cat-section { background: #fff; border-radius: 0; margin-bottom: 0; box-shadow: 0 1px 2px rgba(15,23,42,0.04); border: 1px solid var(--xv-line); overflow: hidden; }
.r-cat-section--official { border-top: 3px solid #b7791f; }
.r-cat-section--live { border-top: 3px solid var(--xv-green-dark); }
/* Solid green header with white uppercase text (reference design). */
.r-cat-header { background: linear-gradient(135deg, #047857 0%, #0f9f72 52%, #34d399 100%); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.r-cat-header h3 { font-size: 15px; font-weight: 800; margin: 0; color: #fff; line-height: 1.35; overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: 0.3px; }
.r-cat-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r-cat-votes { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.r-cat-votes strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.r-cat-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--xv-slate); font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 0; white-space: nowrap; }
.r-cat-pill strong { font-size: 14px; font-weight: 800; color: var(--xv-ink); font-variant-numeric: tabular-nums; }

/* Nominee leaderboard cards: photo-led, four across on desktop. */
.r-nom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 230px)); justify-content: center; gap: 12px; padding: 14px; }
.r-nom-card { background: #fff; border: 1px solid #e8edf3; border-radius: 18px; overflow: hidden; box-shadow: 0 5px 18px rgba(15,23,42,0.07); display: flex; flex-direction: column; min-width: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.r-nom-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(4,28,58,0.13); }
.r-nom-card.rank-1 { border-color: #F5B301; box-shadow: 0 0 0 1px #F5B301, 0 4px 14px rgba(245,179,1,0.18); }
.r-nom-photo { position: relative; height: auto; aspect-ratio: 1 / 1.05; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #e8eef4, #f1f5f9); flex-shrink: 0; }
.r-nom-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; display: block; }
.r-nom-rank { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: center; color: #fff; padding: 7px 10px 6px; border-radius: 10px; line-height: 1; z-index: 2; box-shadow: 0 3px 8px rgba(15,23,42,0.18); }
.r-nom-rank i { font-size: 13px; margin-bottom: 2px; }
.r-nom-rank b { font-size: 24px; font-weight: 800; }
.r-nom-rank b sup { font-size: 11px; font-weight: 700; margin-left: 1px; }
.r-nom-rank small { font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.r-nom-rank.rank-1 { background: #F5B301; }
.r-nom-rank.rank-2 { background: #94A3B8; }
.r-nom-rank.rank-3 { background: #C2703D; }
.r-nom-rank.rank-other { background: #64748B; }
.r-nom-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 13px 14px 14px; min-width: 0; min-height: 104px; background: #fff; }
.r-nom-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.r-nom-name { font-size: 15px; font-weight: 800; color: var(--xv-ink); line-height: 1.3; overflow-wrap: anywhere; flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-nom-votes { text-align: right; flex-shrink: 0; }
.r-nom-votes strong { display: block; font-size: clamp(15px, 1.5vw, 18px); font-weight: 800; color: var(--xv-green-dark); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-nom-votes span { display: block; font-size: 10px; color: var(--xv-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.r-nom-meter { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 2px; }
.r-nom-bar { flex: 1; min-width: 0; height: 8px; background: #e8eef4; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,23,42,0.08); }
.r-nom-bar-fill { height: 100%; min-width: 3px; border-radius: 999px; background: linear-gradient(90deg, #34d399, var(--xv-green-dark)); transition: width 1s ease; }
.r-nom-pct { font-size: 13px; font-weight: 800; color: var(--xv-green-dark); flex-shrink: 0; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .r-nom-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 215px)); } }
@media (max-width: 860px) { .r-nom-grid { grid-template-columns: repeat(2, minmax(170px, 215px)); } }
@media (max-width: 560px) { .r-nom-grid { grid-template-columns: repeat(2, minmax(0, 180px)); padding: 10px; gap: 10px; } .r-nom-photo { margin: 6px 6px 0; border-radius: 12px; } .r-nom-body { padding: 10px; min-height: 94px; } .r-nom-name { font-size: 13px; } .r-nom-votes strong { font-size: 15px; } }
@media (max-width: 390px) { .r-nom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Small screens get a smaller, compact rank marker. It stays in the quiet
   upper corner of the image instead of growing over a nominee's face. */
@media (max-width: 560px) {
  .r-nom-rank { top: 7px; left: 7px; padding: 5px 7px 5px; border-radius: 8px; }
  .r-nom-rank i { font-size: 10px; }
  .r-nom-rank b { font-size: 18px; }
  .r-nom-rank b sup { font-size: 8px; }
  .r-nom-rank small { font-size: 7px; letter-spacing: .7px; }
  .r-cat-header { padding: 12px 13px; gap: 9px; }
  .r-cat-header h3 { font-size: 12px; max-width: 100%; }
  .r-cat-stats { width: 100%; justify-content: space-between; gap: 6px; }
  .r-cat-votes { font-size: 10px; }
  .r-cat-votes strong { font-size: 14px; }
  .r-cat-pill { font-size: 9px; padding: 5px 7px; gap: 4px; }
  .r-cat-pill strong { font-size: 11px; }
}
.r-cat-empty { padding: 14px 16px; font-size: 12.5px; color: var(--xv-muted); display: flex; align-items: center; gap: 8px; background: #fafbfc; border-top: 1px solid #f1f5f9; }
.r-cat-empty i { color: #94a3b8; }
.r-countdown { font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
  .r-cat-header { padding: 12px; }
  .r-nom-grid { padding: 10px; gap: 10px; }
  .r-nom-pct { min-width: 40px; font-size: 12px; }
}
@media (max-width: 640px) {
  .ev-v-hero-inner { padding: 32px 20px 44px; }
  .ev-v-container, .ev-v-search-inner { padding: 0 16px; }
  .ev-v-grid { grid-template-columns: 1fr; }
  .ev-v-nominee-grid .ev-view-nominee { flex: 0 0 100%; max-width: none; }
}
@media (max-width: 480px) {
  .r-cat-header { padding: 12px; }
}

/* ============================================================
   RESPONSIVE LAYER â€” PUBLIC WEBSITE
   Breakpoints: 1024 / 900 / 768 / 640 / 420
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
img, video, canvas { max-width: 100%; height: auto; }
html { overflow-x: hidden; }
body { max-width: 100%; font-family: var(--xv-font); background: #f8fafc; color: #1e293b; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ============================================================
   PUBLIC STICKY FOOTER â€” shared page shell
   Every public page is a full-viewport flex column: the header
   stays on top, .ev-wrapper (or body content on wrapper-less
   pages like results.php) grows to fill short viewports, and the
   shared footer keeps margin-top:auto so it rests at the bottom
   of the viewport on short pages and flows after content on long
   pages. Footer stays in normal document flow (never fixed).
   Scoped to body.ev-page so admin layouts are never affected.
   ============================================================ */
body.ev-page { min-height: 100vh !important; margin: 0; display: flex; flex-direction: column; }
/* NOTE: !important wins over the inline "min-height:100%" that AdminLTE's
   layout script (dist/js/adminlte.min.js via includes/scripts.php) stamps on
   <body> at runtime. The script is still needed for Bootstrap components, so
   the override â€” not script removal â€” is the safe fix. */
body.ev-page > .ev-wrapper { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
body.ev-page .ev-global-footer { margin-top: auto; flex-shrink: 0; }

@media (max-width: 1024px) {
  .xv-wrap, .xv-hero-inner, .xv-stats-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 768px) {
  .xv-section { padding: 44px 0; }
  .xv-hero-inner { padding: 44px 18px 72px; gap: 32px; }
  .xv-hero-title { font-size: 30px; letter-spacing: -0.5px; }
  .xv-hero-sub { font-size: 14.5px; margin-bottom: 20px; }
  .xv-hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .xv-hero-actions .xv-btn { width: 100%; }
  .xv-hero-trust { gap: 12px; }
  .xv-panel { max-width: none; justify-self: stretch; }
  .xv-sec-title { font-size: 22px; }
  .xv-sec-sub { font-size: 14px; }
  .xv-grid { gap: 16px; }
  .xv-card-img { height: 160px; }
  .xv-stat { min-height: 0; padding: 16px; gap: 12px; }
  .xv-stat-num { font-size: 22px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  table.table th, table.table td { white-space: nowrap; }
  .xv-btn-block { width: 100%; }
}
@media (max-width: 640px) {
  .xv-btn-admin { padding: 8px 12px; font-size: 12px; }
  .xv-hero-title { font-size: 26px; }
  .xv-stats { margin-top: -36px; }
  .xv-stats-inner { gap: 12px; }
  .xv-sec-head { margin-bottom: 24px; }
}
@media (max-width: 420px) {
  .xv-btn-admin { padding: 8px 10px; font-size: 11.5px; }
  .xv-hero-title { font-size: 24px; }
  .xv-btn { min-height: 44px; }
  .xv-card-title { font-size: 15.5px; }
}

/* ============================================================
   PUBLIC SITE â€” expanded components (APA design language)
   ============================================================ */

/* --- Section head variant (title left, controls right) --- */
.xv-sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; text-align: left; max-width: none; margin: 0 0 20px; }

/* --- Carousel --- */
.xv-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
.xv-carousel > .xv-card { flex: 0 0 320px; max-width: 320px; scroll-snap-align: start; }
.xv-carousel::-webkit-scrollbar { height: 8px; }
.xv-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 0; }
.xv-carousel-nav { display: flex; gap: 8px; }
.xv-carousel-btn { width: 42px; height: 42px; border-radius: 0; border: 1px solid var(--xv-line); background: #fff; color: var(--xv-slate); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.xv-carousel-btn:hover { background: #f1f5f9; color: var(--xv-ink); transform: translateY(-1px); }
@media (max-width: 640px) {
  .xv-carousel > .xv-card { flex: 0 0 78%; max-width: 78%; }
  .xv-carousel-nav { display: none; }
}

/* --- Live results / nominations cards --- */
.xv-live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.xv-live-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--xv-line); border-radius: 0; padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--xv-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.xv-live-card:hover { transform: translateY(-3px); box-shadow: var(--xv-shadow-lg); }
.xv-live-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 0; }
.xv-live-pill--nom { background: #ecfdf5; color: #047857; }
.xv-live-pulse { width: 8px; height: 8px; border-radius: 0; background: #ef4444; animation: xvLivePulse 1.6s infinite; }
@keyframes xvLivePulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); } 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.xv-live-card-body h3 { font-size: 15.5px; font-weight: 800; color: var(--xv-ink); margin: 0 0 8px; line-height: 1.35; }
.xv-live-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--xv-green-dark); }
.xv-eyebrow--live { color: #b91c1c; }
.xv-eyebrow--live .xv-dot { width: 7px; height: 7px; border-radius: 0; background: #ef4444; display: inline-block; margin-right: 6px; animation: xvLivePulse 1.6s infinite; }

/* --- FAQ accordion --- */
.xv-faq { display: flex; flex-direction: column; gap: 12px; }
.xv-faq-item { background: #fff; border: 1px solid var(--xv-line); border-radius: 0; overflow: hidden; box-shadow: var(--xv-shadow); }
.xv-faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; font-size: 15px; font-weight: 700; color: var(--xv-ink); }
.xv-faq-q::-webkit-details-marker { display: none; }
.xv-faq-chevron { flex: 0 0 auto; color: var(--xv-muted); transition: transform 0.25s ease; }
.xv-faq-item[open] .xv-faq-chevron { transform: rotate(180deg); }
.xv-faq-item[open] .xv-faq-q { color: var(--xv-green-dark); }
.xv-faq-a { padding: 0 20px 18px; font-size: 14px; line-height: 1.7; color: var(--xv-slate); }

/* --- Alerts --- */
.xv-alert { display: flex; align-items: flex-start; gap: 10px; border-radius: 0; padding: 13px 16px; font-size: 13.5px; line-height: 1.55; margin-bottom: 18px; border: 1px solid transparent; }
.xv-alert--warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.xv-alert--danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.xv-alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #047857; }

/* --- Verify / status lookup --- */
.xv-verify-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-bottom: 22px; }
.xv-verify-form .xv-search-field { flex: 1; min-width: 240px; }
.xv-result-card { border-radius: 0; border: 1px solid var(--xv-line); background: #fff; padding: 22px; box-shadow: var(--xv-shadow); margin-bottom: 18px; }
.xv-result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.xv-result-dot { width: 10px; height: 10px; border-radius: 0; }
.xv-result-status { font-size: 16px; font-weight: 800; }
.xv-result-kind { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--xv-muted); margin-left: auto; }
.xv-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0; }
.xv-result-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--xv-muted); font-weight: 700; margin-bottom: 3px; }
.xv-result-grid dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--xv-ink); overflow-wrap: anywhere; }
.xv-result-card--paid { border-color: #bbf7d0; background: #f0fdf4; }
.xv-result-card--paid .xv-result-dot { background: #22c55e; }
.xv-result-card--paid .xv-result-status { color: #047857; }
.xv-result-card--pending { border-color: #fde68a; background: #fffbeb; }
.xv-result-card--pending .xv-result-dot { background: #f59e0b; }
.xv-result-card--pending .xv-result-status { color: #b45309; }
.xv-result-card--failed { border-color: #fecaca; background: #fef2f2; }
.xv-result-card--failed .xv-result-dot { background: #ef4444; }
.xv-result-card--failed .xv-result-status { color: #b91c1c; }
.xv-result-card--notfound { border-color: #e2e8f0; background: #f8fafc; }
.xv-result-card--notfound .xv-result-dot { background: #94a3b8; }
.xv-result-card--notfound .xv-result-status { color: #475569; }
.xv-verify-help { font-size: 12.5px; color: var(--xv-muted); line-height: 1.6; text-align: center; }

/* --- Public form --- */
.xv-nom-note { display: flex; gap: 10px; align-items: flex-start; background: var(--xv-green-soft); border: 1px solid #bbf7d0; color: #065f46; border-radius: 0; padding: 14px 16px; font-size: 13px; line-height: 1.55; margin-bottom: 20px; }
.xv-nom-note svg { flex-shrink: 0; margin-top: 1px; color: var(--xv-green-dark); }
.xv-nom-form { background: #fff; border: 1px solid var(--xv-line); border-radius: 0; padding: 26px; box-shadow: var(--xv-shadow); }
.xv-form-section { margin-bottom: 24px; }
.xv-form-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--xv-muted); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #eef2f7; }
.xv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xv-field { margin-bottom: 16px; }
.xv-label { display: block; font-size: 13px; font-weight: 600; color: var(--xv-slate); margin-bottom: 7px; }
.xv-label .req { color: #ef4444; }
.xv-label .opt { color: var(--xv-muted); font-weight: 400; }
.xv-input, .xv-select, .xv-textarea { width: 100%; border: 1px solid var(--xv-line); border-radius: 0; padding: 12px 14px; font-size: 14px; font-family: var(--xv-font); color: var(--xv-ink); background: #fff; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.xv-input:focus, .xv-select:focus, .xv-textarea:focus { border-color: var(--xv-green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12); }
.xv-textarea { resize: vertical; min-height: 110px; }
.xv-file { padding: 10px 12px; }
/* Brand-styled file picker button (standard + WebKit fallback). The native
   input stays fully functional and keyboard-operable; only the button face
   is restyled. */
.xv-file::file-selector-button,
.xv-file::-webkit-file-upload-button {
  background: var(--xv-green); border: 1px solid var(--xv-green); border-radius: 0;
  color: #fff; font-family: var(--xv-font); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 18px; margin-right: 12px;
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease;
}
.xv-file:hover::file-selector-button,
.xv-file:hover::-webkit-file-upload-button { background: var(--xv-green-dark); border-color: var(--xv-green-dark); }
.xv-file:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 2px; }
.xv-fee-note { font-size: 12.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 0; padding: 10px 12px; margin: 0; }
@media (max-width: 560px) {
  .xv-form-row { grid-template-columns: 1fr; }
  .xv-nom-form { padding: 18px; }
}

/* --- Prose (Terms) --- */
.xv-prose { background: #fff; border: 1px solid var(--xv-line); border-radius: 0; padding: 32px; box-shadow: var(--xv-shadow); }
.xv-prose h2 { font-size: 17px; font-weight: 800; color: var(--xv-ink); margin: 26px 0 10px; }
.xv-prose h2:first-of-type { margin-top: 0; }
.xv-prose p { font-size: 14px; line-height: 1.75; color: var(--xv-slate); margin: 0 0 12px; }
.xv-prose-updated { font-size: 12.5px; color: var(--xv-muted); margin-bottom: 18px; }
.xv-prose a { color: var(--xv-green-dark); font-weight: 600; }
@media (max-width: 560px) { .xv-prose { padding: 20px; } }

/* --- Search field (shared) --- */
.xv-search-field { position: relative; display: flex; align-items: center; }
.xv-search-field > svg { position: absolute; left: 14px; color: var(--xv-muted); pointer-events: none; }
.xv-search-field .xv-input { padding-left: 42px; }

/* ============================================================
   HOMEPAGE (APA layout v2)
   Featured banner Â· recent-events carousel Â· horizontal event
   cards (image left, info right) Â· two-column body with sidebar.
   ============================================================ */

/* --- Featured event banner (image + dark overlay) --- */
.xv-featured { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--xv-navy) 0%, var(--xv-navy-2) 55%, var(--xv-teal) 100%); }
.xv-featured-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: center top; }
.xv-featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(4, 28, 58, 0.93) 0%, rgba(6, 39, 77, 0.8) 45%, rgba(6, 39, 77, 0.5) 100%); }
.xv-featured-inner { max-width: 1200px; margin: 0 auto; padding: 76px 24px 132px; position: relative; z-index: 2; }
.xv-featured-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -0.6px; margin: 0 0 14px; max-width: 700px; font-family: var(--xv-font); text-transform: uppercase; }
.xv-featured-desc { font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); max-width: 600px; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xv-featured-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 26px; }
.xv-featured-meta > span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.xv-featured-meta svg { color: #6ee7b7; flex-shrink: 0; }
.xv-featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .xv-featured::after { background: linear-gradient(to top, rgba(4, 28, 58, 0.94) 0%, rgba(6, 39, 77, 0.82) 55%, rgba(6, 39, 77, 0.6) 100%); }
  .xv-featured-inner { padding: 52px 20px 120px; }
}
@media (max-width: 640px) {
  .xv-featured-inner { padding: 44px 16px 112px; }
  .xv-featured-title { font-size: 26px; }
  .xv-featured-desc { font-size: 14px; }
}

/* --- Reference-style section heading bar (white, yellow left border, square) --- */
.hp-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; border-radius: 0; padding: 11px 16px; margin: 0 0 18px; }
.hp-bar-title { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.9px; color: var(--xv-ink); line-height: 1.3; }
.hp-bar-nav { display: flex; gap: 8px; }
.hp-nav-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: #F5B301; border: 1px solid #F5B301; border-radius: 0; color: #06243F; cursor: pointer; font-size: 16px; line-height: 1; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.hp-nav-btn:hover { background: #f59e0b; border-color: #f59e0b; color: #06243F; }
.hp-nav-btn:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 2px; }
.hp-nav-btn:disabled { background: #F5B301; border-color: #F5B301; color: #06243F; opacity: 0.45; cursor: not-allowed; }
.hp-viewall { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--xv-green-dark); text-decoration: none; }
.hp-viewall:hover { color: var(--xv-teal); }

/* --- Search: white rectangle + square yellow button --- */
.hp-search { display: flex; align-items: stretch; background: #fff; border: 1px solid #e2e8f0; border-radius: 0; overflow: hidden; margin: 0 0 20px; max-width: 560px; }
.hp-search-input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 14px; font: inherit; font-size: 13.5px; color: var(--xv-ink); background: transparent; }
.hp-search-input::placeholder { color: #94a3b8; }
.hp-search-btn { border: 0; background: #f59e0b; color: #fff; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.6px; padding: 0 20px; cursor: pointer; display: inline-flex; align-items: center; border-radius: 0; transition: background 0.15s ease; }
.hp-search-btn:hover { background: #d97706; color: #fff; }
.hp-search-btn:focus-visible { outline: 2px solid var(--xv-green-dark); outline-offset: -2px; }

/* --- Unified search control: consistent 48px height, focus ring on the
   whole bar, and a proper status dropdown with visible divider + chevron.
   The dropdown stays a native <select> (most reliable keyboard, screen-
   reader and mobile behavior; its OS-rendered popup is never clipped by
   the bar's overflow). Scoped to public search classes only. --- */
.hp-search { min-height: 48px; }
.hp-search:focus-within { border-color: var(--xv-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12); }
.hp-search-select { appearance: none; -webkit-appearance: none; align-self: stretch; max-width: 180px; border: 0; border-left: 1px solid #e2e8f0; border-radius: 0; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding: 0 34px 0 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--xv-ink); cursor: pointer; outline: none; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.hp-search-select:hover { background-color: #f8fafc; }
.hp-search-select:focus { background-color: #f0fdf4; box-shadow: inset 0 0 0 2px var(--xv-green); }
.hp-search-select option { color: var(--xv-ink); background: #fff; }
@media (max-width: 600px) {
  .hp-search { flex-direction: column; align-items: stretch; }
  .hp-search-input { min-height: 46px; }
  .hp-search-select { max-width: none; width: 100%; min-height: 46px; border-left: 0; border-top: 1px solid #e2e8f0; }
  .hp-search-btn { justify-content: center; min-height: 46px; }
}

/* --- Clear button beside the search bar: same 48px centerline as the
   unified control, neutral ghost styling, square corners. Full-width
   under the stacked bar on small screens. --- */
.hp-clear-btn { min-height: 48px; white-space: nowrap; }
.hp-clear-btn:hover { color: var(--xv-ink); border-color: #cbd5e1; }
.hp-clear-btn:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 2px; }
@media (max-width: 600px) {
  .hp-clear-btn { flex: 1 1 100%; justify-content: center; }
}

/* --- Category search box (event_view): same design language â€” unified
   white control, green focus ring, inherited typography. Filter JS untouched. --- */
.ev-v-search-box input { font: inherit; font-size: 14px; color: var(--xv-ink); height: 40px; }
.ev-v-search-box:focus-within { border-color: var(--xv-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12); }
.ev-v-search-btn:focus-visible { outline: 2px solid var(--xv-green-dark); outline-offset: 2px; }

/* --- Ticket/transaction lookup (verify): align button height with the
   48px input so the row reads as one control. Submit behavior untouched. --- */
.xv-verify-form .xv-btn { min-height: 48px; }

/* --- Recent events: wide banner card with overlay caption --- */
.xv-home-block { margin-bottom: 34px; }
.xv-rc-card { flex: 0 0 47%; max-width: 47%; scroll-snap-align: start; position: relative; display: block; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 0; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
a.xv-rc-card:hover, a.xv-rc-card:focus-visible { border-color: #cbd5e1; box-shadow: 0 10px 22px rgba(4, 28, 58, 0.12); }
a.xv-rc-card:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 3px; }
.xv-rc-card-img { height: 180px; position: relative; overflow: hidden; background: linear-gradient(135deg, #e8eef4, #f1f5f9); }
.xv-rc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.xv-rc-card:hover .xv-rc-card-img img { transform: scale(1.04); }
.xv-rc-card-img-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.xv-rc-card-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 16px 14px; background: linear-gradient(to top, rgba(4, 28, 58, 0.92) 0%, rgba(4, 28, 58, 0.55) 55%, rgba(4, 28, 58, 0) 100%); }
.xv-rc-card-cap .xv-badge { border-radius: 0; }
.xv-rc-card-title { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.35; margin: 8px 0 3px; text-shadow: 0 1px 2px rgba(4, 28, 58, 0.35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xv-rc-card-date { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* --- Horizontal event card (image left Â· stacked info right) --- */
.xv-hgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.xv-hcard { display: flex; align-items: stretch; background: #fff; border: 1px solid #e2e8f0; border-radius: 0; overflow: hidden; text-decoration: none; color: inherit; min-width: 0; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
a.xv-hcard:hover, a.xv-hcard:focus-visible { border-color: #cbd5e1; box-shadow: 0 8px 18px rgba(4, 28, 58, 0.08); }
a.xv-hcard:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 3px; }
.xv-hcard-img { flex: 0 0 170px; width: 170px; min-height: 100%; position: relative; background: linear-gradient(135deg, #e8eef4, #f1f5f9); }
.xv-hcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xv-hcard-img-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.xv-hcard-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.xv-hcard-body .xv-badge { border-radius: 0; padding: 4px 8px; font-size: 10px; letter-spacing: 0.6px; }
.xv-hcard-when { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--xv-muted); }
.xv-hcard-when svg { color: var(--xv-green-dark); flex-shrink: 0; }
.xv-hcard-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; color: var(--xv-ink); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xv-hcard-desc { font-size: 12.5px; color: var(--xv-muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Homepage two-column layout (2/3 main + 1/3 sidebar) --- */
.xv-home-cols2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.xv-home-main { min-width: 0; container-type: inline-size; }
.hp-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; position: sticky; top: 92px; }
@media (max-width: 1024px) {
  .xv-home-cols2 { grid-template-columns: minmax(0, 1fr); }
  .hp-side { position: static; }
}

/* --- Sidebar panels --- */
.hp-side-block { background: #fff; border: 1px solid #e2e8f0; border-radius: 0; min-width: 0; }
.hp-side-block > .hp-bar { margin: 0; border: 0; border-bottom: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; }
/* --- Sidebar auto-scrolling event carousels (Ticketing / Voting) ---
   One compact card per view; a clipped horizontal track slides between cards.
   Cards share the panel's banner height so the panels never jump. */
.sb-viewport { position: relative; overflow: hidden; }
.sb-track { display: flex; align-items: stretch; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.sb-card { flex: 0 0 100%; max-width: 100%; min-width: 0; }
.sb-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.sb-card-link:focus-visible { outline: 2px solid var(--xv-green); outline-offset: -2px; }
.sb-card-img { position: relative; height: 132px; overflow: hidden; background: linear-gradient(135deg, #e8eef4, #f1f5f9); }
.sb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.sb-card-link:hover .sb-card-img img { transform: scale(1.04); }
.sb-card-img-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sb-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 13px 15px 15px; }
.sb-card-body .xv-badge { padding: 4px 8px; font-size: 10px; letter-spacing: 0.6px; }
.sb-card-title { font-size: 14px; font-weight: 800; color: var(--xv-ink); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sb-card-link:hover .sb-card-title { color: var(--xv-green-dark); }
.sb-card-date { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--xv-muted); }
.sb-card-date svg { color: var(--xv-green-dark); flex-shrink: 0; }
.sb-card-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; background: var(--xv-green-dark); padding: 7px 12px; border-radius: 0; transition: background 0.15s ease; }
.sb-card-link:hover .sb-card-cta { background: var(--xv-teal); }
.sb-empty { padding: 18px 16px 20px; }
.sb-empty p { margin: 0; font-size: 12.5px; color: var(--xv-muted); line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
  .sb-track { transition: none; }
}

/* --- Square corners on everything below the hero --- */
.hp-sq, .hp-sq *, .hp-sq *::before, .hp-sq *::after { border-radius: 0 !important; }

/* --- Horizontal card / grid responsive --- */
@media (max-width: 1180px) {
  .xv-hcard-img { flex-basis: 150px; width: 150px; }
}
@media (max-width: 1024px) {
  .xv-hcard-img { flex-basis: 170px; width: 170px; }
}
@media (max-width: 640px) {
  .xv-hcard-img { flex-basis: 120px; width: 120px; }
  .xv-hcard-body { padding: 13px 14px; }
  .xv-hcard-desc { font-size: 12px; }
  .xv-rc-card-img { height: 150px; }
  .xv-carousel > .xv-rc-card { flex: 0 0 78%; max-width: 78%; }
}
@media (max-width: 420px) {
  .xv-hcard-img { flex-basis: 100px; width: 100px; }
  .xv-hcard-title { font-size: 13px; }
  .xv-hcard-desc { display: none; }
  .xv-carousel > .xv-rc-card { flex: 0 0 84%; max-width: 84%; }
}

/* The event grid responds to the MAIN column's width (container query):
   two columns only when the main column has room, otherwise one clean row. */
@container (min-width: 700px) {
  .xv-hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xv-hcard-img { flex-basis: 138px; width: 138px; }
  .xv-hcard-body { padding: 13px 14px; }
  .xv-hcard-title { font-size: 12.5px; letter-spacing: 0.2px; }
}


/* --- Site-wide square skin: restore approved rounding for nav + homepage hero --- */
.xv-nav .xv-btn, .xv-featured .xv-btn { border-radius: 8px; }
.xv-nav .xv-menu-toggle { border-radius: 0 !important; }

/* --- Heading bar helpers (homepage .hp-bar pattern reused site-wide) --- */
.hp-bar-count { font-size: 12px; font-weight: 700; color: var(--xv-muted); text-transform: none; letter-spacing: 0.2px; }
.hp-sub { margin: -6px 0 18px; font-size: 13.5px; line-height: 1.6; color: var(--xv-muted); max-width: 680px; }

/* ============================================================
   HOMEPAGE HERO EVENT SLIDER
   The approved featured-banner design is unchanged (height, gradient
   overlay, typography, buttons, spacing). These rules only layer the
   slide behaviour on top: slides stack in one grid cell, the active
   slide fades in over 0.6s, and arrows + square progress indicators
   sit above the hero without altering how it renders.
   ============================================================ */
.xv-hero-slides { position: relative; z-index: 1; display: grid; }
.xv-hero-slide { grid-area: 1 / 1; min-width: 0; position: relative; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.6s ease, visibility 0.6s ease; }
.xv-hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.xv-hero-slide::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to right, rgba(4, 28, 58, 0.93) 0%, rgba(6, 39, 77, 0.8) 45%, rgba(6, 39, 77, 0.5) 100%); }
.xv-hero-slide .xv-featured-bg { background-position: center 18%; }
.xv-hero-status { margin-bottom: 16px; }

.xv-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #F5B301; border: 1px solid #F5B301; color: #06243F; cursor: pointer; border-radius: 8px; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.xv-hero-arrow:hover { background: #f59e0b; border-color: #f59e0b; color: #06243F; }
.xv-hero-arrow:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.xv-hero-arrow--prev { left: 18px; }
.xv-hero-arrow--next { right: 18px; }

.xv-hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; }
.xv-hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: background 0.15s ease, width 0.25s ease; }
.xv-hero-dot:hover { background: rgba(255, 255, 255, 0.75); }
.xv-hero-dot.is-active { width: 26px; background: #f59e0b; }
.xv-hero-dot:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

@media (max-width: 860px) {
  .xv-hero-slide::after { background: linear-gradient(to top, rgba(4, 28, 58, 0.94) 0%, rgba(6, 39, 77, 0.82) 55%, rgba(6, 39, 77, 0.6) 100%); }
  .xv-hero-slide .xv-featured-bg { background-position: center 22%; }
}
@media (max-width: 640px) {
  .xv-hero-arrow { width: 38px; height: 38px; }
  .xv-hero-arrow--prev { left: 10px; }
  .xv-hero-arrow--next { right: 10px; }
  .xv-hero-dots { bottom: 22px; }
  .xv-hero-status { margin-bottom: 12px; }
  .xv-hero-slide .xv-featured-bg { background-position: center 26%; }
}
@media (prefers-reduced-motion: reduce) {
  .xv-hero-slide { transition: none; }
  .xv-hero-dot { transition: none; }
}

/* ============================================================
   HOMEPAGE HERO CTA â€” square corners + animated travelling border
   Cast Your Vote = green beam Â· Buy Your Tickets = gold beam.
   Declared after the nav/hero rounding skin so .xv-featured buttons
   are always square (base, hover, focus, active and responsive states).
   ============================================================ */
.xv-featured .xv-btn,
.xv-featured .xv-btn:hover,
.xv-featured .xv-btn:focus,
.xv-featured .xv-btn:focus-visible,
.xv-featured .xv-btn:active { border-radius: 0; }

/* Animatable conic angle (Houdini) â€” degrades to a static highlight when
   @property is unsupported. */
@property --xv-cta-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes xvCtaBeam { to { --xv-cta-angle: 360deg; } }

.xv-featured-actions .xv-btn { position: relative; }

.xv-cta--beam {
  --xv-cta-beam: #34d399;
  --xv-cta-beam-soft: rgba(52, 211, 153, 0.55);
  --xv-cta-beam-glow: rgba(52, 211, 153, 0.30);
}
.xv-cta--beam.xv-cta--gold {
  --xv-cta-beam: #fbbf24;
  --xv-cta-beam-soft: rgba(251, 191, 36, 0.55);
  --xv-cta-beam-glow: rgba(251, 191, 36, 0.30);
}

/* The travelling highlight: a 2px ring painted from an animated conic
   gradient and clipped to the button's rectangular border (mask excludes the
   content box), so it follows all four edges and never covers the label.
   pointer-events:none keeps the button fully interactive. */
.xv-cta--beam::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 0;
  pointer-events: none;
  background: conic-gradient(from var(--xv-cta-angle),
      transparent 0deg, transparent 290deg,
      var(--xv-cta-beam-soft) 322deg,
      var(--xv-cta-beam) 348deg,
      #ffffff 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: xvCtaBeam 3.6s linear infinite;
}

/* Subtle ambient glow so the outline reads against the dark banner. */
.xv-cta--beam { box-shadow: 0 0 12px var(--xv-cta-beam-glow); }

@media (prefers-reduced-motion: reduce) {
  /* Clean static border, no animation. */
  .xv-cta--beam::before {
    animation: none;
    background: linear-gradient(0deg, var(--xv-cta-beam), var(--xv-cta-beam));
  }
}

/* ============================================================
   PUBLIC EVENT DETAILS â€” compact, centered hero + ticketing
   Built on the shared .xv-pagehead gradient. The uploaded flyer is layered
   behind a dark overlay and every information box is centered beneath the
   (uppercased) title. Ticket booking sits immediately below the hero.
   ============================================================ */
.xv-pagehead.xv-ev-hero .xv-ev-hero-inner { padding: 30px 24px 34px; max-width: 1120px; text-align: center; }
.xv-ev-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.xv-ev-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 28, 58, 0.9) 0%, rgba(5, 33, 62, 0.84) 55%, rgba(6, 44, 72, 0.92) 100%); }
.xv-ev-hero-inner { position: relative; z-index: 2; }
.xv-ev-hero-top { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.xv-ev-hero-top .xv-crumb { margin-bottom: 0; }
.xv-ev-hero-title { margin: 0 auto 20px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 800; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); }

/* Centered information boxes */
.xv-ev-facts { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; max-width: 1040px; align-items: stretch; }
.xv-ev-fact { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 64px; padding: 12px 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.xv-ev-fact-icon { flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(52, 211, 153, 0.4); color: #34d399; }
.xv-ev-fact-icon svg { width: 18px; height: 18px; }
.xv-ev-fact-body { min-width: 0; }
.xv-ev-fact-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: #6ee7b7; line-height: 1.4; }
.xv-ev-fact-value { display: block; font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.35; overflow-wrap: anywhere; }
.xv-ev-fact-note { display: block; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.62); margin-top: 1px; }

.xv-ev-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.xv-ev-hero-cta { text-transform: uppercase; letter-spacing: 0.8px; padding: 14px 34px; box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35); }

/* Category page (event_view.php) only: the voting and nomination CTAs are not
   rendered here, so the banner can end shortly after the date/time panels. */
body.ev-cats-page .xv-pagehead.xv-ev-hero .xv-ev-hero-inner { padding: 24px 24px 26px; }
body.ev-cats-page .xv-ev-hero-top { margin-bottom: 12px; }
body.ev-cats-page .xv-ev-facts { margin-bottom: 0; }
body.ev-cats-page .xv-ev-hero-actions { margin-top: 20px; }

/* Ticket-type colour identity (data-driven from the ticket name/type; neutral fallback) */
.tk-c-blue    { --tk-c: #1687D9; --tk-soft: rgba(22, 135, 217, 0.10); --tk-line: rgba(22, 135, 217, 0.40); --tk-ink: #0B4F86; }
.tk-c-green   { --tk-c: #168A64; --tk-soft: rgba(22, 138, 100, 0.10); --tk-line: rgba(22, 138, 100, 0.40); --tk-ink: #0D5C43; }
.tk-c-gold    { --tk-c: #D9A321; --tk-soft: rgba(217, 163, 33, 0.16); --tk-line: rgba(217, 163, 33, 0.48); --tk-ink: #7A5A08; }
.tk-c-neutral { --tk-c: #64748B; --tk-soft: rgba(100, 116, 139, 0.10); --tk-line: rgba(100, 116, 139, 0.32); --tk-ink: #3F4C5E; }

/* Ticket booking: a centred list of ticket-shaped selectable options. Each
   option is a real admission-ticket silhouette: a solid coloured stub on the
   left (checkbox + tier icon), a perforated divider, the details in the middle
   and the price on the right, with semicircular notches on both edges. */
.tk-book { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; max-width: 720px; margin: 0 auto; }
.tk-book-list { display: flex; flex-direction: column; gap: 20px; }

.tk-opt {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
  text-align: left;
  background: #fff;
  border: 1px solid var(--tk-line, #e2e8f0);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  font-family: var(--xv-font);
  box-shadow: 0 2px 10px rgba(4, 28, 58, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tk-opt:hover:not([disabled]) { border-color: var(--tk-c, #a7f3d0); box-shadow: 0 10px 24px rgba(4, 28, 58, 0.12); transform: translateY(-1px); }
.tk-opt:focus-visible { outline: 2px solid var(--tk-c, var(--xv-green)); outline-offset: 3px; }
.tk-opt.is-selected { border-color: var(--tk-c, var(--xv-green)); box-shadow: 0 0 0 2px var(--tk-soft, rgba(16, 185, 129, 0.18)), 0 10px 24px rgba(4, 28, 58, 0.12); }
.tk-opt[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Semicircular notches cut into the left/right edges. The circles match the
   white section surface, so the coloured stub and tinted price panel show a
   clean bite without covering any text, checkbox or price. */
.tk-opt::before,
.tk-opt::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background: #fff;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}
.tk-opt::before { left: -11px; }
.tk-opt::after { right: -11px; }

/* Coloured left stub with the selection control and a tier icon. */
.tk-opt-stub {
  position: relative;
  flex: 0 0 118px;
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 8px;
  background: var(--tk-c, #64748B);
  color: #fff;
  border-radius: 8px 0 0 8px;
  border-right: 2px dashed rgba(255, 255, 255, 0.55);
}
.tk-opt-stub-icon { display: inline-flex; color: rgba(255, 255, 255, 0.9); }
.tk-opt-stub-icon svg { width: 30px; height: 30px; }

/* Selection control: a white box on the coloured stub. */
.tk-opt-check {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  color: transparent;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.tk-opt.is-selected .tk-opt-check { color: var(--tk-c, var(--xv-green)); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }

/* Details + price row */
.tk-opt-body { flex: 1; min-width: 0; display: flex; align-items: stretch; }
.tk-opt-main { flex: 1; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.tk-opt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-opt-name { font-size: 18px; font-weight: 800; color: var(--xv-ink); line-height: 1.25; }
.tk-opt .xv-badge--active { background: var(--tk-soft, rgba(16, 185, 129, 0.12)); color: var(--tk-ink, #047857); border: 1px solid var(--tk-line, transparent); }
.tk-opt-desc { display: block; font-size: 13px; color: var(--xv-muted); line-height: 1.55; }
.tk-opt-avail { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--tk-ink, var(--xv-slate)); }
.tk-opt-avail svg { width: 13px; height: 13px; flex-shrink: 0; }
.tk-opt-avail--low { color: #b45309; }

/* Price panel at the right end of the ticket, tinted with the tier colour. */
.tk-opt-price {
  flex: 0 0 190px;
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 18px 24px 18px 18px;
  background: var(--tk-soft, rgba(100, 116, 139, 0.08));
  border-left: 2px dashed var(--tk-line, #e2e8f0);
  border-radius: 0 8px 8px 0;
  text-align: right;
}
.tk-opt-price-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.9px; color: var(--tk-ink, var(--xv-slate)); opacity: 0.8; }
.tk-opt-price-value { font-size: 22px; font-weight: 800; color: var(--tk-c, var(--xv-green-dark)); line-height: 1.15; white-space: nowrap; letter-spacing: -0.3px; }

/* Ticket-shape responsiveness: shrink the stub/price, then stack the price
   under the details on small screens so nothing overflows. */
@media (max-width: 760px) {
  .tk-opt-stub { flex-basis: 96px; width: 96px; padding: 16px 6px; }
  .tk-opt-stub-icon svg { width: 26px; height: 26px; }
  .tk-opt-main { padding: 16px; }
  .tk-opt-name { font-size: 16.5px; }
  .tk-opt-price { flex-basis: 150px; width: 150px; padding: 16px 18px 16px 14px; }
  .tk-opt-price-value { font-size: 19px; }
}
@media (max-width: 600px) {
  .tk-book-list { gap: 16px; }
  .tk-opt { border-radius: 6px; }
  .tk-opt::after { display: none; } /* keep one clean notch on narrow screens */
  .tk-opt-stub { flex-basis: 88px; width: 88px; padding: 14px 6px; gap: 10px; border-radius: 6px 0 0 6px; }
  .tk-opt-stub-icon svg { width: 24px; height: 24px; }
  .tk-opt-body { flex-direction: column; }
  .tk-opt-main { padding: 14px 14px 10px; }
  .tk-opt-name { font-size: 16px; }
  .tk-opt-price {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 14px 13px;
    border-left: 0;
    border-top: 2px dashed var(--tk-line, #e2e8f0);
    border-radius: 0 0 6px 0;
    text-align: left;
  }
  .tk-opt-price-value { font-size: 19px; }
}
@media (max-width: 400px) {
  .tk-opt-stub { flex-basis: 74px; width: 74px; padding: 12px 4px; gap: 8px; }
  .tk-opt-stub-icon svg { width: 20px; height: 20px; }
  .tk-opt-check { width: 22px; height: 22px; }
  .tk-opt-main { padding: 12px 12px 9px; }
  .tk-opt-name { font-size: 15px; }
  .tk-opt-desc { font-size: 12.5px; }
}

.tk-summary { background: #fff; border: 1px solid var(--xv-line); box-shadow: var(--xv-shadow); padding: 20px; position: sticky; top: 92px; }
.tk-summary-title { font-size: 14px; font-weight: 800; color: var(--xv-ink); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.6px; }
.tk-sum-empty { font-size: 13.5px; color: var(--xv-muted); background: #f8fafc; border: 1px dashed #cbd5e1; padding: 18px; text-align: center; }
.tk-sum-ticket { background: var(--tk-soft, var(--xv-green-soft)); border: 1px solid var(--tk-line, #bbf7d0); border-left: 4px solid var(--tk-c, var(--xv-green)); padding: 12px 14px; margin-bottom: 14px; }
.tk-sum-ticket-name { font-size: 14.5px; font-weight: 800; color: var(--tk-ink, #065f46); }
.tk-sum-ticket-meta { font-size: 12px; color: var(--tk-ink, #047857); opacity: 0.85; margin-top: 2px; }
.tk-sum-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tk-sum-qty-label { font-size: 13px; font-weight: 700; color: var(--xv-slate); }
.tk-stepper { display: flex; align-items: stretch; border: 1px solid #e2e8f0; }
.tk-stepper button { width: 40px; border: 0; background: #f8fafc; font-size: 18px; color: var(--xv-slate); cursor: pointer; min-height: 42px; }
.tk-stepper button:hover { background: #eef2f7; color: var(--xv-ink); }
.tk-stepper input { width: 52px; border: 0; text-align: center; font-weight: 800; font-size: 15px; color: var(--xv-ink); background: #fff; -moz-appearance: textfield; }
.tk-stepper input::-webkit-outer-spin-button, .tk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tk-sum-rows { border-top: 1px solid var(--xv-line); padding-top: 10px; margin-bottom: 16px; }
.tk-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--xv-slate); padding: 5px 0; }
.tk-sum-row--total { border-top: 1px solid var(--xv-line); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 800; color: var(--xv-ink); }
.tk-sum-row--total span:last-child { color: var(--tk-c, var(--xv-green-dark)); }
.tk-sum-fields .xv-field { margin-bottom: 12px; }
.tk-sum-fields .xv-input { height: 44px; }
.tk-summary .xv-btn-block { margin-top: 4px; }
.tk-sum-secure { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11.5px; color: var(--xv-muted); margin: 10px 0 0; }

@media (max-width: 900px) {
  .tk-book { grid-template-columns: 1fr; }
  .tk-summary { position: static; }
}
@media (max-width: 640px) {
  .xv-pagehead.xv-ev-hero .xv-ev-hero-inner { padding: 24px 16px 28px; }
  .xv-ev-hero-title { letter-spacing: 1px; margin-bottom: 16px; }
  .xv-ev-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .xv-ev-fact { padding: 10px 11px; gap: 9px; min-height: 58px; }
  .xv-ev-fact-icon { width: 30px; height: 30px; }
  .xv-ev-fact-icon svg { width: 16px; height: 16px; }
  body.ev-cats-page .xv-pagehead.xv-ev-hero .xv-ev-hero-inner { padding: 20px 16px 22px; }
  body.ev-cats-page .xv-ev-hero-actions { margin-top: 16px; }
}
@media (max-width: 480px) {
  /* Category page: stack the date/time panels when two columns would squeeze
     the values. */
  body.ev-cats-page .xv-ev-facts { grid-template-columns: 1fr; }
}

/* ============================================================
   PREMIUM EVENT TICKET
   One template for the web confirmation page and the post-payment modal
   (tickets/ticket_render.php); the PDF mirrors it. Data-driven per event.
   ============================================================ */
.evt-ticket { --evt-notch: #ffffff; background: #fff; border: 1px solid #e5ebf2; box-shadow: 0 12px 34px rgba(4, 28, 58, 0.14); overflow: hidden; max-width: 520px; width: 100%; margin: 0 auto; text-align: left; }

/* A. Event banner header */
.evt-ticket-hero { position: relative; min-height: 160px; display: flex; align-items: flex-end; background: linear-gradient(120deg, #041c3a 0%, #0a3556 55%, #0f766e 100%); background-size: cover; background-position: center; }
.evt-ticket-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 28, 58, 0.96) 0%, rgba(4, 28, 58, 0.74) 52%, rgba(4, 28, 58, 0.32) 100%); }
.evt-ticket-hero-inner { position: relative; z-index: 2; width: 100%; padding: 16px 20px 16px; color: #fff; }
.evt-ticket-kicker { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #6ee7b7; }
.evt-ticket-event { margin: 6px 0 10px; font-size: 19px; font-weight: 800; line-height: 1.25; color: #fff; letter-spacing: -0.2px; }
.evt-ticket-type { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 11px; background: #10b981; color: #fff; }
.evt-ticket--vip .evt-ticket-type { background: #D9A321; color: #2a1f00; }
.evt-ticket--vip { border-color: #ecd9a6; }

/* B. Main information */
.evt-ticket-info { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 20px 0; }
.evt-ticket-field { min-width: 0; padding: 13px 0; border-bottom: 1px solid #eef2f7; }
.evt-ticket-field:nth-child(odd) { padding-right: 14px; }
.evt-ticket-field:nth-child(even) { padding-left: 14px; border-left: 1px solid #eef2f7; }
.evt-ticket-field--wide { grid-column: 1 / -1; padding-right: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
.evt-ticket-field span { display: block; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: #94a3b8; }
.evt-ticket-field strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-top: 3px; overflow-wrap: anywhere; }
.evt-ticket-field--wide strong { font-size: 18px; letter-spacing: -0.2px; }
.evt-ticket--vip .evt-ticket-field--wide strong { color: #7a5a08; }
.evt-ticket-mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1.5px; }

/* C. QR stub */
.evt-ticket-stub { position: relative; display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 22px 20px 24px; margin-top: 2px; border-top: 2px dashed #e2e8f0; }
.evt-ticket-stub::before, .evt-ticket-stub::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--evt-notch); }
.evt-ticket-stub::before { left: -12px; }
.evt-ticket-stub::after { right: -12px; }
.evt-ticket-qr { flex: 0 0 auto; background: #fff; padding: 9px; border: 1px solid #eef2f7; box-shadow: 0 3px 12px rgba(4, 28, 58, 0.06); }
.evt-ticket-qr svg { display: block; width: 150px; height: 150px; }
.evt-ticket-stub-meta { min-width: 0; max-width: 220px; }
.evt-ticket-code { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; font-weight: 800; letter-spacing: 2px; color: #059669; }
.evt-ticket-hint { font-size: 11.5px; line-height: 1.55; color: #64748b; margin: 8px 0 0; }
.evt-ticket-order { font-size: 10.5px; color: #94a3b8; margin: 8px 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.4px; }

@media (max-width: 520px) {
  .evt-ticket-info { grid-template-columns: 1fr; padding: 4px 18px 0; }
  .evt-ticket-field:nth-child(even) { padding-left: 0; border-left: 0; }
  .evt-ticket-field:nth-child(odd) { padding-right: 0; }
  .evt-ticket-hero { min-height: 140px; }
  .evt-ticket-event { font-size: 17px; }
  .evt-ticket-stub { gap: 14px; }
  .evt-ticket-qr svg { width: 128px; height: 128px; }
}

@media print {
  .evt-ticket { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
}

/* ============================================================
   CONTACT PAGE (contact.php)
   Reuses the shared .xv-pagehead gradient + .xv-* primitives.
   New classes are page-scoped and do not affect other pages.
   ============================================================ */

/* A. Compact hero â€” desktop ~240px, mobile ~185px. Reuses the pagehead
   gradient/dark overlay and pattern; only the height is tightened. */
.xv-pagehead--compact { display: flex; align-items: center; min-height: 240px; }
.xv-pagehead--compact .xv-pagehead-inner { padding: 32px 24px; }
.xv-pagehead--compact .xv-pagehead-crumb { margin-bottom: 12px; }
/* Two short hero paragraphs â€” keep them centred and comfortably spaced. */
.xv-pagehead--compact .xv-pagehead-inner--center p { max-width: 620px; margin-left: auto; margin-right: auto; }
.xv-pagehead--compact .xv-pagehead-inner--center p + p { margin-top: 10px; }
@media (max-width: 768px) {
  .xv-pagehead--compact { min-height: 185px; }
  .xv-pagehead--compact .xv-pagehead-inner { padding: 28px 20px; }
  .xv-pagehead--compact h1 { font-size: 24px; }
  .xv-pagehead--compact p { font-size: 14px; }
}

/* D. Tickets page hero (tickets.php only): shorter banner with a one-line
   description on desktop. Scoped to .tk-hero so the contact page and other
   compact heroes are untouched. */
.tk-hero { min-height: 210px; }
.tk-hero .xv-pagehead-inner { padding: 24px; }
.tk-hero h1 { margin-bottom: 6px; }
.tk-hero .xv-pagehead-inner--center p { max-width: none; font-size: 16px; }
@media (min-width: 1024px) {
  .tk-hero .xv-pagehead-inner--center p { white-space: nowrap; }
}
@media (max-width: 1023px) {
  .tk-hero { min-height: 0; }
  .tk-hero .xv-pagehead-inner { padding: 24px 20px; }
}

/* F. Results landing hero (results.php list view only): compact centered
   banner. Scoped to .res-hero so verify/terms/faq/news, the ticketing
   branch of events.php and the single-event results hero (r-head) keep the
   default .xv-pagehead sizing. */
.res-hero .xv-pagehead-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 165px; padding: 26px 24px; }
.res-hero h1 { margin: 0; }
/* Wider, centered search beneath the compact hero. */
.res-search { max-width: 700px; margin: 0 auto; }
@media (max-width: 768px) {
  .res-hero .xv-pagehead-inner { min-height: 110px; padding: 24px 20px; }
}
@media (max-width: 480px) {
  .res-hero .xv-pagehead-inner { padding: 22px 16px; }
  .res-hero h1 { font-size: 24px; }
}

/* E. Nomination page hero (nominations.php only): compact centered banner.
   Scoped to .nom-hero so verify/terms/faq/results/news and the ticketing
   branch of events.php keep the default .xv-pagehead sizing. */
.nom-hero .xv-pagehead-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 175px; padding: 28px 24px; }
.nom-hero h1 { margin: 0; }
@media (max-width: 768px) {
  .nom-hero .xv-pagehead-inner { min-height: 155px; padding: 24px 20px; }
}
@media (max-width: 480px) {
  .nom-hero .xv-pagehead-inner { min-height: 140px; padding: 22px 16px; }
  .nom-hero h1 { font-size: 24px; }
}

/* F. Contact page hero (contact.php only): compact centered banner reusing
   the Nomination hero dimensions so both heroes match and neither grows.
   Scoped to .contact-hero so other compact heroes are untouched. */
.contact-hero { min-height: 175px; }
.contact-hero .xv-pagehead-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 175px; padding: 28px 24px; }
.contact-hero h1 { margin: 0; }
.contact-hero .xv-crumb { margin-bottom: 10px; }
@media (max-width: 768px) {
  .contact-hero { min-height: 155px; }
  .contact-hero .xv-pagehead-inner { min-height: 155px; padding: 24px 20px; }
}
@media (max-width: 480px) {
  .contact-hero { min-height: 140px; }
  .contact-hero .xv-pagehead-inner { min-height: 140px; padding: 22px 16px; }
  .contact-hero h1 { font-size: 24px; }
}

/* B. Contact information cards */
.xv-contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.xv-contact-grid > * { min-width: 0; }
.xv-contact-card { background: #fff; border: 1px solid var(--xv-line); border-radius: 0; padding: 26px 22px; box-shadow: var(--xv-shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.xv-contact-card:hover { transform: translateY(-5px); box-shadow: var(--xv-shadow-lg); border-color: #a7f3d0; }
.xv-contact-card-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(16, 185, 129, 0.1); color: var(--xv-green-dark); border: 1px solid rgba(16, 185, 129, 0.18); flex-shrink: 0; }
.xv-contact-card-icon svg { width: 24px; height: 24px; }
.xv-contact-card-title { font-size: 11.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--xv-muted); margin: 0; max-width: 100%; overflow-wrap: break-word; }
.xv-contact-card-value { font-size: 16px; font-weight: 800; color: var(--xv-ink); margin: 0; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.xv-contact-card-value a { color: inherit; text-decoration: none; }
.xv-contact-card-value a:hover { color: var(--xv-green-dark); }
.xv-contact-card-note { font-size: 12.5px; line-height: 1.55; color: var(--xv-muted); margin: 0; }
.xv-contact-action { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; font-size: 12.5px; font-weight: 700; color: var(--xv-green-dark); background: var(--xv-green-soft); border: 1px solid #bbf7d0; border-radius: 0; text-decoration: none; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.xv-contact-action:hover { background: var(--xv-green); border-color: var(--xv-green); color: #fff; }
.xv-contact-action svg { width: 15px; height: 15px; flex-shrink: 0; }
.xv-contact-action--pending { color: var(--xv-faint); background: #f8fafc; border-color: #e2e8f0; cursor: not-allowed; }
.xv-contact-action--pending:hover { background: #f8fafc; border-color: #e2e8f0; color: var(--xv-faint); }
@media (max-width: 1024px) { .xv-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .xv-contact-grid { grid-template-columns: 1fr; gap: 16px; } }

/* C. Contact form */
.xv-contact-form { background: #fff; border: 1px solid var(--xv-line); border-radius: 0; box-shadow: var(--xv-shadow); padding: 32px; }
.xv-contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.xv-contact-form-grid .xv-field--full { grid-column: 1 / -1; }
.xv-contact-form .xv-textarea { min-height: 150px; }
.xv-contact-req { font-size: 12px; color: var(--xv-muted); margin: 0 0 18px; }
@media (max-width: 640px) {
  .xv-contact-form { padding: 22px; }
  .xv-contact-form-grid { grid-template-columns: 1fr; }
}

/* --- Contact Us: WhatsApp secondary link (kept distinct from the 4 cards) --- */
.xv-contact-wa { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 13.5px; color: var(--xv-muted); text-align: center; }
.xv-contact-wa-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--xv-slate); }
.xv-contact-wa-link { color: var(--xv-green-dark); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.xv-contact-wa-link:hover { color: var(--xv-green); }
.xv-contact-wa-link:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 3px; }

/* --- Contact Us: Event & Business Enquiry modal (square, APA palette) --- */
.xv-be-dialog { max-width: 680px; width: auto; margin: 30px auto; }
.xv-be-modal { border-radius: 0; border: 0; box-shadow: var(--xv-shadow-lg); }
.xv-be-head { background: linear-gradient(135deg, var(--xv-navy), var(--xv-navy-2)); color: #fff; border-radius: 0; padding: 18px 22px; border-bottom: 0; }
.xv-be-head .modal-title { color: #fff; font-weight: 800; font-size: 18px; }
.xv-be-sub { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 12.5px; }
.xv-be-head .close { color: #fff; opacity: .85; text-shadow: none; }
.xv-be-body { padding: 20px 22px 6px; }
.xv-be-foot { padding: 14px 22px 18px; border-top: 1px solid var(--xv-line); display: flex; justify-content: flex-end; gap: 10px; }
.xv-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 6px; }
@media (max-width: 560px) { .xv-check-grid { grid-template-columns: 1fr; } }
.xv-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--xv-ink); cursor: pointer; }
.xv-check input { margin-top: 3px; accent-color: var(--xv-green); width: 16px; height: 16px; }

/* ============================================================
   VOTE PAGE â€” recent-event banners, event grid and conditional sidebar
   Scoped to body.ev-vote-page so the homepage, Tickets page and admin
   surfaces keep their existing layouts.
   ============================================================ */
.ev-vote-page { background: #F8FAFC; }
.ev-vote-page .xv-vote-main { padding: 0 0 64px; }
.xv-vote-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Compact voting hero (vote page only): full-width navy-to-green banner that
   sits flush under the navbar. Desktop ~160px tall. Content stays centered
   in a readable inner container. */
.ev-vote-page .xv-vote-hero { padding: 0; background: linear-gradient(120deg, var(--xv-navy) 0%, var(--xv-navy-2) 55%, var(--xv-teal) 100%); border-radius: 0; position: relative; overflow: hidden; }
.ev-vote-page .xv-vote-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.ev-vote-page .xv-vote-hero-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 1200px; margin: 0 auto; min-height: 160px; padding: 24px; position: relative; z-index: 1; }
.ev-vote-page .xv-vote-hero-text { position: relative; z-index: 1; min-width: 0; }
.ev-vote-page .xv-vote-hero-title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; color: #fff; }
.ev-vote-page .xv-vote-hero-sub { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

/* Main two-column shell. Sidebar is only rendered when real news exists. */
.ev-vote-page .xv-vote-layout { padding: 20px 0 0; }
.ev-vote-page .xv-vote-cols { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(272px, 1fr); gap: 24px; align-items: start; }
.ev-vote-page .xv-vote-cols--full { grid-template-columns: minmax(0, 1fr); }
.ev-vote-page .xv-vote-col { min-width: 0; }

/* Centred search */
.ev-vote-page .xv-vote-search { max-width: 700px; margin: 18px auto 0; }
.ev-vote-page .xv-vote-col > .xv-empty { margin-top: 18px; }
.ev-vote-page .xv-vote-search-tools { display: flex; justify-content: center; margin-top: 10px; }
.ev-vote-page .xv-vote-filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

/* Event cards: poster left, information right, two per row on desktop */
.ev-vote-page .xv-vote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.ev-vote-page .xv-vote-card { display: flex; align-items: stretch; min-width: 0; min-height: 184px; background: #fff; border: 1px solid #e2e8f0; border-radius: 0; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.ev-vote-page a.xv-vote-card:hover,
.ev-vote-page a.xv-vote-card:focus-visible { border-color: #E2E8F0; box-shadow: 0 8px 20px rgba(4, 28, 58, 0.09); }
.ev-vote-page a.xv-vote-card:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
.ev-vote-page .xv-vote-card-media { flex: 0 0 132px; width: 132px; position: relative; overflow: hidden; background: linear-gradient(135deg, #E2E8F0, #F1F5F9); }
.ev-vote-page .xv-vote-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.35s ease; }
.ev-vote-page .xv-vote-card:hover .xv-vote-card-media img { transform: scale(1.035); }
.ev-vote-page .xv-vote-card-media-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #64748b; background: linear-gradient(135deg, #F1F5F9, #F1F5F9); }
.ev-vote-page .xv-vote-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; }
.ev-vote-page .xv-vote-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ev-vote-page .xv-vote-card-top .xv-badge { padding: 4px 8px; font-size: 9.5px; letter-spacing: 0.65px; }
.ev-vote-page .xv-vote-card-date { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--xv-muted); }
.ev-vote-page .xv-vote-card-date svg { width: 12px; height: 12px; color: var(--xv-green-dark); flex-shrink: 0; }
.ev-vote-page .xv-vote-card .xv-card-title { margin: 0; font-size: 14px; line-height: 1.35; letter-spacing: 0.1px; text-transform: uppercase; }
.ev-vote-page .xv-vote-card-org { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--xv-green-dark); line-height: 1.4; }
.ev-vote-page .xv-vote-card-desc { margin: 0; font-size: 12px; line-height: 1.5; color: var(--xv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-vote-page .xv-vote-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.ev-vote-page .xv-vote-card-meta .xv-meta-item { padding: 4px 7px; font-size: 10.5px; gap: 4px; }
.ev-vote-page .xv-vote-card-meta .xv-meta-item svg { width: 11px; height: 11px; }
.ev-vote-page .xv-vote-card-cta { margin-top: auto; align-self: center; width: 70%; max-width: 280px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; background: var(--xv-green); border: 1px solid var(--xv-green); color: #fff; padding: 10px 18px; border-radius: 0; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28); transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.ev-vote-page .xv-vote-card-cta svg { width: 13px; height: 13px; }
.ev-vote-page .xv-vote-card-cta.is-disabled { background: #f1f5f9; border-color: #e2e8f0; color: var(--xv-slate); box-shadow: none; }
.ev-vote-page a.xv-vote-card:hover .xv-vote-card-cta, .ev-vote-page a.xv-vote-card:focus-visible .xv-vote-card-cta { background: var(--xv-green-dark); border-color: var(--xv-green-dark); color: #fff; }
.ev-vote-page a.xv-vote-card:hover .xv-vote-card-cta.is-disabled, .ev-vote-page a.xv-vote-card:focus-visible .xv-vote-card-cta.is-disabled { background: #f1f5f9; border-color: #e2e8f0; color: var(--xv-slate); }
/* Voting-closed action: red button with white text/icon, darker red on hover.
   Upcoming/paused states keep the muted treatment above. */
.ev-vote-page .xv-vote-card-cta.is-closed { background: #DC2626; border-color: #DC2626; color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28); }
.ev-vote-page a.xv-vote-card:hover .xv-vote-card-cta.is-closed, .ev-vote-page a.xv-vote-card:focus-visible .xv-vote-card-cta.is-closed { background: #B91C1C; border-color: #B91C1C; color: #fff; }

/* Sidebar (news only; no fake advertisements) */
.ev-vote-page .xv-vote-side { min-width: 0; position: sticky; top: 96px; }
.ev-vote-page .xv-vote-news { list-style: none; padding: 6px; margin: 0; }
.ev-vote-page .xv-vote-news li + li { border-top: 1px solid #E2E8F0; }
.ev-vote-page .xv-vote-news a { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; text-decoration: none; color: inherit; }
.ev-vote-page .xv-vote-news a:hover .xv-vote-news-title { color: var(--xv-green-dark); }
.ev-vote-page .xv-vote-news a:focus-visible { outline: 2px solid #0f766e; outline-offset: -2px; }
.ev-vote-page .xv-vote-news-thumb { flex: 0 0 62px; width: 62px; height: 54px; overflow: hidden; background: #F1F5F9; }
.ev-vote-page .xv-vote-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-vote-page .xv-vote-news-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-vote-page .xv-vote-news-date { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.45px; color: var(--xv-faint); }
.ev-vote-page .xv-vote-news-title { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--xv-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.18s ease; }

/* Responsive */
@media (max-width: 1024px) {
  .ev-vote-page .xv-vote-cols { grid-template-columns: minmax(0, 1fr); }
  .ev-vote-page .xv-vote-side { position: static; }
  .ev-vote-page .xv-vote-hero-inner { min-height: 150px; padding: 22px 24px; }
}
@media (max-width: 820px) {
  .ev-vote-page .xv-vote-card-media { flex-basis: 122px; width: 122px; }
}
@media (max-width: 640px) {
  .ev-vote-page .xv-vote-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .ev-vote-page .xv-vote-hero-inner { min-height: 140px; padding: 22px; }
}
@media (max-width: 640px) {
  .ev-vote-page .xv-vote-hero-inner { padding: 20px 18px; }
}
@media (max-width: 560px) {
  .ev-vote-page .xv-vote-card-body { padding: 12px 13px; }
  .ev-vote-page .xv-vote-card .xv-card-title { font-size: 13.5px; }
  .ev-vote-page .xv-vote-card-desc { -webkit-line-clamp: 2; }
  .ev-vote-page .xv-vote-card-cta { width: 88%; max-width: none; }
  .ev-vote-page .xv-vote-search-tools { margin-top: 8px; }
}
@media (max-width: 430px) {
  .ev-vote-page .xv-vote-card { min-height: 0; }
  .ev-vote-page .xv-vote-card-media { flex-basis: 108px; width: 108px; }
  .ev-vote-page .xv-vote-card-org { font-size: 11px; }
  .ev-vote-page .xv-vote-card-desc { font-size: 11.5px; -webkit-line-clamp: 2; }
}
@media (max-width: 390px) {
  .ev-vote-page .xv-vote-hero-inner { padding: 20px 16px; }
  .ev-vote-page .xv-vote-hero-title { font-size: 20px; }
  .ev-vote-page .xv-vote-hero-sub { font-size: 13px; }
}
@media (max-width: 350px) {
  .ev-vote-page .xv-vote-hero-inner { padding: 18px 16px; }
  .ev-vote-page .xv-vote-card-media { flex-basis: 94px; width: 94px; }
  .ev-vote-page .xv-vote-card-body { padding: 10px 11px; gap: 5px; }
  .ev-vote-page .xv-vote-card-meta { display: none; }
}

/* ============================================================
   TICKETS PAGE — compact hero + information-rich horizontal cards
   Poster left, details right; two columns on desktop, one stacked
   column on small screens. Square corners, restrained borders.
   ============================================================ */
.tk-listing { padding-top: 28px; }
.tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tk-card { display: flex; align-items: stretch; min-width: 0; min-height: 212px; background: #fff; border: 1px solid #e2e8f0; border-radius: 0; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
a.tk-card:hover, a.tk-card:focus-visible { border-color: #cbd5e1; box-shadow: 0 8px 20px rgba(4, 28, 58, 0.09); }
a.tk-card:focus-visible { outline: 2px solid var(--xv-green); outline-offset: 3px; }
.tk-card-media { flex: 0 0 168px; width: 168px; position: relative; overflow: hidden; background: linear-gradient(135deg, #e8eef4, #f1f5f9); }
.tk-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.35s ease; }
.tk-card:hover .tk-card-media img { transform: scale(1.035); }
.tk-card-media-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #94A3B8; background: linear-gradient(135deg, #eef2f7, #f8fafc); }
.tk-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 13px; }
.tk-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.tk-card-top .xv-badge { padding: 4px 8px; font-size: 9.5px; letter-spacing: 0.65px; }
.tk-card-date { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--xv-muted); }
.tk-card-date svg { width: 12px; height: 12px; color: var(--xv-green-dark); flex-shrink: 0; }
.tk-card-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: 0.1px; color: var(--xv-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Tickets page only: uppercase card titles (results.php reuses .tk-card-title
   and keeps its stored-case titles). */
.tk-listing .tk-card-title { text-transform: uppercase; }
.tk-card-org { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--xv-green-dark); line-height: 1.4; }
.tk-card-desc { margin: 0; font-size: 12px; line-height: 1.5; color: var(--xv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.tk-card-meta .xv-meta-item { padding: 4px 7px; font-size: 10.5px; gap: 4px; }
.tk-card-meta .xv-meta-item svg { width: 11px; height: 11px; }
.tk-card-cta { margin-top: auto; padding-top: 3px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.65px; color: var(--xv-green-dark); }
.tk-card-cta svg { width: 13px; height: 13px; }
.tk-card-cta.is-disabled { color: var(--xv-slate); }
.tk-card:hover .tk-card-cta { color: var(--xv-teal); }
.tk-card:hover .tk-card-cta.is-disabled { color: var(--xv-slate); }
@media (max-width: 900px) {
  .tk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tk-card { min-height: 186px; }
  .tk-card-media { flex-basis: 126px; width: 126px; }
  .tk-card-body { padding: 12px 13px; }
  .tk-card-title { font-size: 14.5px; }
}
@media (max-width: 430px) {
  .tk-card { min-height: 176px; }
  .tk-card-media { flex-basis: 110px; width: 110px; }
  .tk-card-meta { display: none; }
  .tk-card-org { font-size: 11px; }
  .tk-card-desc { font-size: 11.5px; }
}
@media (max-width: 350px) {
  .tk-card-media { flex-basis: 98px; width: 98px; }
  .tk-card-body { padding: 10px 11px; gap: 5px; }
}


