:root {
  --navy: #0B2545;
  --navy-dark: #081B34;
  --blue: #3E92CC;
  --blue-soft: #9FCBE8;
  --bg-light: #F2F8FD;
  --white: #FFFFFF;
  --text-dark: #13233F;
  --text-muted: #5B7088;
  --green: #1E8E3E;
  --whatsapp: #25D366;
  --red: #DE3B2E;
  --red-dark: #C22E22;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Calibri, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
}

a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: Cambria, Georgia, serif; margin: 0; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== Navbar ===== */
.navbar {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar .brand { display: flex; align-items: center; gap: 12px; }
.navbar .brand img { width: 42px; height: 42px; border-radius: 50%; }
.navbar .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.navbar .brand-title { color: #fff; font-weight: 700; letter-spacing: 1px; font-size: 15px; }
.navbar .brand-subtitle { color: var(--blue-soft); font-weight: 600; letter-spacing: 1.5px; font-size: 9.5px; }
.navbar nav { display: flex; align-items: center; gap: 20px; }
.navbar nav a { color: var(--blue-soft); font-size: 14px; }
.navbar nav a:hover { color: #fff; }
.navbar nav a.btn { font-size: 13px; }
.navbar nav a.btn-primary { color: var(--navy); }
.navbar nav a.btn-primary:hover { color: var(--navy); }
.navbar nav a.btn-outline-blue { color: var(--blue-soft); }
.navbar nav a.btn-outline-blue:hover { color: #fff; }
.btn-outline-light-navy { background: transparent; border: 1px solid rgba(159,203,232,0.5); color: #fff; font-size: 13px; padding: 9px 18px; }
.btn-outline-light-navy:hover { border-color: #fff; }
.btn-outline-blue { background: transparent; border: 1.5px solid var(--blue); color: var(--blue-soft); font-size: 13px; padding: 8px 17px; }
.btn-outline-blue:hover { background: rgba(62,146,204,0.12); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle-ativo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-ativo span:nth-child(2) { opacity: 0; }
.nav-toggle-ativo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .navbar { flex-wrap: wrap; padding: 12px 16px; }
  .navbar .brand-subtitle { display: none; }
  .nav-toggle { display: flex; }
  .navbar nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin-top: 14px;
    border-top: 1px solid rgba(159,203,232,0.2);
    padding-top: 10px;
  }
  .navbar nav.nav-menu-aberto { display: flex; }
  .navbar nav a { padding: 12px 4px; font-size: 15px; }
  .navbar nav a.btn { margin-top: 8px; text-align: center; }
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--blue); color: var(--navy); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-large { padding: 18px 40px; font-size: 17px; border-radius: 30px; }
.btn-outline { background: transparent; border: 1px solid var(--blue-soft); color: #fff; }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(rgba(1,16,41,0.72), rgba(1,16,41,0.72)),
    url('/img/hero-bg-mascote.jpg') center 15% / cover no-repeat,
    #011029;
  color: #fff;
  padding: 40px 24px 30px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 520px; }
.pill-badge {
  display: inline-block; background: rgba(62,146,204,0.15); border: 1px solid rgba(159,203,232,0.4);
  color: var(--blue-soft); font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 14px;
}
.hero-text h1 { font-size: 34px; margin: 10px 0; line-height: 1.22; letter-spacing: 0.5px; }
.hero-text h1 .hero-highlight { font-size: 44px; display: inline-block; margin-top: 4px; color: var(--blue-soft); }
.hero-text p { color: #C7DCEF; font-size: 15px; line-height: 1.5; }
.hero-actions { display: flex; gap: 14px; margin-top: 18px; }
.hero-info-row { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero-info-row span { color: var(--blue-soft); font-size: 12.5px; }
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.hero-mascot img { max-width: 300px; width: 100%; }

/* ===== Countdown card (inside hero) ===== */
.countdown-card {
  background: rgba(8,27,52,0.6);
  border: 1px solid rgba(159,203,232,0.25);
  border-radius: 14px;
  padding: 20px 28px;
  text-align: center;
}
.countdown-label { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 14px; }
.countdown-units { display: flex; gap: 26px; }
.countdown-units .unit .num { font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.countdown-units .unit .txt { font-size: 11px; color: var(--blue-soft); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* ===== Stats bar ===== */
.stats-bar { background: var(--navy-dark); padding: 22px 24px; }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.stat-item { text-align: center; }
.stat-num { color: var(--blue); font-size: 26px; font-weight: 800; }
.stat-label { color: var(--blue-soft); font-size: 11px; letter-spacing: 0.5px; margin-top: 2px; }

/* ===== Countdown (legacy, kept for compatibility) ===== */
.countdown-strip {
  background: var(--blue);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}
.countdown-strip .label { letter-spacing: 1px; font-size: 13px; }
.countdown-strip .unit { text-align: center; }
.countdown-strip .unit .num { font-size: 20px; }
.countdown-strip .unit .txt { font-size: 10px; font-weight: 400; }

/* ===== Sections ===== */
.section { padding: 36px 24px; }
.section .kicker { color: var(--blue); font-weight: 700; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; }
.section h2 { font-size: 26px; margin: 8px 0 20px; }
.section-subtext { max-width: 620px; margin: 0 auto 28px; text-align: center; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.features-grid, .modalidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 800px) {
  .features-grid, .modalidades-grid { grid-template-columns: 1fr; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-info-row { justify-content: center; }
  .cta-banner { flex-direction: column; text-align: center; }
  .hero {
    background-size: auto, auto 110%;
    background-position: 0 0, center top;
  }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 18px; }

.modalidade-card .top { height: 70px; display: flex; align-items: center; justify-content: center; }
.modalidade-card h3 { font-size: 20px; margin-bottom: 4px; }
.modalidade-card .preco { font-size: 22px; font-weight: 800; color: var(--navy); margin: 6px 0; }
.modalidade-card .vagas { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.modalidade-card .desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 12px; }

.modalidade-card-v2 { border: 1px solid #EEF2F7; }
.tag-badge {
  display: inline-block; color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 12px;
}
.modalidade-card-v2 h3 { font-size: 18px; margin-bottom: 4px; color: var(--text-dark); }
.modalidade-card-v2 .desc { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px; min-height: 40px; }
.modalidade-card-v2 .preco { margin: 6px 0 14px; }
.modalidade-card-v2 .preco span { font-size: 24px; font-weight: 800; color: var(--navy); }
.modalidade-card-v2 .preco small { font-size: 12px; color: var(--text-muted); }
.modalidade-card-v2 .vagas { font-size: 11.5px; color: var(--text-muted); margin-bottom: 12px; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-text h3 { color: #fff; font-size: 20px; line-height: 1.35; margin-bottom: 8px; max-width: 560px; }
.cta-text p { color: var(--blue-soft); font-size: 13.5px; }

.icon-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  margin-bottom: 10px;
}

footer {
  background: var(--navy-dark);
  color: var(--blue-soft);
  padding: 18px 24px;
  text-align: center;
  font-size: 12.5px;
}

/* ===== Forms ===== */
.form-page { padding: 50px 24px; max-width: 640px; margin: 0 auto; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-card h2 { font-size: 22px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid #D5E3EF;
  background: var(--bg-light); font-size: 14px; color: var(--text-dark);
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue); background: #fff; }
.field-error { color: #C0392B; font-size: 12px; margin-top: 4px; display: none; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; border-radius: 10px; }
.form-msg { padding: 12px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.form-msg.error { background: #FDECEA; color: #C0392B; display: block; }
.form-msg.success { background: #E9F7EF; color: var(--green); display: block; }

/* ===== Pagamento ===== */
.pix-box { text-align: center; }
.pix-box img.qrcode { width: 220px; height: 220px; margin: 20px auto; display: block; border-radius: 8px; border: 1px solid #E2E8F0; }
.pix-copia {
  background: var(--bg-light); border: 1px dashed #B9CFE2; border-radius: 8px; padding: 12px;
  font-size: 11px; word-break: break-all; color: var(--text-muted); margin-bottom: 14px;
}
.status-badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.status-pendente { background: #FFF4E0; color: #B7791F; }
.status-pago { background: #E9F7EF; color: var(--green); }

/* ===== Ingresso ===== */
.ticket-page-bg {
  background:
    linear-gradient(135deg, rgba(8,27,52,0.93), rgba(11,37,69,0.88)),
    url('/img/hero-bg-sonic.jpg') center 45% / cover no-repeat;
}
.ticket-card, .ticket-card-v2 { max-width: 480px; margin: 0 auto; }
.ticket-header { background: var(--navy); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.ticket-header img { width: 46px; height: 46px; border-radius: 50%; }
.ticket-body { padding: 22px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.ticket-body .info div { margin-bottom: 8px; font-size: 13.5px; color: var(--text-muted); }
.ticket-body .info .numero { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.ticket-actions { display: flex; gap: 10px; padding: 0 22px 22px; }

.ticket-body-v2 {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticket-mascot {
  position: relative;
  flex-shrink: 0;
  height: 280px;
  aspect-ratio: 263 / 479;
}
.ticket-mascot img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ticket-bib-badge {
  position: absolute;
  left: 53.8%;
  top: 56.6%;
  transform: translate(-50%, -50%);
  color: var(--navy);
  font-weight: 800;
  font-size: 12px;
  width: 25%;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.ticket-info-col { flex: 1; min-width: 0; }
.ticket-info-col .info div { margin-bottom: 7px; font-size: 13px; color: var(--text-muted); }
.ticket-info-col .info .numero { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 9px; }
.ticket-qr { width: 90px; height: 90px; margin-top: 10px; }

@media (max-width: 440px) {
  .ticket-body-v2 { flex-direction: column; align-items: center; text-align: center; }
  .ticket-info-col { width: 100%; }
  .ticket-info-col .info { display: flex; flex-direction: column; align-items: center; }
  .ticket-qr { margin-left: auto; margin-right: auto; }
}

/* ===== Admin ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--navy); color: #fff; padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
.admin-sidebar .brand img { width: 56px; height: 56px; border-radius: 50%; }
.admin-sidebar nav a { display: block; padding: 12px 24px; color: var(--blue-soft); font-size: 14px; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.admin-main { flex: 1; padding: 28px 32px; background: var(--bg-light); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }

@media (max-width: 860px) {
  .admin-layout { flex-direction: column; min-height: auto; }
  .admin-sidebar { width: 100%; padding: 14px 0; position: sticky; top: 0; z-index: 40; }
  .admin-sidebar .brand { flex-direction: row; justify-content: center; margin-bottom: 10px; }
  .admin-sidebar .brand img { width: 36px; height: 36px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 10px; gap: 2px; }
  .admin-sidebar nav a { white-space: nowrap; padding: 10px 14px; border-radius: 6px; }
  .admin-main { padding: 18px 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

.progress-list { display: flex; flex-direction: column; gap: 14px; }
.progress-item-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dark); margin-bottom: 6px; }
.progress-bar { background: var(--bg-light); border-radius: 20px; height: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 20px; transition: width 0.3s ease; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 24px; font-weight: 800; color: var(--navy); }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 12px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid #EEF2F7; }
th { background: var(--bg-light); color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

.inscritos-filtros {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.inscritos-filtros input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #D5E3EF;
  background: #fff;
  font-size: 13.5px;
}
.inscritos-filtros select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #D5E3EF;
  background: #fff;
  font-size: 13.5px;
}
.inscritos-paginacao {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.inscritos-paginacao a {
  padding: 7px 13px;
  border-radius: 6px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  border: 1px solid #E2E8F0;
}
.inscritos-paginacao a.ativo {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.login-card { background: #fff; padding: 36px; border-radius: var(--radius); width: 340px; box-shadow: var(--shadow); }

.banner-esgotado {
  background: #C0392B; color: #fff; text-align: center; padding: 14px; font-weight: 700; letter-spacing: 1px;
}

/* ===== Faixas de Contato (Instagram / WhatsApp) ===== */
.contact-banner {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(90deg, #0B2545, #17518C);
  text-decoration: none;
  margin-bottom: 16px;
  height: 112px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  padding-left: 182px;
}
.contact-banner:hover { transform: translateY(-2px); }
.contact-banner-whatsapp { background: linear-gradient(90deg, #0B2545, #123A66); }

.contact-banner-photo {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 155px;
  height: 155px;
  flex-shrink: 0;
}
.contact-banner-instagram .contact-banner-photo { top: 41%; }
.contact-banner-photo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,0.25);
}
.contact-banner-photo-whatsapp {
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.contact-banner-photo-whatsapp img {
  width: 100%; height: 100%; object-fit: cover; border: none;
}
.platform-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  border: 2px solid var(--navy-dark);
}
.platform-badge-instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.contact-banner-text {
  flex: 1;
  padding: 12px 24px;
  min-width: 0;
}
.contact-banner-text h3 { color: #fff; font-size: 22px; margin-bottom: 3px; }
.contact-banner-text p { color: var(--blue-soft); font-size: 14px; margin: 0; }

.contact-banner-btn {
  flex-shrink: 0;
  margin-right: 22px;
  padding: 12px 22px;
  font-size: 13.5px;
  border-radius: 24px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .contact-banner { flex-wrap: wrap; height: auto; min-height: auto; padding: 20px 16px; gap: 12px; }
  .contact-banner-photo { display: none; }
  .contact-banner-text { padding: 0; flex-basis: 100%; text-align: center; }
  .contact-banner-btn { margin: 0 auto; }
}

/* ===== Patrocinadores (esteira animada) ===== */
.sponsors-section {
  background: #fff;
  padding: 26px 0 30px;
  border-top: 1px solid #EEF2F7;
}
.sponsors-title {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sponsors-strip {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsors-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: sponsors-scroll 22s linear infinite;
}
.sponsors-strip:hover .sponsors-track { animation-play-state: paused; }
.sponsor-logo {
  flex-shrink: 0;
  background: var(--bg-light);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 26px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.sponsor-logo-img {
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-logo-img img {
  height: 42px;
  max-width: 140px;
  object-fit: contain;
}
@keyframes sponsors-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

