/* ===========================
   RESET & BASE
=========================== */
:root{
  --bg:#161c24;
  --card:#1f2b36;
  --card2:#243241;

  --muted:#9aa8b7;
  --green:#18c466;
  --green2:#139a53;
  --greenSoft:#c9ffd8;

  --line:rgba(255,255,255,.10);
  --shadow:0 10px 26px rgba(0,0,0,.35);
  --radius:14px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html,body{ height:100%; }
body{
  background:var(--bg);
  color:#fff;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* container central (mobile-first) */
.container{
  width:100%;
  max-width:520px;
  margin:0 auto;
  padding:0 14px;
}

/* ===========================
   HEADER
=========================== */
.topbar{
  position:sticky;
  top:0;
  z-index:999;
  background:#000;
  border-bottom:3px solid var(--green);
}

.header-content{
  max-width:520px;
  margin:0 auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{ height:42px; }

.menu-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  font-size:22px;
}

/* ===========================
   CARD PRINCIPAL
=========================== */
.card{
  width:100%;
  max-width:520px;
  margin:14px auto 90px;
  background:var(--card);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.06);
}

/* ===========================
   BANNER
=========================== */
.banner{
  position:relative;
  background:#000;
}

.banner-img{
  width:100%;
  opacity:0;
  transition:opacity .35s ease;
}
.banner-img.show{ opacity:1; }

.banner-count{
  position:absolute;
  right:12px;
  top:12px;
  background:rgba(0,0,0,.55);
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
}

.banner-btn{
  position:absolute;
  top:44%;
  width:40px;
  height:40px;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  backdrop-filter:blur(4px);
}

.banner-btn.left{ left:10px; }
.banner-btn.right{ right:10px; }

/* PARTICIPE AGORA pulsante */
.banner-cta{
  position:absolute;
  left:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:var(--green2);
  color:#fff;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  box-shadow:0 12px 22px rgba(0,0,0,.35);
  animation:ctaPulse 1.2s ease-in-out infinite;
}

.banner-cta .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ff3b3b;
  box-shadow:0 0 0 rgba(255,59,59,.0);
  animation:dotPulse 1.2s ease-in-out infinite;
}

@keyframes ctaPulse{
  0%   { transform:scale(1);   filter:brightness(1); }
  50%  { transform:scale(1.05); filter:brightness(1.06); }
  100% { transform:scale(1);   filter:brightness(1); }
}
@keyframes dotPulse{
  0%   { box-shadow:0 0 0 0 rgba(255,59,59,.50); }
  70%  { box-shadow:0 0 0 10px rgba(255,59,59,0); }
  100% { box-shadow:0 0 0 0 rgba(255,59,59,0); }
}

/* ===========================
   HERO / TÍTULO
=========================== */
.rifa-hero{ padding:14px 16px 10px; }

.rifa-title{
  font-size:20px;
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.12;
}

.rifa-sub{
  margin-top:4px;
  font-size:12px;
  color:rgba(255,255,255,.72);
  display:flex;
  align-items:center;
  gap:6px;
}

/* Meus títulos (sem porcentagem) */
.meta-bar{
  margin-top:12px;
  background:#18222d;
  border-top:3px solid var(--green);
  border-radius:12px;
  padding:12px 12px;
}

.meta-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:900;
  font-size:15px;
}
.meta-title svg{ width:18px; height:18px; }

.progress-bar{ display:none !important; }

/* ===========================
   PREÇO
=========================== */
.price-row{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding-bottom:4px;
}

.price-row .label{
  font-size:13px;
  color:rgba(255,255,255,.85);
  font-weight:800;
}

.price-row .price{
  background:#0c0f14;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  padding:6px 10px;
  border-radius:8px;
  font-weight:900;
}

/* ===========================
   SELEÇÃO RÁPIDA
=========================== */
.fast-buy{ padding:0 16px 16px; }

.fast-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.fast-box{
  background:#0b0f14;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px 10px;
  text-align:center;
  cursor:pointer;
  transition:.15s;
  position:relative;
}
.fast-box:hover{ transform:translateY(-1px); }
.fast-box.selected{ outline:2px solid rgba(24,196,102,.55); }

.fast-number{
  font-size:28px;
  font-weight:900;
  display:block;
  line-height:1;
}

.fast-price{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:rgba(255,255,255,.75);
  font-weight:800;
}

.fast-text{
  display:block;
  margin-top:6px;
  font-size:12px;
  letter-spacing:.4px;
  opacity:.92;
  font-weight:800;
}

.fast-box.popular{
  background:var(--greenSoft);
  color:#000;
  border:none;
}
.fast-box.popular .fast-price,
.fast-box.popular .fast-text{ color:rgba(0,0,0,.78); }

.popular-tag{
  position:absolute;
  top:-12px;
  left:50%;
  transform:translateX(-50%);
  background:var(--green2);
  color:#fff;
  font-size:10px;
  font-weight:900;
  padding:4px 10px;
  border-radius:999px;
  box-shadow:0 6px 14px rgba(0,0,0,.25);
}

