/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #18181f;
  --surface:   #1c1c25;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --gold:      #b8975a;
  --gold-lt:   #d4a85a;
  --gold-bg:   rgba(184,151,90,0.12);
  --gold-brd:  rgba(184,151,90,0.3);
  --text:      #f0ede8;
  --text2:     rgba(240,237,232,0.6);
  --text3:     rgba(240,237,232,0.35);
  --success:   #1D9E75;
  --danger:    #E24B4A;
  --radius:    12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.site-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 0.5px solid var(--border2);
  flex-shrink: 0;
}
.site-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.site-tagline {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--gold); background: var(--gold-bg); }

/* ── Main ───────────────────────────────────────────────────── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f5f0e8 40%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--text3);
  max-width: 400px;
  margin: 0 auto;
}

/* ── Module cards ────────────────────────────────────────────── */
.modules-section { padding: 0 0 60px; }
.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.module-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  text-decoration: none;
  transition: border-color .25s, transform .2s;
  background: var(--surface);
}
.module-card:hover {
  border-color: var(--gold-brd);
  transform: translateY(-2px);
}
.module-card-inner { height: 100%; }
.module-mw .module-card-inner { background: linear-gradient(160deg,#1a0a2e,#38185e); }
.module-ea .module-card-inner { background: linear-gradient(160deg,#0d1f0a,#1e4a16); }
.module-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(184,151,90,0.2);
  color: var(--gold-lt);
  border: 0.5px solid var(--gold-brd);
  padding: 4px 10px;
  border-radius: 20px;
  margin: 24px 0 20px 24px;
}
.module-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  padding: 0 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.module-desc {
  font-size: 14px;
  color: var(--text2);
  padding: 0 24px;
  margin-bottom: 24px;
}
.module-footer {
  padding: 16px 24px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.module-price { font-size: 13px; color: var(--gold); font-weight: 500; }
.module-arrow { font-size: 18px; color: var(--text3); }

/* ── Page hero ───────────────────────────────────────────────── */
.page-hero {
  padding: 48px 0 40px;
  margin-bottom: 40px;
  border-bottom: 0.5px solid var(--border);
}
.page-hero--mw { border-bottom-color: rgba(93,42,138,0.4); }
.page-hero--ea { border-bottom-color: rgba(30,74,22,0.4); }
.page-hero-inner { max-width: 600px; }
.page-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.page-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.page-deadline {
  font-size: 13px;
  color: var(--text3);
  margin-top: 8px;
}
.page-deadline strong { color: var(--text2); }

.voting-closed-banner {
  margin-top: 16px;
  display: inline-block;
  background: rgba(226,75,74,0.1);
  border: 0.5px solid rgba(226,75,74,0.3);
  color: #f09595;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
}

/* ── Contestant grid ─────────────────────────────────────────── */
.contestants-section, .ea-section { padding-bottom: 60px; }
.contestants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contestant-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .2s;
  display: flex;
  flex-direction: column;
}
.contestant-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.contestant-photo {
  aspect-ratio: 3/4;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.contestant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contestant-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg3), var(--surface));
}
.vote-chip {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(8px);
  border: 0.5px solid var(--border2);
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
}
.contestant-info {
  padding: 14px 14px 8px;
  flex: 1;
}
.contestant-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.contestant-desc {
  font-size: 12px;
  color: var(--text3);
}

/* vote bar */
.vote-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.vote-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.vote-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; }
.vote-bar-pct { font-size: 11px; color: var(--gold); min-width: 32px; text-align: right; }

/* ── Vote button ─────────────────────────────────────────────── */
.btn-vote {
  margin: 8px 14px 14px;
  width: calc(100% - 28px);
  background: transparent;
  border: 0.5px solid var(--gold-brd);
  color: var(--gold);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-vote:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-vote--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Excellence Awards ───────────────────────────────────────── */
.ea-filter-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.ea-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8975a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 40px 10px 14px;
  cursor: pointer;
  min-width: 200px;
  transition: border-color .15s;
}
.ea-filter-select:hover { border-color: var(--gold-brd); }
.ea-filter-select:focus { outline: none; border-color: var(--gold); }
.ea-filter-select option { background: #1c1c25; color: #f0ede8; }

.ea-category {
  margin-bottom: 48px;
}
.ea-category-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
}
.ea-category-title { font-size: 22px; font-weight: 600; }
.ea-category-price { font-size: 13px; color: var(--gold); font-weight: 500; }

/* ── Vote modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.modal-open { overflow: hidden; }
.modal {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.modal-subtitle { font-size: 14px; color: var(--gold); margin-bottom: 24px; }

.vote-qty-wrap { margin-bottom: 20px; }
.qty-presets {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.qty-preset {
  padding: 5px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.qty-preset:hover { background: var(--border); border-color: var(--text3); }
.qty-label { font-size: 12px; color: var(--text3); display: block; margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: background .2s;
}
.qty-btn:hover { background: var(--border); }
.qty-value {
  width: 56px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border-left: 0.5px solid var(--border2);
  border-right: 0.5px solid var(--border2);
  height: 44px;
  line-height: 44px;
}

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 20px;
}
.total-label { font-size: 13px; color: var(--text3); }
.total-amount { font-size: 24px; font-weight: 600; color: var(--gold); }

.voter-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.voter-input {
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.voter-input::placeholder { color: var(--text3); }
.voter-input:focus { border-color: var(--gold-brd); }

.btn-pay {
  width: 100%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  font-family: inherit;
}
.btn-pay:hover { background: var(--gold-lt); }

/* ── Result / callback page ──────────────────────────────────── */
.result-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 0;
}
.result-card {
  text-align: center;
  padding: 48px 40px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
}
.result-card--success { border-color: rgba(29,158,117,0.3); }
.result-card--fail    { border-color: rgba(226,75,74,0.3); }
.result-icon { margin-bottom: 20px; }
.result-title { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.result-desc { font-size: 15px; color: var(--text2); margin-bottom: 8px; line-height: 1.6; }
.result-ref { font-size: 11px; color: var(--text3); font-family: monospace; margin: 12px 0 28px; }
.btn-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin: 4px;
  transition: background .2s;
}
.btn-back:hover { background: var(--gold-lt); }
.btn-back--ghost {
  background: transparent;
  color: var(--text2);
  border: 0.5px solid var(--border2);
}
.btn-back--ghost:hover { background: var(--surface); color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text3);
  padding: 60px 24px;
  font-size: 14px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contestants-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  .site-main { padding: 0 16px 60px; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 36px; }
  .site-nav { display: none; }
  .contestants-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .modal { padding: 24px 20px; }
}
