/* ============================================================
   Rifa Francis Motos · estilo
   Paleta preta com accent amarelo. Tudo local, zero CDN.
   ============================================================ */

:root {
  --bg:        #0e1116;
  --bg-soft:   #161a22;
  --bg-card:   #1c2230;
  --line:      #262d3d;
  --line-soft: #1f2535;
  --text:      #f1f3f7;
  --text-soft: #aab1c0;
  --text-dim:  #6c7385;
  --accent:    #facc15;
  --accent-hi: #fde047;
  --accent-dk: #ca9c0a;
  --good:      #22c55e;
  --danger:    #ef4444;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --maxw:      720px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ============================================================
   Topo
   ============================================================ */
.topbar {
  background: rgba(14,17,22,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.topbar .brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.topbar .brand b { font-size: 14px; letter-spacing: .02em; }
.topbar .live { font-size: 11px; color: var(--good); display: flex; align-items: center; gap: 6px; }
.topbar .live .dot { width: 8px; height: 8px; background: var(--good); border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: liveBlink 1.8s ease-in-out infinite; }
@keyframes liveBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================
   Hero · imagem + título sobre ela
   ============================================================ */
.hero { padding: 16px 0 0; }
.hero .card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero .media-wrap { aspect-ratio: 4 / 3; background: #000; position: relative; overflow: hidden; }
.hero .slide-stack { position: absolute; inset: 0; }
.hero .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  background: #000;
}
.hero .slide.is-active { opacity: 1; pointer-events: auto; }
.hero img.slide { transition: opacity .55s cubic-bezier(.4,0,.2,1), transform 9s ease; }
.hero .card:hover img.slide.is-active { transform: scale(1.04); }

/* Dots de progresso do carrossel */
.hero .slide-progress {
  position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 4;
}
.hero .slide-progress .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: width .35s ease, background .35s ease;
}
.hero .slide-progress .dot.is-active {
  width: 22px; border-radius: 4px;
  background: var(--accent);
}

/* Botão de som flutuante */
.sound-btn {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: rgba(0,0,0,.7); color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 8px 14px 8px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: opacity .3s ease, transform .2s ease;
  animation: soundNudge 2.4s ease-in-out infinite;
}
.sound-btn:hover { transform: translateY(-1px); }
.sound-btn.is-hidden { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.sound-btn .sound-icon { font-size: 15px; }
@keyframes soundNudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250,204,21,.0); }
  50%      { box-shadow: 0 0 0 8px rgba(250,204,21,.0), 0 4px 18px rgba(250,204,21,.35); }
}
@media (max-width: 480px) {
  .sound-btn .sound-text { display: none; }
  .sound-btn { padding: 8px 11px; }
}

.hero .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #1a1500;
  font-size: 12px; font-weight: 800;
  padding: 7px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px rgba(250,204,21,.35);
}

.hero .img-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 70%);
  color: #fff;
}
.hero .img-title h1 {
  margin: 0; font-size: 17px; font-weight: 700;
  line-height: 1.3; letter-spacing: -.01em;
  display: flex; align-items: flex-start; gap: 8px;
}
.hero .img-title h1::before { content: '🎗️'; flex-shrink: 0; }

/* Setas do carrossel (decorativas, sem carrossel real) */
.hero .arrows { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); pointer-events: none; }
.hero .arrows span {
  position: absolute; top: 0;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.55); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.hero .arrows .left  { left: 12px; }
.hero .arrows .right { right: 12px; }

/* ============================================================
   Card de progresso (cotas vendidas)
   ============================================================ */
