/* -- FONTES E VARIÁVEIS -- */
:root {
  --primary-black: #0e0e0e;
  --secondary-black: #e9ebee;
  --background-grey: #e9ebee;
  --primary-green: #008443;
  --light-green: #15b871;
  --tab-green: #02c17b;
  --tab-pink: #f15971;
  --primary-blue: #0d6efd;
  --primary-red: #d92323;
  --text-yellow: #ffc107;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--secondary-black);
  font-family: var(--font-family);
  color: #fff;
}

/* -- Classes de Fonte -- */
.font-xsss {
  font-size: .6875rem;
}
.font-xss {
  font-size: .75rem;
}
.font-xs {
  font-size: .8125rem;
}
.font-md {
  font-size: 1rem;
}
.font-lgg {
  font-size: 2rem;
}

/* -- CABEÇALHO -- */
.Header_appHeader__3lDdI {
  background-color: #1a3a52;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid #333;
}
.Header_appHeaderBrand__3GlmQ {
  height: 70px;
  width: 150px;
  object-fit: contain;
}
.text-yellow {
  color: var(--text-yellow) !important;
}

/* -- CONTEÚDO PRINCIPAL -- */
.app-main-off {
  background-color: var(--background-grey);
  padding: 20px 0;
}
.app-main.container {
  max-width: 760px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
}
.sorteio-header {
  display: block !important;
}
.SorteioTpl_sorteioTpl__2s2Wu {
  position: relative;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  margin: -25px -25px 20px -25px;
}
.SorteioTpl_imagemContainer__2-pl4 {
  height: 290px;
}
.SorteioTpl_imagem__2GXxI {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blur-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.SorteioTpl_info__t1BZr {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
.SorteioTpl_title__3RLtu {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin: 5px 0;
  text-shadow: 1px 1px 3px #000;
}

/* -- ÁREA DE COMPRA -- */
.sorteio-preco {
  background-color: #f7f7f7;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.sorteio-preco .tag {
  border-radius: 4px;
  font-weight: bold;
  color: #000;
}
.bg-cor-primaria {
  background-color: #000;
}
.text-cor-primaria-link {
  color: #fff;
}

.vendasExpressNumsSelect .item-content {
  cursor: pointer;
  transition: all 0.18s ease;
  will-change: transform, box-shadow, background-color;
}

.vendasExpressNumsSelect .item-content:hover,
.vendasExpressNumsSelect .item-content.active,
.vendasExpressNumsSelect .item:focus-within .item-content,
.vendasExpressNumsSelect .item-content:focus-visible {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 184, 113, 0.14);
  transform: translateY(-3px);
}

.vendasExpressNumsSelect .item-content p,
.vendasExpressNumsSelect .item-content div {
  color: inherit;
}

.vendasExpressNumsSelect.v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin: 20px 0;
}
.vendasExpressNumsSelect .item {
  cursor: pointer;
}
.vendasExpressNumsSelect .item-content {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 5px;
  text-align: center;
  transition: all 0.2s ease;
}
.vendasExpressNumsSelect .item-content:hover {
  border-color: var(--primary-green);
}
.vendasExpressNumsSelect .item-content div {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}
.vendasExpressNumsSelect .item-content p {
  font-size: 0.7rem;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.8;
}

.compra-final-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.quantity-selector-box {
  display: flex;
  align-items: center;
  background-color: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
}
.qty-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  cursor: pointer;
}
.circular-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
}
#quantity-input {
  border: none;
  background: transparent;
  font-weight: bold;
  font-size: 1.2rem;
  width: 70px;
}
.btn-participar-sorteio {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}
.btn-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.btn-text-wrapper span {
  font-size: 0.9rem;
  font-weight: normal;
}

