* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── Menu topo, preto com efeito de vidro ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

nav .nav-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

nav ul li a {
  display: inline-block;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, font-size .2s ease;
}

nav ul li a:hover { color: #C8102E; font-size: 15px; }

/* ── Botão sandwich (só em ecrãs pequenos) ── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-burger { display: none; }
.nav-toggle.open .icon-close  { display: block; }

@media (max-width: 640px) {
  nav { gap: 14px; padding: 12px clamp(14px, 4vw, 28px); }
  nav .nav-logo img { width: 40px; height: 40px; }

  .nav-toggle { display: flex; }

  nav ul {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(0,0,0,.85);
    border-bottom: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 8px clamp(14px, 4vw, 28px) 16px;
  }

  nav ul.open { display: flex; }

  nav ul li { width: 100%; }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  nav ul li:last-child a { border-bottom: none; }

  nav ul li a:hover { font-size: 13px; padding-left: 6px; }
}

body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #000;
}

/* ── Faixas diagonais largas, preto e vermelho, efeito vidro ── */
.stripes {
  position: fixed;
  inset: -10%;
  width: 120%;
  height: 120%;
  background: repeating-linear-gradient(
    135deg,
    #050505 0px,
    #0d0d0d 80px,
    #050505 160px,
    #C8102E 160px,
    #e2263f 240px,
    #C8102E 320px
  );
  z-index: 0;
}

/* separadores finos entre faixas, a simular junções de vidro */
.stripes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,.14) 0px,
    rgba(255,255,255,.14) 3px,
    transparent 3px,
    transparent 160px,
    rgba(255,255,255,.14) 160px,
    rgba(255,255,255,.14) 163px,
    transparent 163px,
    transparent 320px
  );
}

/* brilho a percorrer o vidro */
.shine {
  position: fixed;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 200px,
    rgba(255,255,255,.10) 210px,
    rgba(255,255,255,.22) 230px,
    rgba(255,255,255,.10) 250px,
    transparent 260px,
    transparent 480px
  );
  background-size: 200% 200%;
  animation: sweep 9s linear infinite;
  mix-blend-mode: overlay;
}

@keyframes sweep {
  0%   { background-position: 0% 0%; }
  100% { background-position: 140% 140%; }
}

/* vinheta suave para dar profundidade de vidro */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 18%, transparent 82%, rgba(0,0,0,.45) 100%);
}

/* ── Cartão central em vidro fosco ── */
.card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 56px 64px 48px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.12);
  max-width: 90vw;
  text-align: center;
  opacity: 0;
}

.card.show {
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Ecrã de entrada — toca para tocar o canto da torcida ── */
.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #000;
  cursor: pointer;
  transition: opacity .6s ease, visibility .6s ease;
}

.gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,16,46,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,.45); }
  50%      { box-shadow: 0 0 0 18px rgba(200,16,46,0); }
}

.gate-ring svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }

.gate p {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gate span {
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  transition: color .2s ease, text-shadow .2s ease;
}

.gate:hover span {
  color: #C8102E;
  text-shadow: 0 0 24px rgba(200,16,46,.6);
}

/* ── Botão flutuante para parar/retomar o áudio ── */
.audio-toggle {
  position: fixed;
  bottom: 78px;
  right: 22px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease, background .2s ease;
}

.audio-toggle.visible {
  opacity: 1;
  visibility: visible;
}

.audio-toggle:hover { background: rgba(200,16,46,.35); }

.audio-toggle svg { width: 18px; height: 18px; fill: #fff; }
.audio-toggle .icon-pause { display: block; }
.audio-toggle .icon-play  { display: none; }
.audio-toggle.paused .icon-pause { display: none; }
.audio-toggle.paused .icon-play  { display: block; }

.logo {
  width: clamp(120px, 18vw, 176px);
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.6));
}

.divider {
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: .55;
}