/* ===========================
   QUANTIDADE
=========================== */
.qty-bar{
  margin-top:14px;
  background:#1b2733;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.qty-btn{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:#fff;
  font-size:20px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.qty-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.qty-value{
  flex:1;
  text-align:center;
  font-size:18px;
  font-weight:900;
  letter-spacing:.6px;
}

/* ===========================
   BOTÃO QUERO PARTICIPAR
=========================== */
.fast-participar{
  margin-top:12px;
  width:100%;
  background:#1a7f4a;
  border:none;
  color:#fff;
  border-radius:14px;
  padding:16px 14px;
  cursor:pointer;
  box-shadow:0 12px 22px rgba(0,0,0,.20);
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
}

.fast-participar .label{
  font-weight:900;
  font-size:17px;
  letter-spacing:.2px;
  text-transform:uppercase;
}
.fast-participar .leftIcon{
  position:absolute;
  left:14px;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  opacity:.95;
}
.fast-participar .total{
  position:absolute;
  right:14px;
  font-weight:900;
  font-size:15px;
}

/* ===========================
   ACCORDION (Regulamento)
=========================== */
.accordion{
  margin:6px 14px 0;
  background:#1b2733;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:14px 14px;
  cursor:pointer;
  max-width:520px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.accordion .acc-label{
  width:100%;
  text-align:center;
  font-weight:900;
}

#reg-seta{
  position:absolute;
  right:14px;
  font-size:18px;
  font-weight:900;
}

.regulamento-content{
  margin:0 14px 14px;
  background:#0f1722;
  border:1px solid rgba(255,255,255,.08);
  border-top:none;
  border-radius:0 0 14px 14px;
  padding:14px 14px;
  display:none;
  font-size:13px;
  line-height:1.55;
  color:rgba(255,255,255,.85);
}

/* ===========================
   RASPADINHAS
=========================== */
.section{ padding:14px 16px 6px; }

.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:20px;
  font-weight:900;
}

.section-title small{
  font-size:13px;
  font-weight:800;
  color:rgba(255,255,255,.55);
}

.badge-counter{
  border:2px solid rgba(24,196,102,.55);
  color:rgba(24,196,102,.95);
  font-weight:900;
  border-radius:10px;
  padding:2px 8px;
  font-size:12px;
  min-width:52px;
  text-align:center;
}

.tabs{
  margin-top:10px;
  display:flex;
  gap:14px;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.08);
  padding-bottom:8px;
}

.tab{
  background:transparent;
  border:none;
  color:rgba(255,255,255,.55);
  font-weight:900;
  cursor:pointer;
  padding:6px 0;
  position:relative;
}
.tab.active{ color:#fff; }
.tab.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-9px;
  width:100%;
  height:3px;
  border-radius:999px;
  background:var(--green);
}

.rasp-list{ margin-top:12px; }

