:root{
  --bg1:#eaf5ee;
  --bg2:#e7f0ff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;

  --green:#0b7a2a;
  --green2:#0a5f21;
  --gold:#d6a100;
  --blue:#2563eb;

  --shadow: 0 18px 60px rgba(15, 23, 42, .10);
  --radius: 22px;
  --radius2: 18px;

  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; width:100%; max-width:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 20%, var(--bg1), transparent 60%),
              radial-gradient(1200px 700px at 80% 40%, #fff7d8, transparent 55%),
              radial-gradient(1200px 700px at 70% 90%, var(--bg2), transparent 55%),
              #f3f6f4;

  overflow-x: hidden; /* elimina rolagem lateral */
}

/* mídia sempre contida */
img, svg, video, canvas { max-width: 100%; height: auto; display:block; }

.page{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 56px;
}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(229,231,235,.7);
}
.topbar__inner{
  max-width:1180px;
  margin:0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.brand__logo{ width:42px; height:42px; border-radius:12px; object-fit:contain; background:#fff; }
.brand__text{ min-width:0; }
.brand__title{ font-weight:900; line-height:1.1; }
.brand__subtitle{ color:var(--muted); font-size:13px; }

.pillBtn{
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--line);
  background:#fff;
  padding: 12px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  white-space: nowrap;
}
.dot{
  width:10px; height:10px; border-radius:999px; background:#16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.14);
}
.dot--green{background:#16a34a}
.dot--gold{background:var(--gold); box-shadow: 0 0 0 4px rgba(214,161,0,.18)}
.dot--blue{background:var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.16)}

.hero{ margin-top:14px; }
.hero__banner{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
  background: #07170c;
}
.hero__img{ width:100%; height:260px; object-fit:cover; display:block; }

.hero__badge--overlay,
.hero__pricePill--overlay{
  max-width: calc(100% - 36px);
}

.hero__fallback{
  display:none;
  height:260px;
  padding: 26px;
  background: linear-gradient(105deg, rgba(11,122,42,.95), rgba(214,161,0,.85), rgba(37,99,235,.75));
  color:#fff;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
}
.hero__headline{ font-size:42px; font-weight:900; letter-spacing:-.02em; }
.hero__subhead{ font-size:18px; font-weight:700; opacity:.95; }

.hero__badge{
  display:inline-flex;
  background: rgba(255,255,255,.9);
  color:#0f172a;
  padding: 10px 14px;
  border-radius:999px;
  font-weight:900;
  width:max-content;
}
.hero__badge--overlay{
  position:absolute; left:18px; top:18px;
  background: rgba(255,255,255,.92);
}

.hero__pricePill{
  display:flex; align-items:center; gap:10px;
  padding: 10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.92);
  width:max-content;
  font-weight:900;
  flex-wrap: wrap;
}
.hero__pricePill--overlay{
  position:absolute; right:18px; bottom:18px;
}
.hero__price{
  background: #ffe9a8;
  padding: 8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
}

/* GRID */
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:start;
  min-width:0;
}
.card{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width:0; /* evita overflow */
}

.h2{ margin:0; font-size:28px; font-weight:900; letter-spacing:-.02em; }
.muted{ margin:8px 0 0; color:var(--muted); font-weight:600; }
.mutedStrong{ color:var(--muted); font-weight:800; }