h1 {
  color: #fff;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}

p.sub {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  max-width: 380px;
  line-height: 1.6;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 16px;
  background: rgba(0,0,0,.55);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

footer a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .2s ease, border-color .2s ease;
}

footer a:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 520px) {
  .card { padding: 40px 28px 36px; border-radius: 22px; gap: 20px; }
  .stripes, .shine { inset: -20%; width: 140%; height: 140%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PÁGINAS DE CONTEÚDO (scroll normal) — Cadastro de Sócios, etc.
   body.page substitui o layout fixo/centrado do ecrã de entrada.
   ═══════════════════════════════════════════════════════════════════════ */
body.page {
  display: block;
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
}

.page-wrap {
  position: relative;
  z-index: 3;
  max-width: 640px;
  margin: 0 auto;
  padding: 128px 20px 100px;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header .logo {
  width: clamp(90px, 14vw, 120px);
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 12px;
}

.page-header p.sub {
  max-width: 460px;
  margin: 0 auto;
}

.badge-evento {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(200,16,46,.18);
  border: 1px solid rgba(200,16,46,.5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Cartão do formulário, mesmo vidro fosco do cartão de entrada ── */
.form-card {
  position: relative;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 44px);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1);
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group { margin-bottom: 18px; }
.f-group label {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.f-group input, .f-group select {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.f-group input::placeholder { color: rgba(255,255,255,.32); }

.f-group input:focus, .f-group select:focus {
  border-color: #C8102E;
  background: rgba(255,255,255,.08);
}

.f-group input[type="date"] { color-scheme: dark; }

.f-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  cursor: pointer;
}

.f-rgpd input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #C8102E;
  flex-shrink: 0;
  cursor: pointer;
}

.f-rgpd span {
  color: rgba(255,255,255,.62);
  font-size: 12.5px;
  line-height: 1.6;
}

.f-submit {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #C8102E, #8B0000);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s ease, transform .1s ease;
  box-sizing: border-box;
}

.f-submit:hover:not(:disabled) { filter: brightness(1.12); }
.f-submit:active:not(:disabled) { transform: scale(.98); }
.f-submit:disabled { opacity: .5; cursor: not-allowed; }

.f-error {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(200,16,46,.14);
  border: 1px solid rgba(200,16,46,.4);
  border-radius: 10px;
  color: #ff9494;
  font-size: 13px;
}

.f-success { display: none; text-align: center; }

.f-success .ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(200,16,46,.15);
  border: 1px solid rgba(200,16,46,.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-success .ico svg { width: 30px; height: 30px; fill: #C8102E; }

.f-success h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.f-success p { color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 22px; }

.f-code-box {
  background: rgba(255,255,255,.04);
  border: 2px solid #C8102E;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 8px;
}

.f-code-box .code {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #C8102E;
}

.f-code-box .lbl {
  margin-top: 6px;
  color: rgba(255,255,255,.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .page-wrap { padding: 108px 16px 90px; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { border-radius: 20px; }
}

/* ── Enquete (votação + admin) ─────────────────────────────────────── */
.f-radio-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }

.f-radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.f-radio-option.selected { border-color: #C8102E; background: rgba(200,16,46,.12); }

.f-radio-option input[type="radio"] { width: 18px; height: 18px; accent-color: #C8102E; flex-shrink: 0; cursor: pointer; }
.f-radio-option span { color: #fff; font-size: 14px; font-weight: 600; }

.f-result-bar { margin-bottom: 16px; }
.f-result-bar .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.f-result-bar .label { color: #fff; font-size: 13px; font-weight: 700; }
.f-result-bar .pct { color: #C8102E; font-size: 13px; font-weight: 800; }
.f-result-bar .track { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.f-result-bar .fill { height: 100%; background: linear-gradient(90deg, #C8102E, #8B0000); border-radius: 6px; transition: width .4s ease; }
.f-result-total { text-align: center; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 20px; }

.f-admin-login { max-width: 360px; margin: 0 auto; }
.f-poll-block { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.f-poll-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.f-poll-block h3 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.f-poll-block .status { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 20px; margin-bottom: 14px; }
.f-poll-block .status.active { background: rgba(34,197,94,.15); color: #4ade80; }
.f-poll-block .status.closed { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.f-option-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.f-option-input-row input { flex: 1; }
.f-remove-option { flex-shrink: 0; width: 42px; background: rgba(200,16,46,.14); border: 1px solid rgba(200,16,46,.4); border-radius: 10px; color: #ff9494; cursor: pointer; font-size: 18px; }
.f-add-option { background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25); border-radius: 10px; color: rgba(255,255,255,.7); padding: 10px; width: 100%; cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.f-close-poll { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff; padding: 8px 14px; cursor: pointer; font-size: 12px; font-weight: 700; }
