/* =====================================================================
   VoteFund — Platform Stylesheet
   Brand system adapted from ScoreHQ (navy / electric blue / teal),
   used for marketing pages, organiser dashboard, and admin chrome.

   Event pages layer a SEPARATE, per-event theme on top via inline CSS
   variables (--brand-primary / --brand-secondary / --theme-text /
   --hero-bg-image etc.) set from the events.theme_* database columns,
   so each organiser can fully restyle their own event page to match
   their own brand, independent of the platform's own navy/teal identity.
   ===================================================================== */

:root {
  /* ---- Platform brand palette (ScoreHQ-derived) ---- */
  --navy-deep:     #34679b;
  --navy:          #022347;
  --navy-mid:      #0A2A50;
  --navy-raised:   #0D3260;
  --navy-border:   rgba(6, 144, 229, 0.18);
  --navy-border-s: rgba(6, 144, 229, 0.35);

  --blue:        #0690E5;
  --blue-bright: #2CA8F5;
  --blue-dim:    #0568A8;

  --teal:        #07C0B8;
  --teal-bright: #3DD6E0;
  --teal-dim:    #059990;

  --grad:      linear-gradient(135deg, #07C0B8 0%, #0690E5 60%, #0568A8 100%);
  --grad-h:    linear-gradient(135deg, #3DD6E0 0%, #2CA8F5 60%, #0690E5 100%);
  --grad-text: linear-gradient(135deg, #07C0B8, #0690E5);

  --white:       #FFFFFF;
  --white-dim:   rgba(255, 255, 255, 0.70);
  --white-faint: rgba(255, 255, 255, 0.90);
  --white-ghost: rgba(255, 255, 255, 0.12);

  --success: #22C993;
  --danger:  #E05050;
  --warning: #E0A030;

  --ink:      #1c1410;
  --ink-soft: #5b5048;
  --paper:    #fffdf9;
  --paper-alt:#f4f6f9;
  --line:     #e3e7ee;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 4px 18px rgba(2, 35, 71, 0.08);
  --shadow-pop:  0 18px 50px rgba(2, 35, 71, 0.22);

  /* ---- Default event theme (overridden per-event inline) ---- */
  --brand-primary:   var(--navy-mid);
  --brand-secondary: var(--teal);
  --theme-text:      #FFFFFF;
  --hero-bg-image:   none;
  --section-bg-image:none;
  --overlay-opacity: 0.55;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display { font-family: var(--font-display); letter-spacing: -0.01em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dim); }

.mono { font-family: var(--font-mono); }
.text-brand { color: var(--brand-primary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.text-gold { color: var(--brand-secondary) !important; }
.text-teal { color: var(--teal-bright) !important; }
.text-navy { color: var(--navy) !important; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */
.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-brand:hover, .btn-brand:focus { filter: brightness(0.9); color: #fff; }

.btn-gold, .btn-platform-primary {
  background: var(--grad);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(6, 144, 229, 0.45);
}
.btn-gold:hover, .btn-platform-primary:hover {
  background: var(--grad-h);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(6, 144, 229, 0.6);
}

.btn-outline-brand {
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 600;
  background: transparent;
}
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }

.btn-platform-outline {
  border: 1.5px solid var(--navy-border-s);
  color: var(--navy);
  font-weight: 600;
  background: transparent;
}
.btn-platform-outline:hover { border-color: var(--teal); color: var(--teal-dim); }

/* ---------------------------------------------------------------- */
/* Platform site chrome (marketing / dashboard navbar+footer)       */
/* ---------------------------------------------------------------- */
.platform-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.platform-header .navbar-brand { font-weight: 800; font-size: 1.4rem; color: var(--navy); display: flex; align-items: center; gap: .4rem; }
.platform-header .navbar-brand .mark { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.platform-header .nav-link { font-weight: 600; color: var(--ink-soft); font-size: 0.92rem; }
.platform-header .nav-link:hover, .platform-header .nav-link.active { color: var(--blue-dim); }

.platform-footer {
  background: var(--navy);
  color: var(--white-dim);
  font-size: 0.88rem;
}
.platform-footer h6 { color: #fff; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.9rem; }
.platform-footer a { color: var(--white-dim); }
.platform-footer a:hover { color: var(--teal-bright); }
.platform-footer .socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); margin-right: 0.5rem;
}
.platform-footer .socials a:hover { background: var(--teal); color: var(--navy); }

/* ---------------------------------------------------------------- */
/* Marketing hero / sections (navy gradient, ScoreHQ-style)          */
/* ---------------------------------------------------------------- */
.marketing-hero {
  background: var(--navy);
  background-image: radial-gradient(55% 40% at 5% 0%, rgba(7,192,184,0.12) 0%, transparent 60%),
                     radial-gradient(50% 45% at 100% 15%, rgba(6,144,229,0.14) 0%, transparent 60%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.marketing-hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700;
  color: var(--teal-bright); font-family: var(--font-mono);
  background: rgba(7,192,184,0.08); border: 1px solid rgba(7,192,184,0.28);
  border-radius: 999px; padding: 0.4rem 0.9rem; margin-bottom: 1.25rem;
}
.marketing-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.1; }
.marketing-hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.marketing-hero p.lead { color: var(--white-dim); max-width: 56ch; font-size: 1.08rem; }

.section-light { background: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-navy  { background: var(--navy); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-panel { background: var(--paper-alt); padding-block: clamp(3.5rem, 7vw, 6rem); }

.section-title {
  font-weight: 800;
  position: relative;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
}

.feature-card-platform {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card-platform:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-card-platform .icon-wrap {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  border-radius: var(--radius-sm);
  color: #fff;
  margin-bottom: 1.1rem;
}

.stat-band-platform { background: var(--navy); border-top: 1px solid var(--navy-border); border-bottom: 1px solid var(--navy-border); padding-block: 3rem; }
.stat-band-platform .num { font-family: var(--font-mono); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; display: block;
  background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-band-platform .label { font-size: 0.76rem; color: var(--white-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; font-family: var(--font-mono); }

.pricing-card-platform {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; height: 100%; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card-platform:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.pricing-card-platform.featured { border-color: var(--teal); box-shadow: var(--shadow-card); }
.pricing-card-platform .tier { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue-dim); }
.pricing-card-platform .price { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; color: var(--navy); }

/* ---------------------------------------------------------------- */
/* Auth pages (login / signup)                                       */
/* ---------------------------------------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  background-image: radial-gradient(55% 40% at 5% 0%, rgba(7,192,184,0.12) 0%, transparent 60%),
                     radial-gradient(50% 45% at 100% 15%, rgba(6,144,229,0.14) 0%, transparent 60%);
  padding: 2rem 1rem;
}
.auth-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: 0 24px 70px rgba(0,0,0,0.35); }
.auth-toggle { display: flex; background: var(--paper-alt); border-radius: 999px; padding: 4px; margin-bottom: 1.75rem; }
.auth-toggle a {
  flex: 1; text-align: center; padding: 0.55rem 0.5rem; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; color: var(--ink-soft);
}
.auth-toggle a.active { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- */
/* EVENT PAGE THEME (per-event, configurable from organiser panel)  */
/* ---------------------------------------------------------------- */
.event-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.event-header .navbar-brand img { height: 40px; }
.event-header .nav-link { font-weight: 600; color: var(--ink-soft); font-size: 0.92rem; }
.event-header .nav-link:hover { color: var(--brand-primary); }

.event-hero {
  background-color: var(--brand-primary);
  background-image:
    linear-gradient(rgba(0,0,0, var(--overlay-opacity)), rgba(0,0,0, var(--overlay-opacity))),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  color: var(--theme-text);
  position: relative;
}
.event-hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700;
  color: var(--brand-secondary);
}
.event-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; color: var(--theme-text); }
.event-hero p.lead { color: var(--theme-text); opacity: 0.9; max-width: 60ch; }

/* ---- Prominent countdown (per request: make it stand out) ---- */
.countdown-wrap {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(8px);
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}
.countdown-wrap .countdown-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
  color: var(--brand-secondary);
}
.countdown { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.countdown .unit {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  min-width: 86px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.countdown .unit .num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-secondary);
  text-shadow: 0 0 18px rgba(7,192,184,0.5);
}
.countdown .unit .lbl {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--theme-text); opacity: 0.8; margin-top: 0.3rem;
}

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stats .stat .v { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; color: var(--brand-secondary); }
.hero-stats .stat .l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--theme-text); opacity: 0.75; }

/* ---------------------------------------------------------------- */
/* Contestant grid                                                   */
/* ---------------------------------------------------------------- */
.contestant-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contestant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.contestant-card .photo-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--paper-alt); }
.contestant-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.contestant-card:hover .photo-wrap img { transform: scale(1.04); }

.rank-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink);
  color: #fff; font-weight: 700; font-size: 0.78rem;
  padding: 0.25rem 0.6rem; border-radius: 100px;
}
.rank-badge.r1 { background: linear-gradient(135deg, #ffd700, #c9a227); color: #4a3a00; }
.rank-badge.r2 { background: linear-gradient(135deg, #f4f4f4, #b8b8b8); color: #3a3a3a; }
.rank-badge.r3 { background: linear-gradient(135deg, #d9a066, #a9682f); color: #3a1f00; }

.contestant-card .body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.contestant-card .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0; }
.contestant-card .votes { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.35rem; }
.contestant-card .votes strong { color: var(--brand-primary); font-size: 0.95rem; }

.fundraise-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: .4rem; }
.fundraise-bar .fill { height: 100%; background: var(--grad); border-radius: 99px; }

/* ---------------------------------------------------------------- */
/* Leaderboard / podium                                              */
/* ---------------------------------------------------------------- */
.podium-section {
  background-color: var(--paper-alt);
  background-image: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)), var(--section-bg-image);
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.podium-row { display: flex; align-items: flex-end; justify-content: center; gap: 1.25rem; flex-wrap: wrap; padding-top: 1rem; }
.podium-card { text-align: center; width: 200px; }
.podium-card .photo-wrap {
  position: relative; width: 110px; height: 110px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 0.6rem; border: 4px solid #fff; box-shadow: var(--shadow-card);
}
.podium-card.first .photo-wrap { width: 140px; height: 140px; border-color: #ffd700; }
.podium-card.second .photo-wrap { border-color: #b8b8b8; }
.podium-card.third .photo-wrap { border-color: #a9682f; }
.podium-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.podium-card .medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.4rem;
}
.podium-card.first .medal { background: linear-gradient(135deg, #ffd700, #c9a227); color: #4a3a00; }
.podium-card.second .medal { background: linear-gradient(135deg, #f4f4f4, #b8b8b8); color: #3a3a3a; }
.podium-card.third .medal { background: linear-gradient(135deg, #d9a066, #a9682f); color: #3a1f00; }
.podium-card .name { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.15rem; }
.podium-card .votes { color: var(--brand-primary); font-weight: 700; font-size: 0.95rem; }
.podium-card .pedestal {
  margin-top: 0.75rem; background: linear-gradient(180deg, #fff, var(--paper-alt));
  border: 1px solid var(--line); border-bottom: 4px solid var(--brand-secondary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.podium-card.first .pedestal { height: 70px; border-bottom-color: #c9a227; }
.podium-card.second .pedestal { height: 48px; border-bottom-color: #b8b8b8; }
.podium-card.third .pedestal { height: 34px; border-bottom-color: #a9682f; }
.podium-card.first { order: 2; }
.podium-card.second { order: 1; }
.podium-card.third { order: 3; }

.leaderboard-rest { list-style: none; margin: 0; padding: 0; }
.leaderboard-rest li {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem; margin-bottom: 0.5rem;
}
.leaderboard-rest .pos { font-weight: 700; color: var(--ink-soft); width: 28px; text-align: center; font-family: var(--font-display); }
.leaderboard-rest img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.leaderboard-rest .nm { font-weight: 600; flex: 1; }
.leaderboard-rest .vt { font-weight: 700; color: var(--brand-primary); font-size: 0.9rem; }

/* ---------------------------------------------------------------- */
/* Contestant profile page                                           */
/* ---------------------------------------------------------------- */
.profile-photo-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 3/4; background: var(--paper-alt); }
.profile-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.profile-stat-card { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; }
.profile-stat-card .label { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; }
.profile-stat-card .value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--brand-primary); }

.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
.package-card {
  border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 1rem 0.75rem;
  text-align: center; background: #fff; cursor: pointer; transition: all 0.15s ease; position: relative;
}
.package-card:hover { border-color: var(--brand-secondary); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.package-card .votes-n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--brand-primary); }
.package-card .votes-lbl { font-size: 0.72rem; text-transform: uppercase; color: var(--ink-soft); letter-spacing: 0.06em; }
.package-card .price { margin-top: 0.4rem; font-weight: 700; font-size: 1.05rem; }
.package-card .featured-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--brand-secondary); color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.6rem; border-radius: 100px; white-space: nowrap;
}

.share-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-alt); border: 1px solid var(--line); color: var(--ink); margin-right: 0.5rem;
}
.share-row a:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

.url-display {
  background: var(--paper-alt); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem; font-size: 0.85rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 0.5rem; word-break: break-all;
}

.history-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); border-bottom-width: 1px; }
.history-table td { vertical-align: middle; font-size: 0.92rem; }
.history-table .donor-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem;
}

/* ---------------------------------------------------------------- */
/* Vote purchase modal                                               */
/* ---------------------------------------------------------------- */
#voteModal .modal-content { border-radius: var(--radius-lg); border: none; overflow: hidden; }
#voteModal .modal-left { background: var(--paper-alt); padding: 1.75rem; border-right: 1px solid var(--line); }
#voteModal .modal-right { padding: 1.75rem; }
#voteModal .mini-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-secondary); }
#voteModal .summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
#voteModal .summary-row:last-child { border-bottom: none; }
#voteModal .summary-row .v { font-weight: 700; }
#voteModal .total-row { font-size: 1.15rem; font-weight: 700; color: var(--brand-primary); }
#voteModal .terms-box {
  max-height: 130px; overflow-y: auto; font-size: 0.78rem; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem;
}
#stripe-card-element { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem 0.9rem; background: #fff; }
#stripe-card-element.StripeElement--focus { border-color: var(--brand-primary); }
#stripe-errors { color: #c0392b; font-size: 0.82rem; min-height: 1.2em; }

.anon-check-row {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem; margin-bottom: 0.9rem;
}
.anon-check-row label { font-size: 0.85rem; margin: 0; cursor: pointer; }

.payment-success-box { text-align: center; padding: 2rem 1rem; }
.payment-success-box .check-circle {
  width: 72px; height: 72px; border-radius: 50%; background: #e8f7ee; color: #1f9d55;
  display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- */
/* Event footer (per-event, themed)                                  */
/* ---------------------------------------------------------------- */
.event-footer { background: var(--ink); color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.event-footer h6 { color: #fff; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.9rem; }
.event-footer a { color: rgba(255,255,255,0.75); }
.event-footer a:hover { color: var(--brand-secondary); }
.event-footer .socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); margin-right: 0.5rem;
}
.event-footer .socials a:hover { background: var(--brand-secondary); color: var(--ink); }

/* ---------------------------------------------------------------- */
/* Events landing page (multi-event index)                          */
/* ---------------------------------------------------------------- */
.event-card {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease; height: 100%;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.event-card .banner { aspect-ratio: 16/9; background: var(--paper-alt); overflow: hidden; }
.event-card .banner img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body { padding: 1.1rem 1.25rem; }
.event-card .cat-pill {
  display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  background: var(--paper-alt); color: var(--blue-dim); padding: 0.2rem 0.6rem; border-radius: 100px; margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------- */
/* Static content pages (Terms / Privacy / How it works)            */
/* ---------------------------------------------------------------- */
.content-page { padding-block: clamp(2.5rem, 5vw, 4rem); }
.content-page h2 { margin-top: 2rem; font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.content-page p, .content-page li { color: var(--ink-soft); line-height: 1.75; }

/* Responsive tweaks */
@media (max-width: 767px) {
  .podium-card { width: 30%; min-width: 100px; }
  .podium-card .photo-wrap { width: 80px; height: 80px; }
  .podium-card.first .photo-wrap { width: 96px; height: 96px; }
  #voteModal .modal-left { border-right: none; border-bottom: 1px solid var(--line); }
  .countdown .unit { min-width: 68px; padding: 0.6rem 0.8rem; }
  .countdown .unit .num { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contestant-card, .contestant-card .photo-wrap img, .event-card, .feature-card-platform, .pricing-card-platform { transition: none !important; }
}

a:focus-visible, button:focus-visible, .package-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