/* -- DESCRIÇÃO/REGULAMENTO -- */
.description-section {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 20px;
  color: #333;
}
.description-header {
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.description-body {
  padding: 0 15px 15px 15px;
  font-size: .85rem;
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #ddd;
}
.description-body p {
  margin-bottom: 1rem;
}

/* -- TÍTULOS PREMIADOS -- */
.app-titulos-premiados {
  color: #333;
  margin-top: 25px;
}
.trophy-icon {
  font-size: 30px;
}
.title-text {
  font-size: 1.1rem;
  font-weight: bold;
}
.bg-gradient-blue {
  background: var(--primary-blue);
  border: none;
}
.tab-controls .btn {
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}
.tab-controls .btn:hover {
  filter: brightness(0.9);
  color: #fff;
}
.tab-controls .btn.active {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
}
.tab-controls .btn:not(.active) {
  opacity: 0.7;
}
.tab-controls .btn .count {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-left: 5px;
}
.bg-gradient-green2 {
  background: var(--tab-green);
}
.bg-gradient-pink {
  background: var(--tab-pink);
}

.prize-list-wrapper {
  max-height: 295px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}
.prize-list-wrapper.expanded {
  max-height: 4000px;
}
.app-titulos-premiados--item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}
.app-titulos-premiados--item .status {
  color: var(--light-green);
  font-weight: bold;
}
#list-sorteados {
  background: transparent;
  border: none;
  max-height: 280px;
}
#list-sorteados.expanded {
  max-height: 4000px;
}
.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Alterando fundo para preto e texto para branco */
  background-color: #000;
  color: #fff;
  padding: 8px 15px;
  border-radius: 25px;
  margin-bottom: 5px;
  font-size: 0.9rem;
}
.winner-item i {
  color: var(--text-yellow);
  font-size: 1.1rem;
}

/* -- RODAPÉ -- */
.app-footer {
  background: var(--secondary-black);
  color: black;
  padding: 20px 0;
  line-height: 1.7;
  text-align: center;
}
.rodape-logos img {
  max-width: 100px;
  max-height: 50px;
  margin: 0 10px;
  object-fit: contain;
}
.google-safe-browsing {
  text-align: center;
  padding-top: 15px;
}
.google-safe-browsing img {
  max-width: 150px;
  height: auto;
}

/* -- CHECKOUT PAGE -- */
.checkout-page-container {
  max-width: 650px;
  margin: 20px auto;
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.app-form-checkout .form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #333;
}
.app-form-checkout .form-control {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 12px;
}
.btn-concluir {
  background-color: var(--primary-green);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}
.btn-concluir:hover {
  background-color: #006a35;
}

/* -- PIX DISPLAY AREA -- */
#pix-display-area {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}
#pix-display-area h2 {
  color: #333;
  margin-bottom: 20px;
}
#pix-qrcode {
  max-width: 300px;
  margin: 20px auto;
  display: block;
}
#pix-copia-cola {
  width: 100%;
  padding: 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  margin: 15px 0;
}
#copy-pix-key-btn {
  background: var(--primary-green);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
#copy-pix-key-btn:hover {
  background: #006a35;
}

/* -- CLASSES GERAIS -- */
.hidden {
  display: none;
}

/* -- RESPONSIVO MOBILE -- */
@media (max-width: 768px) {
  .app-main-off {
    padding: 0;
  }
  .app-main.container {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    background-color: #fff;
  }
  .SorteioTpl_sorteioTpl__2s2Wu {
    margin: -15px -15px 15px -15px;
    border-radius: 0;
  }
  .SorteioTpl_imagemContainer__2-pl4 {
    height: 250px;
  }
  .SorteioTpl_title__3RLtu {
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 900;
  }
  .vendasExpressNumsSelect.v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .compra-final-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  .quantity-selector-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0;
  }
  .qty-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 0 10px;
    color: #555;
  }
  #quantity-input {
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 1.2rem;
  }
  .btn-participar-sorteio {
    flex-basis: 50%;
    height: 52px;
    padding: 5px;
    font-size: 1rem;
    gap: 8px;
  }
  .btn-text-wrapper {
    align-items: flex-start;
  }
  .btn-text-wrapper strong {
    font-size: 1rem;
  }
  .btn-participar-sorteio > i {
    font-size: 1.5rem;
  }
  .tab-controls .btn {
    padding: 12px 5px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .tab-controls .col-6 {
    padding: 0 4px;
  }
  .checkout-page-container {
    margin: 0;
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
  }
  .app-form-checkout .row .col-md-6 {
    margin-bottom: 1rem;
  }
}