.progress-card {
  background: linear-gradient(180deg, #11161e, #0d1117);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}
.progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.progress-label { font-size: 12px; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.progress-count { font-size: 18px; font-weight: 800; color: var(--accent); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.progress-count .muted { color: var(--text-dim); font-weight: 600; font-size: 14px; }
.progress-bar {
  height: 8px; background: #0a0d12;
  border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-dk), var(--accent), var(--accent-hi));
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
  animation: gradShift 4s linear infinite;
}
@keyframes gradShift { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.progress-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 12px; color: var(--text-soft);
}
.progress-foot .live { display: inline-flex; align-items: center; gap: 6px; }
.progress-foot .live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: liveBlink 1.6s ease-in-out infinite;
}

/* ============================================================
   Reveal on view (fade-up suave nos elementos)
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Faixa "Meus títulos"
   ============================================================ */
.my-tickets {
  background: #0a0d12;
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px; font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .15s ease;
  margin-top: -1px;
}
.my-tickets:hover { color: var(--accent); }
.my-tickets::before { content: '🛒  '; }

/* ============================================================
   Bloco "Por apenas"
   ============================================================ */
.price-hint {
  margin: 18px auto 8px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: rgba(239,68,68,.05);
  font-size: 14px; color: var(--text);
}
.price-hint .label { color: var(--text-soft); }
.price-hint .value { font-weight: 800; color: var(--accent); }
.price-row { text-align: center; }
.price-tagline {
  text-align: center; color: var(--accent);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  margin: 4px 0 16px;
}

/* ============================================================
   Pacotes
   ============================================================ */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 480px) { .pack-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

.pack {
  position: relative;
  background: #11161e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 8px 14px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  color: #fff;
  transition: transform .15s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .25s ease;
}
.pack:hover { border-color: var(--accent); transform: translateY(-2px); }

.pack .qtd {
  font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  color: #fff;
}
.pack .label {
  margin-top: 8px;
  font-size: 11px; letter-spacing: .12em; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase;
}

.pack.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1500;
  box-shadow: 0 12px 28px rgba(250,204,21,.30);
  transform: translateY(-2px);
}
.pack.selected .qtd   { color: #1a1500; }
.pack.selected .label { color: #6b5a00; }

.pack .tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a1500;
  font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(250,204,21,.40);
}
.pack.selected .tag { background: #1a1500; color: var(--accent); }

/* ============================================================
   Stepper + CTA principal (linha)
   ============================================================ */
.action-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 480px) { .action-row { grid-template-columns: 1fr; } }

.stepper-box {
  background: #11161e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.stepper-box button {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent; color: var(--text);
  font-size: 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.stepper-box button:hover { background: var(--bg-card); border-color: var(--accent); }
.stepper-box input {
  flex: 1; max-width: 80px;
  height: 32px; text-align: center;
  background: transparent; color: var(--text);
  border: 0; font-size: 18px; font-weight: 700;
}
.stepper-box input:focus { outline: none; }

.cta-buy {
  background: var(--accent);
  color: #1a1500;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800; font-size: 14px;
  cursor: pointer; letter-spacing: .01em;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.15;
  box-shadow: 0 10px 22px rgba(250,204,21,.28);
  transition: transform .18s ease, box-shadow .25s ease, background .15s ease;
}
.cta-buy:hover  { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(250,204,21,.40); }
.cta-buy:active { transform: translateY(0); }
.cta-buy:disabled { opacity: .65; cursor: not-allowed; }
.cta-buy .cta-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cta-buy .cta-title::before { content: '✓'; background: #1a1500; color: var(--accent); width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.cta-buy .cta-value { font-size: 14px; opacity: .92; margin-top: 2px; }

/* ============================================================
   Accordion descrição
   ============================================================ */
.regulamento {
  margin: 16px 0;
  background: #11161e;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.regulamento summary {
  list-style: none; cursor: pointer;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 14px;
}
.regulamento summary::-webkit-details-marker { display: none; }
.regulamento summary::before {
  content: ''; width: 22px; height: 22px;
  background: var(--accent); color: #1a1500; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
  margin-right: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1500'><path d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.regulamento[open] summary::before { transform: rotate(180deg); }
.regulamento .reg-body {
  padding: 0 16px 16px;
  color: var(--text-soft);
  font-size: 14px; line-height: 1.65;
}
.regulamento .reg-body p { margin: 0 0 10px; }

/* ============================================================
   Social proof
   ============================================================ */
.proof {
  background: #11161e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
}
.proof .head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.proof .head .dot { width: 8px; height: 8px; background: var(--good); border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.proof .head b { font-size: 12px; color: var(--text-soft); font-weight: 600; letter-spacing: .04em; }
.proof .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; color: var(--text-soft); }
.proof .row:last-child { border-bottom: 0; }
.proof .row .who { color: var(--text); font-weight: 600; }
.proof .row .qtd { color: var(--accent); font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 22px 0 60px; color: var(--text-dim); font-size: 12px; text-align: center; line-height: 1.6; }
.footer .who { color: var(--text-soft); font-weight: 600; }

/* ============================================================
   Modal de checkout
   ============================================================ */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(8,10,14,.78); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.modal-back.open { display: flex; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
  animation: modalUp .35s cubic-bezier(.16,1,.3,1);
}
@keyframes modalUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.modal header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal header h3 { margin: 0; font-size: 17px; }
.modal header .close { background: none; border: 0; color: var(--text-dim); font-size: 26px; cursor: pointer; line-height: 1; }
.modal .body { padding: 18px; }
.modal .body p.intro { color: var(--text-soft); font-size: 13px; margin: 0 0 14px; }
.modal label { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 6px; }
.modal input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.modal input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(250,204,21,.16); }
.modal .resumo {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin: 14px 0 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal .resumo .l { font-size: 13px; color: var(--text-soft); }
.modal .resumo .v { font-size: 20px; font-weight: 800; color: var(--accent); }
.modal .err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }
.modal .cta-buy { width: 100%; }

/* ============================================================
   QR Code / Pix
   ============================================================ */
.pix-amount { text-align: center; color: var(--text-soft); margin-bottom: 14px; }
.pix-amount strong { display: block; font-size: 28px; font-weight: 800; color: var(--text); margin-top: 4px; letter-spacing: -.02em; }
.pix-qr {
  background: #fff; border-radius: 12px; padding: 14px;
  text-align: center; margin-bottom: 14px;
}
.pix-qr img { max-width: 240px; margin: 0 auto; }
.pix-copy-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.pix-copy-box {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; max-height: 100px; overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px; color: var(--text-soft); word-break: break-all; line-height: 1.45;
}
.btn-copy {
  width: 100%; margin-top: 10px;
  background: var(--accent); color: #1a1500; font-weight: 800; font-size: 14px;
  border: 0; border-radius: 10px; padding: 13px; cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}
.btn-copy:hover { background: var(--accent-hi); }
.pix-status { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-soft); display: flex; align-items: center; justify-content: center; gap: 8px; }
.pix-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.pix-status.paid .dot { background: var(--good); animation: none; }
.pix-status.paid { color: var(--good); font-weight: 700; }

/* ============================================================
   Tela paga · bilhetes em cards
   ============================================================ */
.paid-screen { text-align: center; padding: 18px 6px 8px; }
.paid-screen .check {
  width: 64px; height: 64px;
  background: rgba(34,197,94,.15); color: var(--good);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 0 auto 12px;
  animation: checkPop .55s cubic-bezier(.16,1.2,.3,1);
}
@keyframes checkPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.paid-screen h3 { color: var(--good); margin: 0 0 6px; font-size: 20px; }
.paid-screen p { color: var(--text-soft); margin: 0 0 6px; font-size: 14px; }
.paid-screen .order-id { font-family: ui-monospace, monospace; color: var(--text-dim); font-size: 11px; margin-top: 12px; }

.ticket-warning {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(250,204,21,.14), rgba(250,204,21,.04));
  border: 1px solid rgba(250,204,21,.45);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 16px 0 12px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(250,204,21,.10);
  animation: warnPulse 2.4s ease-in-out infinite;
}
@keyframes warnPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(250,204,21,.10); }
  50%      { box-shadow: 0 10px 26px rgba(250,204,21,.22); }
}
.ticket-warning .warn-icon { font-size: 22px; flex-shrink: 0; }
.ticket-warning b { color: var(--accent); font-size: 13px; }
.ticket-warning span { color: var(--text-soft); font-size: 12px; line-height: 1.4; }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}
.ticket-grid::-webkit-scrollbar { width: 6px; }
.ticket-grid::-webkit-scrollbar-track { background: transparent; }
.ticket-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.ticket {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 6px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: transform .15s ease, border-color .18s ease;
}
.ticket:hover { border-color: var(--accent); transform: translateY(-1px); }
.ticket .t-hash { color: var(--text-dim); font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.ticket b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; font-weight: 700; color: var(--accent);
}

.btn-copy.ticket-copy { margin-top: 2px; }