.bullets{
  margin:14px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.bullets li{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
}
.bullets strong{ font-weight:900; }

.subcard{
  margin-top:16px;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  padding: 16px;
  min-width:0;
}
.subcard__head{ display:flex; gap:12px; align-items:center; }
.iconSquare{
  width:44px; height:44px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: #eaf7ee;
  border: 1px solid rgba(229,231,235,.9);
  font-size:20px;
  flex: 0 0 auto;
}
.iconSquare--soft{ background:#eef2ff; }
.subcard__title{ font-weight:900; font-size:20px; }
.subcard__subtitle{ color:var(--muted); font-weight:700; font-size:13px; margin-top:2px; }

.comboGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  min-width:0;
}

/* Combo card melhorado */
.comboCard{
  border:1px solid rgba(229,231,235,.95);
  border-radius: 16px;
  padding: 14px 12px 12px;
  background:#fff;
  cursor:pointer;
  text-align:center;
  font-family:var(--font);
  position:relative;
  overflow:hidden; /* impede badge vazar */
  transition: transform .08s ease, border-color .08s ease, box-shadow .08s ease;
}
.comboCard:hover{ transform: translateY(-1px); }

.comboCard.isSelected{
  border-color: rgba(214,161,0,.55);
  box-shadow: 0 10px 24px rgba(214,161,0,.10);
  background: linear-gradient(180deg, #fff9e6, #ffffff);
}

/* Tag "Mais vendido" harmoniosa */
.comboTag{
  position:absolute;
  top: 10px;
  left: 10px;
  font-size:12px;
  font-weight:900;
  padding: 6px 10px;
  border-radius:999px;
  background: #d9fbe5;
  color: #0b7a2a;
  border:1px solid rgba(11,122,42,.18);
  max-width: calc(100% - 20px);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.comboQty{ font-weight:900; margin-top:14px; }
.comboSub{ color:var(--muted); font-weight:700; font-size:12px; margin-top:2px; }
.comboPrice{ font-weight:900; font-size:18px; margin-top:6px; }

.qtyRow{
  margin-top:12px;
  display:grid;
  grid-template-columns: 56px 92px 56px 1fr 220px;
  gap:10px;
  align-items:stretch;
  min-width:0;
}
.qtyBtn{
  border:none;
  border-radius: 16px;
  background:#111;
  color:#fff;
  font-size:26px;
  font-weight:900;
  cursor:pointer;
}
.qtyInput{
  border:1px solid rgba(229,231,235,.95);
  border-radius: 16px;
  text-align:center;
  font-size:18px;
  font-weight:900;
  outline:none;
  min-width:0;
}
.totalBox{
  border:1px solid rgba(229,231,235,.95);
  border-radius: 16px;
  padding: 10px 12px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.totalBox__label{ color:var(--muted); font-weight:800; font-size:12px; }
.totalBox__value{ font-size:24px; font-weight:900; letter-spacing:-.02em; }

.buyBtn{
  border:none;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--green), var(--green2));
  color:#fff;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow: 0 18px 34px rgba(11,122,42,.22);
  min-height:56px;
}
.buyBtn:disabled{ opacity:.55; cursor:not-allowed; }
.buyBtn__icon{ font-size:18px; }

.finePrint{
  margin-top:10px;
  color: var(--muted);
  font-weight:700;
  font-size:12px;
  line-height:1.3;
}

.inlineMsg{
  margin-top:10px;
  border-radius: 16px;
  padding: 12px 12px;
  font-weight:900;
  border:1px solid rgba(229,231,235,.95);
}
.inlineMsg--loading{ background:#f8fafc; color:#0f172a; }
.inlineMsg--error{ background:#ffe4e6; color:#9f1239; border-color: rgba(159,18,57,.2); }
.inlineMsg--ok{ background:#dcfce7; color:#166534; border-color: rgba(22,101,52,.2); }

.cardHead{ display:flex; gap:12px; align-items:flex-start; min-width:0; }

.btnRow{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.ghostBtn{
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight:900;
  cursor:pointer;
}

.sectionTitle{ margin-top:14px; font-weight:900; font-size:16px; }

.listBox{
  margin-top:8px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius: 18px;
  padding: 12px;
  min-width:0;
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.itemRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding: 12px 10px;
  border-bottom:1px solid rgba(229,231,235,.75);
}
.itemRow:last-child{ border-bottom:none; }
.itemLeft{ min-width:0; }
.itemTitle{ font-weight:900; }
.itemSub{ color:var(--muted); font-weight:700; font-size:13px; margin-top:2px; word-break:break-word; }
.itemRight{ text-align:right; }

.badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
}
.badge--ok{ background:#dcfce7; border-color: rgba(22,101,52,.2); color:#166534; }
.badge--wait{ background:#fff7d6; border-color: rgba(214,161,0,.2); color:#7a5a00; }

.footer{
  margin-top:20px;
  text-align:center;
  color: var(--muted);
  font-weight:700;
}
.footer__text{
  max-width:960px;
  margin:0 auto;
  font-size:12px;
  line-height:1.5;
  color:#6b7280;
}

.footer__link{
  display:inline-block;
  margin-top:15px;
  color:#0f172a;
  font-weight:900;
  text-decoration:underline;
}

.footer__copy{
  margin-top:15px;
}

/* ================= MODAL (corrigido: não some topo/rodapé) ================= */
.modalOverlay{
  position:fixed;
  inset:0;
  background: rgba(2, 6, 23, .55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  z-index: 9999;
}

.modal{
  width: min(860px, 100%);
  max-height: calc(100dvh - 28px);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(2,6,23,.35);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.modal__head{
  padding: 16px 16px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex: 0 0 auto;
}
.modal__title{ font-weight:900; font-size:20px; }
.modal__sub{ color:var(--muted); font-weight:700; margin-top:4px; font-size:13px; }
.modal__close{
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  width:40px; height:40px;
  border-radius: 12px;
  font-weight:900;
  cursor:pointer;
}

.modal__body{
  padding: 0 16px 14px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.modal__footer{
  padding: 14px 16px 16px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  border-top: 1px solid rgba(229,231,235,.7);
  flex-wrap: wrap;
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,.98);
}

.primaryBtn{
  border:none;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--green), var(--green2));
  color:#fff;
  padding: 14px 16px;
  font-weight:900;
  cursor:pointer;
  min-width: 160px;
}
.secondaryBtn{
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight:900;
  cursor:pointer;
  min-width: 120px;
}
.notice{
  border:1px solid rgba(214,161,0,.25);
  background:#fff7d6;
  border-radius: 16px;
  padding: 12px;
  font-weight:800;
  margin-top:10px;
}
.formGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap:10px;
  margin-top:10px;
}
.input{
  width:100%;
  border:1px solid rgba(229,231,235,.95);
  border-radius: 16px;
  padding: 14px 14px;
  font-weight:900;
  outline:none;
}
.label{ font-weight:900; margin-top:12px; }
.small{ color:var(--muted); font-weight:700; font-size:13px; }

.pixBox{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:14px;
  align-items:start;
}
.qr{
  width: 220px; height: 220px;
  border-radius: 18px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.qr img{ width:100%; height:100%; object-fit:cover; }
.copyBox{
  border:1px solid rgba(229,231,235,.95);
  border-radius: 18px;
  background:#fff;
  padding: 12px;
}
.copyCode{
  width:100%;
  min-height: 120px;
  resize:none;
  border:none;
  outline:none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight:800;
}
.copyBtn{
  margin-top:8px;
  width:100%;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius: 14px;
  padding: 12px;
  font-weight:900;
  cursor:pointer;
}

/* raspadinha: grid responsivo */
#scratchGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 720px){
  #scratchGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns:1fr; }
  .hero__img{ height:240px; }

  .qtyRow{ grid-template-columns: 56px 92px 56px 1fr; }
  .buyBtn{ grid-column: 1 / -1; min-height:60px; font-size:22px; }

  .pixBox{ grid-template-columns:1fr; }
  .qr{ width:100%; height:auto; aspect-ratio: 1/1; }
}

@media (max-width: 520px){
  .hero__img{ height:210px; }

  .comboGrid{ grid-template-columns:1fr; }

  .qtyRow{
    grid-template-columns: 56px 1fr 56px;
    grid-auto-rows:auto;
  }
  .totalBox{ grid-column: 1 / -1; }
  .buyBtn{ grid-column: 1 / -1; }

  .formGrid{ grid-template-columns:1fr; }

  .hero__badge--overlay{ left:12px; top:12px; }
  .hero__pricePill--overlay{ right:12px; bottom:12px; }
}


/* ===== UI Enhancements (combos + badges) ===== */

/* Combos: selection state + "mais vendido" highlight */
.comboCard.isSelected{
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.comboCard:active{ transform: translateY(0); }

.comboTag--best{
  background: linear-gradient(135deg, rgba(255, 72, 66, .18), rgba(255, 180, 0, .22));
  border-color: rgba(255, 120, 0, .28);
  animation: pulseTag 1.8s ease-in-out infinite;
}
@keyframes pulseTag{
  0%,100%{ transform: translateY(0); filter: saturate(1); }
  50%{ transform: translateY(-1px); filter: saturate(1.15); }
}

/* Qty row: evita quebrar no desktop (e adapta bem em telas menores) */
.qtyRow{
  grid-template-columns: 56px 92px 56px minmax(140px, 1fr) minmax(200px, 240px);
}
@media (max-width: 1100px){
  .qtyRow{
    grid-template-columns: 56px 92px 56px 1fr;
    grid-template-rows: auto auto;
  }
  .qtyRow .buyBtn{ grid-column: 1 / -1; }
}

/* Status badges (Pedidos) */
.statusBadge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  text-transform: none;
}
.statusIcon{ font-size: 14px; line-height: 1; }

.statusBadge--pending{ background: rgba(255, 200, 0, .16); border-color: rgba(255, 200, 0, .28); color: #7a4f00; }
.statusBadge--paid{ background: rgba(0, 200, 100, .14); border-color: rgba(0, 200, 100, .24); color: #0c5b2b; }
.statusBadge--expired{ background: rgba(120, 120, 120, .14); border-color: rgba(120, 120, 120, .24); color: #3a3a3a; }
.statusBadge--canceled{ background: rgba(255, 72, 66, .14); border-color: rgba(255, 72, 66, .24); color: #7a1c18; }
.statusBadge--refunded{ background: rgba(0, 120, 255, .12); border-color: rgba(0, 120, 255, .22); color: #0b3b7a; }
.statusBadge--neutral{ background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); color: #2c2c2c; }



/* --- Combos (presets) --- */
#comboGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 10px;
}
.comboBtn{
  position: relative;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 10px 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}
.comboBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  border-color: rgba(16, 120, 37, .35);
}
.comboBtn.isActive{
  border-color: rgba(16, 120, 37, .55);
  box-shadow: 0 12px 26px rgba(16, 120, 37, .16);
}
.comboTop{
  font-weight: 800;
  font-size: 13px;
  color: #0b1a2b;
  line-height: 1.15;
}
.comboBottom{
  margin-top: 4px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(11,26,43,.65);
}
.comboTag{
  position: absolute;
  top: -10px;
  right: 10px;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: .5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b1a2b;
  background: linear-gradient(90deg, #ffe08a, #ffd34d);
  box-shadow: 0 10px 16px rgba(0,0,0,.10);
}
@media (max-width: 980px){
  #comboGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  #comboGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Badges (status) --- */
.statusBadge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.8);
}
.badge--ok{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
  color: #136b2c;
}
.badge--wait{
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.25);
  color: #7a4a00;
}
.badge--cancel{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.25);
  color: #7a1616;
}
.badge--expired{
  background: rgba(148,163,184,.18);
  border-color: rgba(148,163,184,.28);
  color: #334155;
}
.badge--refund{
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.25);
  color: #1e3a8a;
}

/* ===== COMBOS / CARDS ===== */
.combo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 220px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.combo-card__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.combo-card__tickets {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0f172a;
}

.combo-card__scratch-wrap {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e7f7a9 0%, #fff3a6 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.combo-card__scratch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #0b4dbb;
  white-space: nowrap;
}

.combo-card__price {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: #16a34a;
}

.combo-card__old-price {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: #64748b;
  text-decoration: line-through;
}

.combo-card__buy {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

/* evita botão "quebrando" */
.combo-card__buy span {
  display: block;
  white-space: nowrap;
}

/* grade responsiva */
.combos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .combos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .combos-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .combo-card {
    min-height: auto;
    padding: 16px;
  }

  .combo-card__tickets {
    font-size: 24px;
  }

  .combo-card__scratch {
    font-size: 15px;
  }

  .combo-card__price {
    font-size: 28px;
  }

  .combo-card__buy {
    min-height: 50px;
    font-size: 15px;
  }
}


/* ===== AJUSTES MINIMOS ULTRA SORTE ===== */
#comboGrid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}

.comboBtn{
  min-height:148px;
  padding:18px 10px 14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  overflow:hidden;
}

.comboTop{
  width:100%;
  font-size:12px;
  line-height:1.06;
  font-weight:900;
  color:#0b1a2b;
  text-transform:uppercase;
  white-space:pre-line;
  letter-spacing:-.01em;
}

.comboBottom{
  width:100%;
  min-height:58px;
  margin-top:10px;
  padding:10px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(90deg,#24b9de 0%, #76cda4 52%, #f0d84e 100%);
  color:#fff;
  font-size:11px;
  line-height:1.02;
  font-weight:900;
  text-transform:uppercase;
  white-space:pre-line;
  letter-spacing:-.01em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
}

.comboTag{
  top:8px;
  right:auto;
  left:8px;
  max-width:54px;
  font-size:9px;
  padding:4px 7px;
}

.buyBtn{
  min-height:48px;
  border-radius:16px;
  font-size:16px;
  gap:8px;
  padding:0 14px;
  box-shadow:0 12px 24px rgba(11,122,42,.18);
}

.buyBtn__icon{
  font-size:14px;
}

.lotepMark{
  margin-top:12px;
  display:flex;
  justify-content:center;
  opacity:.96;
}

.lotepMark__svg{
  width:106px;
  height:auto;
}

@media (max-width: 1100px){
  #comboGrid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 640px){
  #comboGrid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .comboBtn{ min-height:138px; padding:16px 8px 12px; }
  .comboTop{ font-size:11px; }
  .comboBottom{ min-height:54px; font-size:10px; padding:8px 6px; }
  .buyBtn{ min-height:46px; font-size:15px; }
}


/* ===== AJUSTE FINAL MINIMO DOS COMBOS / CTA ===== */
#comboGrid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.comboBtn{
  min-height:138px;
  padding:14px 10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  overflow:hidden;
}

.comboTop{
  width:100%;
  min-height:42px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  white-space:normal;
  text-transform:uppercase;
  color:#0b1a2b;
  line-height:1;
}
.comboTop__num{
  display:block;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.03em;
}
.comboTop__label{
  display:block;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
}

.comboBottom{
  width:100%;
  min-height:54px;
  margin-top:8px;
  padding:8px 10px;
  border-radius:9px;
  background:linear-gradient(90deg,#24b9de 0%, #76cda4 52%, #f0d84e 100%);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
  white-space:normal;
}
.comboBottom__num{
  display:block;
  font-size:22px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  flex:0 0 auto;
}
.comboBottom__label{
  display:block;
  max-width:76px;
  font-size:10px;
  line-height:1.02;
  font-weight:900;
  text-align:left;
}

.comboTag{
  top:8px;
  left:8px;
  right:auto;
  max-width:48px;
  font-size:9px;
  padding:4px 7px;
}

.buyBtn{
  min-height:46px;
  padding:0 16px;
  width:100%;
  max-width:180px;
  justify-self:end;
  font-size:14px;
  gap:8px;
  box-shadow:0 12px 24px rgba(11,122,42,.18);
}
.buyBtn__icon{
  width:15px;
  height:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  flex:0 0 15px;
}
.buyBtn__icon svg{
  width:15px;
  height:15px;
  display:block;
}
.buyBtn__label{
  display:inline-block;
  line-height:1;
}

.lotepMark{
  margin-top:12px;
  display:flex;
  justify-content:center;
}
.lotepMark__img{
  width:96px;
  height:auto;
  object-fit:contain;
}

@media (max-width: 1100px){
  #comboGrid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px){
  #comboGrid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .comboBtn{ min-height:122px; padding:12px 6px 10px; }
  .comboTop__num{ font-size:16px; }
  .comboTop__label{ font-size:9px; }
  .comboBottom{ min-height:50px; padding:8px 6px; gap:6px; border-radius:16px; }
  .comboBottom__num{ font-size:18px; }
  .comboBottom__label{ max-width:58px; font-size:8px; }
  .qtyRow{ grid-template-columns: 52px 1fr 52px 1fr; }
  .qtyRow .buyBtn{ grid-column: 1 / -1; justify-self:stretch; max-width:none; }
}

/* ===== PATCH CIRÚRGICO: CTA abaixo no desktop, sem afetar mobile ===== */
@media (min-width: 1101px){
  .qtyRow{
    grid-template-columns: 56px 92px 56px minmax(220px, 1fr);
    grid-template-areas:
      "minus qty plus total"
      "buy   buy buy  buy";
    gap: 10px;
    align-items: stretch;
  }

  .qtyRow #minusBtn{ grid-area: minus; }
  .qtyRow #qtyInput{ grid-area: qty; }
  .qtyRow #plusBtn{ grid-area: plus; }
  .qtyRow .totalBox{ grid-area: total; }
  .qtyRow .buyBtn{
    grid-area: buy;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    margin-top: 10px;
  }
}

/* Safari / iPhone fixes */
html, body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

@supports (-webkit-touch-callout: none) {
  .scratch-card,
  .scratch-wrap,
  .scratch-stage,
  .scratch-grid,
  .scratch-overlay,
  .scratch-canvas {
    max-width: 100% !important;
    width: 100% !important;
  }

  .scratch-card,
  .scratch-wrap,
  .scratch-stage {
    overflow: hidden !important;
  }

  .scratch-grid {
    padding-right: 0 !important;
    margin-right: 0 !important;
  }
}

/* combos */
.combo-grid,
.combos-grid {
  gap: 12px !important;
}

.combo-card,
.combo-option {
  padding: 14px 12px !important;
}

.combo-card strong,
.combo-option strong,
.combo-qty {
  line-height: 1.05 !important;
}

.combo-scratch-badge,
.combo-chances,
.combo-raspadinhas {
  border-radius: 18px !important;
  padding: 10px 12px !important;
  min-height: auto !important;
}