.rasp-combo-row{
  background:#1a7f4a;
  border-radius:14px;
  padding:12px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.rasp-combo-row .left{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.rasp-combo-row .mini{
  font-size:11px;
  opacity:.90;
  font-weight:800;
}
.rasp-combo-row .big{
  font-size:18px;
  font-weight:900;
}
.rasp-combo-row .mid{
  font-size:12px;
  opacity:.92;
  font-weight:800;
}
.rasp-combo-row .right{
  text-align:right;
  font-weight:900;
  font-size:16px;
  line-height:1.05;
}

.rasp-ganhador{
  background:#1a7f4a;
  border-radius:14px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.ganhador-premio{
  background:#fff;
  color:#000;
  border-radius:10px;
  padding:5px 12px;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}

.ganhador-nome{
  font-weight:900;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:6px;
}

.show-more{
  text-align:center;
  margin-top:6px;
  color:rgba(24,196,102,.95);
  font-weight:900;
  cursor:pointer;
  user-select:none;
}

/* ===========================
   TÍTULOS PREMIADOS
=========================== */
.premiados{ padding:10px 16px 6px; }

.premio-item{
  background:#0f1722;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.premio-left{
  background:#ffffff;
  color:#000;
  border-radius:10px;
  padding:6px 10px;
  font-weight:900;
  font-size:12px;
  min-width:78px;
  text-align:center;
}

.premio-mid{
  flex:1;
  font-weight:900;
  font-size:12px;
  color:rgba(255,255,255,.92);
}

.premio-right{
  font-weight:900;
  font-size:12px;
  color:rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  gap:6px;
}
.premio-right.available{
  color:rgba(255,255,255,.72);
  font-weight:800;
}

/* ===========================
   BOTÃO GRUPO FIXO
=========================== */
.grupo-float{
  position:fixed;
  right:16px;
  bottom:calc(16px + env(safe-area-inset-bottom));
  z-index:9999;
  background:#1a7f4a;
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  box-shadow:0 10px 20px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
}
.grupo-float svg{ width:18px; height:18px; }

/* ===========================
   FOOTER
=========================== */
.green-divider{
  width:100%;
  height:12px;
  background:var(--green);
  border-radius:0 0 14px 14px;
  margin:18px 0 10px;
}

.footer{
  max-width:520px;
  margin:0 auto 30px;
  padding:14px 14px 30px;
}

.footer-social{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:14px;
}

.social-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.social-btn svg{ width:20px; height:20px; opacity:.9; }

.footer-legal{
  margin-top:16px;
  background:#0f1722;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px 14px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  line-height:1.55;
}

/* ===========================
   MODAIS
=========================== */
.modal-overlay,
.modal-overlay2{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(6px);
  justify-content:center;
  align-items:center;
  z-index:99999;
}

.modal-box,
.modal-box2,
.modal-pix-box{
  width:92%;
  max-width:460px;
  background:#0c1324;
  border:1px solid #1f2a40;
  border-radius:18px;
  padding:26px 22px;
  animation:fadeIn .25s ease-in-out;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
}

@keyframes fadeIn{
  from{ opacity:0; transform:scale(.96); }
  to{ opacity:1; transform:scale(1); }
}

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.modal-title{ font-size:20px; font-weight:900; }

.modal-close{
  background:#d93b3b;
  border:none;
  color:#fff;
  font-weight:900;
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
}

.modal-info{
  background:#0d1b33;
  padding:10px;
  border-radius:10px;
  border:1px solid #20345a;
  text-align:center;
  font-size:14px;
  margin-bottom:14px;
}

.form-group{ margin-bottom:12px; }
.form-group input{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:1px solid #1f2a40;
  background:#0a0f1c;
  color:#fff;
  font-size:15px;
  outline:none;
  transition:.2s;
}
.form-group input::placeholder{ color:#7f8ca3; }
.form-group input:focus{ border-color:var(--green); }

.alert-info{
  font-size:13px;
  text-align:center;
  opacity:.8;
  margin:6px 0 10px;
}

.modal-termos{
  font-size:10px;
  text-align:center;
  opacity:.60;
  line-height:1.35;
  margin:6px 0 14px;
  padding:0 6px;
}
.modal-termos .termos-link{
  color:var(--green);
  font-weight:900;
}

.btn-confirmar,
.btn-reserva,
.pix-copy-btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  background:var(--green);
  color:#000;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
}
.btn-confirmar:disabled,
.btn-reserva:disabled,
.pix-copy-btn:disabled{
  opacity:.7;
  cursor:not-allowed;
}

.btn-voltar{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #404b63;
  background:transparent;
  color:#e5e7eb;
  font-size:15px;
  cursor:pointer;
}
.btn-voltar:hover{ background:#111827; }

/* Checkout avatar */
.checkout-user{
  display:flex;
  align-items:center;
  border-top:1px solid #1f2a40;
  border-bottom:1px solid #1f2a40;
  padding:14px 0;
  margin-bottom:16px;
  gap:14px;
}

.checkout-avatar{
  width:52px;
  height:52px;
  border-radius:10px;
  background:#e5e7eb;
  position:relative;
  overflow:hidden;
}
.checkout-avatar::before{
  content:"";
  position:absolute;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  width:20px;
  height:20px;
  border-radius:999px;
  background:#9ca3af;
}
.checkout-avatar::after{
  content:"";
  position:absolute;
  bottom:8px;
  left:50%;
  transform:translateX(-50%);
  width:28px;
  height:16px;
  border-radius:999px 999px 0 0;
  background:#9ca3af;
}

.checkout-name{ font-size:16px; font-weight:900; }
.checkout-phone{ font-size:13px; opacity:.7; }

/* PIX */
.pix-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:18px;
  margin-bottom:16px;
  font-weight:900;
}
.pix-close{ font-size:22px; cursor:pointer; }

.pix-resumo{
  background:#0c722b;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  margin-bottom:14px;
}

.pix-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.pix-input-area{ width:100%; }

.pix-input-area textarea{
  width:100%;
  min-height:72px;
  border-radius:12px;
  border:1px solid #374151;
  background:#020617;
  color:#e5e7eb;
  font-size:12px;
  padding:10px;
  resize:none;
}

.pix-info{
  font-size:11px;
  opacity:.7;
  text-align:center;
}

/* ✅ QR BOX (novo) */
#pixQrBox{
  width:220px;
  max-width:70vw;
  background:#fff;
  padding:10px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}

#pixQrBox img,
#pixQrBox canvas{
  width:220px !important;
  height:220px !important;
  max-width:70vw;
  max-height:70vw;
  border-radius:10px;
}

.pix-qr-msg{
  color:#000;
  font-weight:900;
  font-size:13px;
  text-align:center;
}

/* ===========================
   MODAL IFRAME (fallback)
=========================== */
.modal-embed-box{
  width:94%;
  max-width:520px;
  background:#0c1324;
  border:1px solid #1f2a40;
  border-radius:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  overflow:hidden;
}

#bestfyFrame{
  width:100%;
  height:72vh;
  border:0;
  background:#fff;
}

/* ===========================
   RESPONSIVO EXTRA
=========================== */
@media (max-width:360px){
  .rifa-title{ font-size:18px; }
  .fast-number{ font-size:26px; }
  .fast-participar .label{ font-size:16px; }
  .grupo-float{ padding:9px 10px; }
}
