/* ALCIR BINGO - complementos mínimos (tema principal vem dos CSS originais) */

/* ========== LAYOUT GLOBAL — centralizar conteúdo (600px) ========== */
main {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 600px;
}

main:has(.admin-wrap) {
  max-width: 1100px;
}

.container.container-600,
header .container.container-600,
.admin-bar-top .container.container-600 {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  width: 100%;
}

footer .container.container-600 {
  margin-left: auto;
  margin-right: auto;
}

body {
  transition: opacity ease-in 0.2s;
}

.flash-wrap {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: min(560px, 92vw);
}

.flash-item {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.flash-item.sucesso { background: #d1e7dd; color: #0f5132; }
.flash-item.erro { background: #f8d7da; color: #842029; }
.flash-item.info { background: #cff4fc; color: #055160; }

/* ========== CAMPANHA / NÚMEROS (estilo Sorteio dos Primos) ========== */
.campanha-page {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

/* Espaço extra antes do rodapé (selo Google etc.) */
.campanha-rodape-espaco {
  height: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

body.page-campanha-compra .app-footer {
  padding-bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

body.page-campanha-compra .google-safe-browsing {
  margin-bottom: 0.5rem;
}

body.page-campanha-checkout .app-footer {
  padding-bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

body:has(.campanha-barra-auto:not(.campanha-barra-auto--hidden)) .app-footer {
  padding-bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px));
}

body:has(.sorteio_numerosSelecionadosOpen) .app-footer {
  padding-bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px));
}

/* Capa da campanha — imagem centralizada sem corte indevido */
.campanha-page .campanha-capa-card {
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 0 !important;
  overflow: hidden;
}

.campanha-page .campanha-capa-wrap {
  width: 100% !important;
  height: auto !important;
  min-height: 220px;
  max-height: 360px;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
  border-radius: 10px 10px 0 0;
}

.campanha-page .campanha-capa-img {
  width: 100% !important;
  height: auto !important;
  max-height: 360px;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  display: block;
  margin: 0 auto;
}

.sorteio-seletor-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.sorteio-seletor .seletor-item {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  flex: 0 0 auto;
}

.sorteio-seletor .seletor-item--livres {
  justify-self: start;
}

.sorteio-seletor .seletor-item--reservas {
  justify-self: center;
}

.sorteio-seletor .seletor-item--pagos {
  justify-self: end;
}

.sorteio-seletor .seletor-item .nome {
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  display: inline-flex;
  align-items: center;
  border-radius: 6px 0 0 6px;
}

.sorteio-seletor .seletor-item .num {
  min-width: 2rem;
  padding: 0.45rem 0.55rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 6px 6px 0;
}

.NumeroTpl_NumeroTpl__3eSjV {
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: default;
  user-select: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  position: relative;
}

.NumeroTpl_NumeroTpl__3eSjV.numero-ocupado {
  cursor: pointer;
}

.NumeroTpl_NumeroTpl__3eSjV.numero-ocupado:active {
  transform: scale(0.96);
}

.numero-item__valor {
  display: block;
  line-height: 1.2;
}

.numero-item__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  min-width: max-content;
  max-width: calc(100% + 24px);
  padding: 4px 8px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.numero-item__hint-situacao {
  display: block;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.numero-item__hint-nome {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.numero-item--hint-open .numero-item__valor {
  opacity: 0.35;
}

@keyframes numeroAtualizadoPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.numero-item--atualizado {
  animation: numeroAtualizadoPulse 0.8s ease-out 2;
}

.campanha-aviso-numeros {
  margin-bottom: 0.5rem;
}

.NumeroTpl_NumeroTpl__3eSjV.numero-livre {
  cursor: pointer;
}

.NumeroTpl_NumeroTpl__3eSjV.numero-livre:active {
  transform: scale(0.96);
}

.NumeroTpl_NumeroTpl__3eSjV.bg-cota.NumeroTpl_NumeroTplSelected__1pFkM,
.NumeroTpl_NumeroTpl__3eSjV.NumeroTpl_NumeroTplSelected__1pFkM {
  background-color: #343a40 !important;
}

.campanha-card-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.campanha-card-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.sorteio_numerosSelecionados {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 999;
  width: min(600px, calc(100vw - 24px));
  background: #fff;
  padding: 15px 10px 10px;
  margin: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sorteio_numerosSelecionados--hidden {
  transform: translateX(-50%) translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.sorteio_numerosSelecionadosOpen {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.btn-participar-sorteio {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px;
  padding: 5px 20px !important;
}

.btn-participar-sorteio .btn-comprar-conteudo {
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.btn-participar-sorteio .btn-preco-flutuante {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

.sorteio_numerosSelecionados .btn-participar-sorteio .btn-comprar-conteudo {
  padding-left: 72px;
  padding-right: 72px;
}

.vendasExpressNums .input-group .form-control {
  border-radius: 0;
  font-weight: 600;
}

.vendasExpressNums .br-t-r-0 { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.vendasExpressNums .br-b-r-0 { border-bottom-right-radius: 0 !important; }
.vendasExpressNums .br-t-l-0 { border-top-left-radius: 0 !important; }
.vendasExpressNums .br-b-l-0 { border-bottom-left-radius: 0 !important; }

/* Barra fixa — compra automática */
.campanha-barra-auto {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 996;
  width: min(600px, 100vw);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.campanha-barra-auto--hidden {
  transform: translateX(-50%) translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.campanha-barra-auto__inner {
  padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  max-width: 600px;
  margin: 0 auto;
}

.campanha-barra-auto__titulo {
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.campanha-barra-auto__controles {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.campanha-barra-auto__qtd {
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
}

.campanha-barra-auto__qtd .form-control {
  min-width: 2.35rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.campanha-barra-auto__qtd .btn {
  flex-shrink: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.campanha-barra-auto__btn {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 380px) {
  .campanha-barra-auto__qtd {
    flex: 0 0 118px;
    width: 118px;
    min-width: 118px;
    max-width: 118px;
  }
}

/* Números selecionados — toque para remover */
.numero-preview-item {
  cursor: pointer;
  position: relative;
}

.numero-preview-item::after {
  content: '×';
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 0.65rem;
  line-height: 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.campanha-preview-scroll {
  max-height: 128px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.numero-preview-item:active {
  transform: scale(0.94);
  opacity: 0.85;
}

.sorteio_numerosSelecionadosOpen {
  z-index: 998;
}

.progresso-campanha {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.progresso-campanha-bar {
  height: 100%;
  background: #63ac49;
  border-radius: 999px;
}

.admin-wrap { max-width: 1100px; margin: 0 auto; }

.admin-bar-top {
  background: #fff;
  border-bottom: 1px solid var(--incrivel-border);
  position: sticky;
  top: 70px;
  z-index: 900;
}

.admin-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  margin-bottom: 1rem;
}

/* ========== ADMIN DASHBOARD ========== */
.admin-dashboard {
  padding-bottom: 1rem;
}

.admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 55%, #1a472a 100%);
  color: #fff;
}

.admin-hero__saudacao {
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-hero__titulo {
  font-weight: 700;
}

.admin-hero__data {
  opacity: 0.88;
}

.admin-hero__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-stat {
  position: relative;
  padding: 1rem 1rem 0.9rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  min-height: 100%;
}

.admin-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.admin-stat--verde::before { background: #198754; }
.admin-stat--azul::before { background: #0d6efd; }
.admin-stat--amarelo::before { background: #ffc107; }
.admin-stat--roxo::before { background: #6f42c1; }

.admin-stat__icone {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.admin-stat--verde .admin-stat__icone { background: rgba(25, 135, 84, 0.12); color: #198754; }
.admin-stat--azul .admin-stat__icone { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.admin-stat--amarelo .admin-stat__icone { background: rgba(255, 193, 7, 0.18); color: #997404; }
.admin-stat--roxo .admin-stat__icone { background: rgba(111, 66, 193, 0.12); color: #6f42c1; }

.admin-stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.65;
  font-weight: 600;
}

.admin-stat__valor {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.2rem 0;
  font-variant-numeric: tabular-nums;
}

.admin-stat__hint {
  opacity: 0.6;
}

.admin-mini-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-height: 100%;
}

.admin-mini-stat__label {
  font-size: 0.78rem;
  opacity: 0.75;
}

.admin-mini-stat strong {
  font-size: 1.1rem;
}

.admin-mini-stat--gateway strong {
  color: #198754;
}

.admin-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.admin-card__subtitle {
  opacity: 0.65;
}

.admin-card--table {
  padding: 0;
  overflow: hidden;
}

.admin-card--table .admin-card__header {
  padding: 1rem 1rem 0;
  margin-bottom: 0.75rem;
}

.admin-table {
  font-size: 0.82rem;
}

.admin-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.65;
  border-bottom-width: 1px;
  white-space: nowrap;
  padding: 0.65rem 0.75rem;
  background: #f8f9fa;
}

.admin-table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
}

.admin-table__nome {
  font-weight: 600;
  font-size: 0.82rem;
}

.admin-table__valor {
  font-weight: 700;
  white-space: nowrap;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-badge--pago { background: rgba(25, 135, 84, 0.12); color: #146c43; }
.admin-badge--pendente { background: rgba(255, 193, 7, 0.2); color: #856404; }
.admin-badge--cancelado { background: rgba(108, 117, 125, 0.15); color: #495057; }
.admin-badge--asaas { background: rgba(13, 110, 253, 0.12); color: #0a58ca; }
.admin-badge--flowin { background: rgba(111, 66, 193, 0.12); color: #59359a; }
.admin-badge--manual { background: rgba(33, 37, 41, 0.08); color: #212529; }

.admin-pedido-acoes {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.admin-pedido-acoes .btn {
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
}

.admin-lista-campanhas__item,
.admin-lista-clientes__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-lista-campanhas__item:last-child,
.admin-lista-clientes__item:last-child {
  border-bottom: none;
}

.admin-lista-clientes__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #198754);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-lista-clientes__avatar--ouro {
  background: linear-gradient(135deg, #b8860b, #ffc107);
  color: #212529;
}

.admin-cliente-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.admin-badge--admin {
  background: rgba(33, 37, 41, 0.1);
  color: #212529;
  margin-left: 0.25rem;
}

.admin-lista-ganhadores__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-lista-ganhadores__item:last-child {
  border-bottom: none;
}

.admin-card--danger {
  border: 1px solid rgba(220, 53, 69, 0.25);
  background: rgba(220, 53, 69, 0.04);
}

.admin-table--clientes tbody tr:hover {
  background: rgba(25, 135, 84, 0.04);
}

.admin-busca-clientes .input-group-text {
  border-right: 0;
}

.admin-busca-clientes .form-control {
  border-left: 0;
}

.rounded-10 {
  border-radius: 12px !important;
}

.admin-wrap .btn-outline-dark.active,
.admin-wrap a.btn-outline-dark.active {
  background: #212529;
  color: #fff;
}

/* ========== PAGAMENTO PIX ========== */
.pagamento-page .pagamento-resumo-campanha {
  padding: 8px;
}

.pagamento-timer {
  background: #fff;
  padding: 1rem 1.1rem;
  border-left: 4px solid #32bcad;
}

.pagamento-timer-valor {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pagamento-timer-icone {
  font-size: 2rem;
  opacity: 0.35;
  color: #32bcad;
}

.pagamento-timer-urgente {
  border-left-color: #ef4444;
  background: #fff5f5;
}

.pagamento-timer-urgente .pagamento-timer-valor {
  color: #dc2626;
}

.pagamento-timer-expirado .pagamento-timer-valor {
  color: #6b7280;
}

.pagamento-pix-card {
  background: #fff;
  overflow: hidden;
}

.pagamento-pix-header {
  background: linear-gradient(135deg, #32bcad 0%, #0d9488 100%);
  color: #fff;
  padding: 1rem 1.1rem;
}

.pagamento-pix-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.pagamento-pix-body {
  padding: 1.25rem 1.1rem 1.1rem;
}

.pagamento-valor-label {
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.pagamento-valor {
  font-size: 2rem;
  font-weight: 700;
  color: var(--incrivel-bgLink);
  margin-bottom: 1rem;
}

.pagamento-qr-wrap {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 2px solid #eef1f3;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 0.5rem;
}

.pagamento-qr-img {
  width: min(240px, 72vw);
  height: auto;
  display: block;
}

.pagamento-copia-input {
  font-size: 0.72rem !important;
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.pagamento-btn-copiar {
  min-height: 46px;
  font-weight: 600;
}

.pagamento-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compra-cota-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.pagamento-passos {
  background: #fff;
}

.pagamento-passo {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.pagamento-passo:last-child {
  margin-bottom: 0;
}

.pagamento-passo-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--incrivel-primaria);
  color: var(--incrivel-primariaColor);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagamento-aprovado-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pagamento-aprovado-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.pagamento-aprovado-card {
  width: min(100%, 360px);
  background: #fff;
  padding: 2rem 1.5rem 1.75rem;
  animation: pagamentoAprovadoPop 0.45s ease;
}

.pagamento-aprovado-icone {
  font-size: 3.5rem;
  color: #10b981;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.pagamento-aprovado-body {
  overflow: hidden;
}

@keyframes pagamentoAprovadoPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* PWA install bar — só aparece quando necessário; não ocupa espaço quando oculta */
.pwa-install-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pwa-install-bar--visible {
  display: block;
}

.pwa-install-bar.pwa-install-bar--done {
  display: none !important;
}

/* Header: menu Campanhas / Meus títulos / Admin sempre visível */
.Header_appHeader__3lDdI {
  height: auto !important;
  min-height: 130px;
  overflow: visible !important;
}

.Header_appHeader__3lDdI.scroll-nav {
  height: auto !important;
}

.nav-principal-horizontal {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pwa-install-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.pwa-install-bar__text {
  flex: 1 1 180px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.pwa-install-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Splash ao abrir o app (logo do site) */
.pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e3a5f;
  transition: opacity 0.45s ease;
}

.pwa-splash--hide {
  opacity: 0;
  pointer-events: none;
}

.pwa-splash__logo {
  max-width: min(240px, 55vw);
  max-height: 40vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

/* Compartilhar */
.app-title--com-acoes {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.campanha-capa-acoes {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.btn-compartilhar {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background: #fff !important;
  color: #111 !important;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-compartilhar:hover,
.btn-compartilhar:focus {
  background: #f5f5f5 !important;
  color: #000 !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

.btn-compartilhar--campanha {
  margin-top: 0.15rem;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  z-index: 10001;
  max-width: min(92vw, 360px);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.share-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Botão flutuante WhatsApp (campanha) */
.btn-whatsapp-float {
  position: fixed;
  left: 14px;
  bottom: 22px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, opacity 0.25s ease, bottom 0.25s ease;
}

.btn-whatsapp-float i {
  font-size: 1.25rem;
  line-height: 1;
}

.btn-whatsapp-float:active {
  transform: scale(0.96);
}

.btn-whatsapp-float--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-120%) scale(0.8);
}

body:has(.campanha-barra-auto:not(.campanha-barra-auto--hidden)) .btn-whatsapp-float:not(.btn-whatsapp-float--hidden) {
  bottom: 100px;
}

@media (max-width: 400px) {
  .btn-whatsapp-float span {
    display: none;
  }
  .btn-whatsapp-float {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* Pagamento — botão comprovante após 40s */
.pagamento-comprovante {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pagamento-comprovante--visible {
  opacity: 1;
  transform: translateY(0);
}

.pagamento-btn-comprovante {
  background: #25d366 !important;
  border-color: #25d366 !important;
  font-weight: 600;
}

.pagamento-btn-comprovante:hover {
  background: #1ebe5d !important;
  border-color: #1ebe5d !important;
}

/* Meus títulos */
.meus-numeros-page {
  padding-bottom: 2rem;
}

.meus-numeros-stat {
  background: #fff;
  padding: 0.75rem 0.5rem;
}

.meus-numeros-stat__valor {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.meus-numeros-stat__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 0.15rem;
}

.meus-numeros-stat--pendente .meus-numeros-stat__valor {
  color: #d97706;
}

.meus-numeros-stat--pago .meus-numeros-stat__valor {
  color: #16a34a;
}

.meus-numeros-card {
  background: #fff;
  overflow: hidden;
}

.meus-numeros-card__top {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0;
}

.meus-numeros-card__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.meus-numeros-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meus-numeros-card__titulo {
  font-weight: 600;
  line-height: 1.25;
}

.meus-numeros-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  opacity: 0.7;
  margin-top: 0.35rem;
}

.meus-numeros-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.meus-numeros-badge--pago {
  background: #dcfce7;
  color: #166534;
}

.meus-numeros-badge--pendente {
  background: #fef3c7;
  color: #92400e;
}

.meus-numeros-badge--cancelado {
  background: #f3f4f6;
  color: #6b7280;
}

.meus-numeros-card__body {
  padding: 0.85rem;
}

.meus-numeros-card__resumo {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.meus-numeros-card__valor {
  color: var(--incrivel-primaria, #1e3a5f);
  font-size: 1.05rem;
}

.meus-numeros-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.meus-numeros-num {
  min-width: 42px;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.meus-numeros-num--pago {
  background: #22c55e;
  color: #fff;
}

.meus-numeros-num--reserva {
  background: #0ea5e9;
  color: #fff;
}

.meus-numeros-card__acoes {
  display: flex;
  gap: 0.5rem;
}

.meus-numeros-vazio {
  background: #fff;
}

.meus-numeros-vazio__icone {
  font-size: 2.5rem;
  opacity: 0.35;
}

/* Páginas legais (termos, privacidade) */
.pagina-legal {
  padding-bottom: 2rem;
}

.pagina-legal__header .app-title h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagina-legal__intro,
.pagina-legal__indice,
.pagina-legal__secao,
.pagina-legal__footer {
  background: #fff;
  padding: 1rem 1.1rem;
}

.pagina-legal__intro p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #334155;
}

.pagina-legal__indice-titulo {
  color: var(--incrivel-primaria, #1e3a5f);
}

.pagina-legal__indice-lista {
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.9;
}

.pagina-legal__indice-lista a {
  color: var(--incrivel-primaria, #1e3a5f);
  text-decoration: none;
  font-weight: 500;
}

.pagina-legal__indice-lista a:hover {
  text-decoration: underline;
}

.pagina-legal__corpo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pagina-legal__secao-titulo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--incrivel-primaria, #1e3a5f);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
}

.pagina-legal__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--incrivel-primaria, #1e3a5f);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagina-legal__lista {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.pagina-legal__lista li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #475569;
}

.pagina-legal__lista li:last-child {
  margin-bottom: 0;
}

.pagina-legal__lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.pagina-legal__footer {
  text-align: center;
}

/* Checkout */
.checkout-page {
  min-height: 100vh;
  background: #f1f5f9;
  padding-bottom: 2rem;
}

.checkout-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.checkout-page__titulo {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.checkout-page__fechar {
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  text-decoration: none;
  padding: 0 0.25rem;
}

.checkout-page__body {
  padding-top: 1rem;
}

.checkout-resumo,
.checkout-identificado,
.checkout-form {
  background: #fff;
  padding: 1rem 1.1rem;
}

.checkout-resumo__titulo {
  font-size: 0.95rem;
  line-height: 1.35;
}

.checkout-resumo__numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.checkout-num-pill {
  background: #334155;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.checkout-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-btn-finalizar {
  font-weight: 600;
  font-size: 1rem;
}

.checkout-form .form-control {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}
