/* ============================= */
/* 1. Variáveis CSS e Breakpoints */
:root {
  /* Brand Colors */
  --color-brand-primary-700: #0a5bb1;
  --color-brand-primary-500: #1090d0;

  --fa-font-solid:       normal 900 1em/1 "Font Awesome 6 Solid";
  --fa-font-regular:     normal 400 1em/1 "Font Awesome 6 Regular";
  --fa-font-light:       normal 300 1em/1 "Font Awesome 6 Light";
  --fa-font-thin:        normal 100 1em/1 "Font Awesome 6 Thin";
  --fa-font-duotone:     normal 900 1em/1 "Font Awesome 6 Duotone";
  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
  --fa-font-sharp-light:   normal 300 1em/1 "Font Awesome 6 Sharp";
  --fa-font-sharp-thin:    normal 100 1em/1 "Font Awesome 6 Sharp";
  --fa-font-brands:        normal 400 1em/1 "Font Awesome 6 Brands";

  /* ==== Breakpoints ==== */
  --bs-breakpoint-xs: 0;
  --bs-breakpoint-sm: 576px;
  --bs-breakpoint-md: 768px;
  --bs-breakpoint-lg: 992px;
  --bs-breakpoint-xl: 1200px;
  --bs-breakpoint-xxl: 1400px;
  /* Support Colors */
  --color-support-yellow-500: #ffcc00;
  --color-support-yellow-700: #e69600;
  --color-support-red-700: #c00811;
  --support-green-700: #21a366;

  /* Neutral */
  --color-neutral-black: #191c1f;
  --color-neutral-white: #ffffff;
  --color-neutral-200: #dbdde5;
  --color-neutral-300: #686a74;
  --color-neutral-500: #5e6475;

  /* Gradients */
  --gradient-1: linear-gradient(
    180deg,
    var(--color-support-yellow-500) 0%,
    #e69600 100%
  );
  --gradient-hipercapbrasil: linear-gradient(
    180deg,
    #0d1c42 0%,
    #003281 15%,
    #3a60d0 25%,
    #c00811 100%
  );

  /* Typography */
  --font-family-heading: "Montserrat Alternates", sans-serif;
  --font-family-body: "Montserrat", sans-serif;

  /* Spacing & Radius */
  --gap: 1.25rem;
  --radius: 0.5rem;

  /* Content Width & Side-Padding */
  --max-content-width: 1320px;
  --side-padding: 1rem;

  /* Breakpoints */
  --bs-sm: 576px;
  --bs-md: 768px;
  --bs-lg: 1192px;
  --bs-xl: 1400px;
  --bs-xxl: 1600px;
}

/* aumenta o padding lateral em larguras maiores */
@media (min-width: var(--bs-sm)) {
  :root {
    --side-padding: 1.5rem;
  }
}
@media (min-width: var(--bs-md)) {
  :root {
    --side-padding: 2rem;
  }
}
@media (min-width: var(--bs-lg)) {
  :root {
    --side-padding: 3rem;
  }
}
@media (min-width: var(--bs-xl)) {
  :root {
    --side-padding: 4rem;
  }
}
@media (min-width: var(--bs-xxl)) {
  :root {
    --side-padding: 5rem;
  }
}

/* ============ */
/* 2. Reset CSS */
/* ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Removed universal transition to avoid unwanted layout shifts */
}

html,
body,
#root {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-body);
  color: var(--color-neutral-black);
  background: var(--gradient-hipercapbrasil) !important;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================ */
/* 3. Auxiliares de Layout */
/* ================ */
.container-checkout {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0.5rem auto 2rem;
  padding: 0 var(--side-padding);
}

/* Apply the exact same “container” constraints to the footer */
.site-footer {
  color: var(--color-neutral-200);
  font-size: 0.875rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 9rem 1.5rem 8rem;
}
.site-footer > * {
  width: 100%;
  max-width: var(--max-content-width);
  padding: 0 var(--side-padding);
}
.site-footer > .footer-top {
  border-top: 1px solid var(--color-neutral-200);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ================ */
/* 4. Estilos do Checkout  */
/* ================ */
h1 {
  font-family: var(--font-family-heading);
  text-align: center;
  margin-bottom: var(--gap);
  font-size: 1.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  background: var(--color-neutral-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
.payment-instructions {
  display: none;
}

.checkout-grid.step-2 .payment-instructions {
  display: flex !important;
  padding: 1rem;
  flex-direction: column;
  border-radius: var(--radius);
  font-family: var(--font-family-body);
  color: var(--color-neutral-black);
}
/* quando exibir o QR code centralizar o painel e esconder campos */
.checkout-grid.step-2 {
  grid-template-columns: 1fr 1fr;
  justify-items: center;
}
.checkout-grid.step-2 .quantity-container,
.checkout-grid.step-2 #purchaseForm,
.checkout-grid.step-2 .quick-add,
.checkout-grid.step-2 .qr-placeholder {
  display: none !important;

  grid-template-columns: 1fr;
}
.checkout-grid.step-2 {
  grid-template-columns: 1fr;
}

.purchase-panel {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2rem;
  width: 100%;
  max-width: 450px;
  gap: 1.25rem;
  box-sizing: border-box;
}
.prize-titulo {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--color-neutral-500);
  overflow-wrap: break-word;
  font-family: var(--font-family-heading);
  margin-bottom: 1rem;
  padding: 1.25rem 1.25rem 0;
}
.prize-titulo h5 {
  display: block;
  font-size: 0.83em;
  margin-block-start: 1.67em;
  margin-block-end: 1.67em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
  font-family: var(--font-family-heading) !important;
}

.prize-preview {
  text-align: center;
  margin-bottom: var(--gap);
}
.prize-preview h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-neutral-300);
}
.prize-preview h1 {
  font-size: 2rem;
  color: var(--color-neutral-500);
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.prize-preview img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gap);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;
}

img {
  width: 100%;
  border-radius: var(--radius);
}

.total-display {
  font-size: 1.125rem;
  margin-bottom: var(--gap);
}

.quantity-controls {
  display: flex;
  align-items: center;
  margin-bottom: var(--gap);
}
.quantity-controls span {
  font-size: 1.25rem !important;
  line-height: 1.2;
  width: 2.5rem;
  color: var(--color-neutral-black);
  opacity: 0.85;
  margin: 0 1rem;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  --button-text-size: 1.5rem;
  --btn-padding-y: 0.5rem;
  padding: var(--btn-padding-y);
  font-weight: 600;
  border: none;
  background: #1090d0;
  color: var(--color-neutral-white);
  fill: var(--color-neutral-white);
  font-size: 1.75rem;
  border-radius: 50%;
  cursor: pointer;
}
.qty-btn svg {
  width: 1em;
  height: 1em;
}
.qty-btn:disabled {
  background: var(--color-neutral-200);
  color: var(--color-neutral-500);
  fill: var(--color-neutral-500);
  cursor: not-allowed;
}
#quantity {
  width: 2.5rem;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}

.qtt-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .qtt-display {
    flex-direction: column;
  }
}

.quick-add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--gap);
}
.quick-add button {
  flex: 1;
  font-weight: bold;
  font-family: var(--font-family-heading);
  cursor: pointer;
  background: var(--gradient-1);
  box-shadow: 0 0.25rem #996400;
  color: var(--color-neutral-black);
  align-items: center;
  border-radius: 62.5rem;
  border: none;
  display: inline-flex;
  gap: 0.625rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  margin: 0 !important;
  --btn-padding-y: 0.8rem;
  padding: var(--btn-padding-y) 1rem;
  transition: ease-in-out 0.1s;
  font-size: 1rem;
  box-sizing: border-box;
}
.quick-add button:hover {
  box-shadow: 0 0.25rem #996400;
}

.quantity-container {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 100%;
  max-width: 550px;
  background-color: rgba(124, 124, 124, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-sizing: border-box;
}

#purchaseForm {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: auto;
}
#purchaseForm p {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(25, 28, 31);
}
#purchaseForm label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
#purchaseForm input[type="text"] {
  padding: 0.5rem;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius);
}
.help-text {
  font-size: 0.75rem !important;
  color: rgba(63, 70, 77, 0.863) !important;
  margin-top: -0.5rem;
  margin-bottom: var(--gap);
}
.terms {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  font-size: 0.675rem;
  color: var(--color-neutral-500);
}
.terms input {
  margin-right: 0.5rem;
}
.terms a {
  color: var(--color-brand-primary-500);
  text-decoration: underline;
}
.link:hover {
  text-decoration: underline;
}

.submit-btn {
  flex: 1;
  font-weight: bold;
  font-family: var(--font-family-heading);
  cursor: pointer;
  background: var(--gradient-1);
  box-shadow: 0 0.25rem #996400;
  color: var(--color-neutral-black);
  align-items: center;
  border-radius: 62.5rem;
  border: none;
  display: inline-flex;
  gap: 0.625rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  margin: 0 !important;
  --btn-padding-y: 0.8rem;
  padding: var(--btn-padding-y) 1rem;
  transition: ease-in-out 0.1s;
  font-size: 1rem;
  box-sizing: border-box;
  text-decoration: none !important;
}
.submit-btn:hover {
  opacity: 0.9;
  box-shadow: 0 0.25rem #996400;
}

/* ================ */
/* 5. QR Panel CSS  */
/* ================ */
.qr-panel {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: center;
  border-left: 1px solid var(--color-neutral-200);
  gap: 2.5rem;
  padding: 1.5rem;
  max-width: var(--max-content-width);
}

@media (max-width: 768px) {
  .qr-panel {
    flex-direction: column;
    align-items: center;
    border-left: none;
    border-top: 1px solid var(--color-neutral-200);
    width: 100vw;
  }
}
.checkout-grid.step-2 .qr-panel {
  justify-content: start !important;
  align-items: center;
  padding: 1.5rem 1rem;

}
.qr-placeholder {
  text-align: center;
  color: var(--color-neutral-500);
  margin-bottom: var(--gap);
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
}

@media (max-width: 768px) {
  .qr-placeholder {
    display: none !important;
  }
}
.icon-qr {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-500);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 3rem;
  margin: 0 auto 0.5rem;
}
.icon-qr::before {
  content: "\f029";
}
#qrSection {
  display: none;
  text-align: center;
}
 .qr-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--gap);
  gap: 0.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: rgba(0, 0, 0, 0.3);
  margin-bottom: -2px;
  text-align: center;
}
.qr-countdown .countdown-title {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--color-support-yellow-500);
}
.qr-countdown .countdown-title svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-support-yellow-500);
}
.qr-countdown .countdown-subtitle {
  color: var(--color-support-yellow-500);
  font-size: 0.875rem;
}
.qr-countdown .countdown-timer {
  color: var(--color-neutral-white);
  font-weight: 700;
  font-size: 1.25rem;
}
#qrSection h2 {
  margin-bottom: var(--gap);
}
#qrSection img {
  width: 100%;
  max-height: 30vh;
  object-fit: contain;
  margin-bottom: var(--gap);
}
#qrSection code {
  display: block;
  background: var(--color-neutral-200);
  padding: 0.5rem;
  border-radius: var(--radius);
  word-break: break-all;
  margin-bottom: var(--gap);
}

/* ================ */
/* 6. Footer Sections */
/* ================ */
.footer-decoration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 !important;
}

.footer-decoration img {
  max-width: 8rem;
  height: auto;
}

/* Mirror the second image */
.footer-decoration img:nth-child(2) {
  transform: scaleX(-1);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .footer-decoration img:first-child {
    margin-top: 6rem;
  }

  .footer-decoration img:last-child {
    margin-right: -1.5rem;
    margin-top: -1rem;
  }
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-links a {
  margin-right: 1rem;
  color: var(--color-brand-primary-500);
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.support-btn {
  background: #25d366;
  color: var(--color-neutral-white);
  --btn-padding-y: 0.5rem;
  padding: var(--btn-padding-y) 1rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-middle {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: row;
  gap: var(--gap);
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.footer-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .footer-center {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  margin-right: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-logo img {
  width: auto;
  max-height: 40px;
}
.social-icons a {
  margin: 0 0.5rem;
  color: var(--color-neutral-white);
  font-size: 1.5rem;
}
.social-icons a:hover {
  color: var(--color-support-yellow-500);
}
.credit-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.75rem;
  height: 4rem;
}
.credit-pay a:hover {
  text-decoration: underline;
}
.footer-bottom {
  font-size: 0.75rem;
  color: var(--color-neutral-200);
  line-height: 1.4;
  max-height: 8rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.credits {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
}
/* ================================ */
/*  Mobile Footer – Column Layout   */
/* ================================ */
@media (max-width: 768px) {
  /* hide decorative coins if you don’t want them on mobile */
  .site-footer .footer-decoration {
    display: none;
  }

  /* stack both footer-top and each footer-middle vertically, center everything */
  .site-footer > .footer-top,
  .site-footer > .footer-middle {
    display: flex; /* ensure we’re in flex mode */
    flex-direction: column; /* switch rows → columns */
    align-items: center; /* center items horizontally */
    text-align: center; /* center any text */
  }

  /* add breathing room between each “row” now that they’re columns */
  .site-footer > .footer-top .brand,
  .site-footer > .footer-top .footer-links,
  .site-footer > .footer-middle .social-icons,
  .site-footer > .footer-middle .footer-support,
  .site-footer > .footer-middle .credit-pay {
    margin-bottom: var(--gap);
  }

  /* center and space your link group */
  .site-footer .footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  /* make sure credits line is centered instead of right‑aligned */
  .site-footer .credit-pay {
    align-items: center !important;
  }

  /* legal/disclaimer text full‑width and centered */
  .site-footer .footer-bottom {
    text-align: center;
  }
}

/* ================ */
/* 7. Banner Styles */
/* ================ */
.top-banner {
  width: 100%;
  margin: 0;
  justify-content: center;
}
.timer-banner {
  background: #c00811;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px var(--side-padding);
}
.timer-label {
  font-size: 0.625rem;
  font-weight: 400;
  font-family: Montserrat, sans-serif;
}
.timer-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-block .time {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.countdown-block .label {
  color: #ffffff !important;
  opacity: 0.8;
  font-family: Montserrat, sans-serif;
}
.colon {
  font-size: 1rem;
  margin: 0 0.25rem 1.25rem;
}

.step-banner {
  color: #ffffff;
  text-align: center;
  padding: 0rem 0 1rem;
  flex-direction: column;
  display: flex;
}
@media (max-width: 768px) {
  .step-banner {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
}
.step-header {
  display: flex;
  flex-direction: row;
  margin-top: 1rem;
}
.back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  --btn-padding-y: 0;
  cursor: pointer;
}
.back-btn::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f060";
}
.step-header .logo {
  max-width: 250px;
  height: auto;
  object-fit: contain;
}
.step-header .home-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center !important;
  text-decoration: none;
}
.step-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-count {
  font-size: 0.875rem;
  font-weight: 600;
  width: 3rem;
}

@media (max-width: 768px) {
  .step-info {
    flex-direction: column;
    align-items: end;
    line-height: 1.1;
  }
  .step-text {
    text-align: right !important;
    line-height: 1.1;
    font-weight: 600;
    white-space: nowrap;
    width: 100%;
    font-size: 1rem !important;
  }
  .step-count {
    font-size: 1.25rem;
    width: fit-content;
    line-height: 1.1;
  }
}

.step-text {
  margin: 0.75rem 0.5rem;
  font-size: 1.125rem;
  text-align: start;
  font-family: var(--font-family-heading);
}
.progress-bar {
  width: 100%;
  height: 0.75rem;
  background: #ffffff;
  border-radius: 1rem;
}
.progress-bar .progress {
  width: 50%;
  height: 100%;
  background: #3bcd27;
  border-radius: 0.25rem;
  border: 1px solid var(--color-neutral-white);
}

/* ================ */
/* 8. Responsive Helpers */
/* ================ */
@media (max-width: 768px) {
  /* STACK THE GRID INTO ONE COLUMN */
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* TIGHTEN CONTAINER MARGINS */
  .container-checkout {
    margin: 1rem auto;
    padding: var(--side-padding) 0;
  }

  /* SHRINK BANNER TEXT */
  .timer-label {
    font-size: 0.75rem;
  }
  .countdown-block .time {
    font-size: 0.875rem;
  }
  .countdown-block .label {
    font-size: 0.625rem;
  }

  /* STEP INDICATOR */

  .progress-bar {
    height: 0.5rem;
  }

  /* FORM & BUTTON SIZING */
  .quantity-container {
    padding: 0.75rem 1rem;
  }
  .quantity-controls {
    margin-bottom: 0.5rem;
  }
  .quick-add button {
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
  }
  #purchaseForm {
    gap: 0.75rem;
    padding: 1rem 0;
  }
  .submit-btn {
    font-size: 0.875rem;
    padding: 0.6rem;
  }

  /* FOOTER TEXT */
  .site-footer {
    font-size: 0.75rem;
  }
}

/* ======================================== */
/* Styles for consulta.html page elements */
/* ======================================== */

/* Global & Page */
.page {
  margin: 0.5rem auto 2rem;
  padding: 2.5rem var(--side-padding) 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-body);
  background: var(--gradient-hipercapbrasil);
  color: var(--color-neutral-white);
}

/* Header */
.header {
  display: flex;
  width: 100%;
  max-width: var(--max-content-width);
  align-items: center;
  padding: var(--side-padding);
  position: relative; /* Added for absolute positioning of the logo */
}

.btn-back {
  background: none;
  border: none;
  color: var(--color-neutral-white);
  font-size: 1.5rem;
  margin-right: var(--gap);
  z-index: 1; /* Ensure button stays above logo */
    background: #cceef9;
    color: #000;
    mix-blend-mode: lighten;
    --button-text-size: 1rem;
    --btn-padding-y: .5rem;
    padding: var(--btn-padding-y);
    align-items: center;
    border-radius: 100%;
    border: 0 none;
    display: inline-flex;
    justify-content: center;
    
    cursor: pointer;
    height: 2.25rem;
    width: 2.25rem;

}
.header .logo {
  height: auto;
  max-height: 80px;
  max-width: 250px;
  object-fit: contain;
  position: absolute; /* Position absolutely to center regardless of other elements */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  margin: 2rem auto 1rem; /* Additional centering */
  
}

/* Main */
.main-content {
  text-align: center;
  padding: 2rem var(--side-padding);
}
@media (max-width: 768px) {
  .main-content {
    padding: 2rem 0;
  }
}
.page-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.lookup-panel {
  max-width: 400px;
  margin: 0 auto 2rem;
  background: var(--color-neutral-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
 .lookup-panel {
    width: 100vw;
    padding: 1rem;
    max-width: none;
  }
}
.form-group {
  text-align: left;
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  text-align: start;
}
.form-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius);
}
.btn-submit {
  width: 100%;
  --btn-padding-y: 0.75rem;
  padding: var(--btn-padding-y);
  background: var(--color-support-yellow-500);
  color: var(--color-neutral-black);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

/* App Promo */
.app-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding: 2rem var(--side-padding);
}
.coin {
  width: 3rem;
}
.promo-text {
  max-width: 300px;
  text-align: left;
  color: var(--color-neutral-white);
}
.promo-text strong {
  font-weight: 700;
}
.badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  margin-bottom: -1.5rem;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: space-around;
  background: var(--color-neutral-white);
  border-top: 1px solid var(--color-neutral-200);
  z-index: 1000;
}
.nav-item {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  color: var(--color-neutral-500);
  font-size: 0.875rem;
  text-decoration: none;
}
.nav-item.active {
  
}
.nav-icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-support-red-700);
}
.icon-ticket::before {
  content: "\f145";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icon-dollar::before {
  content: "\f155";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icon-trophy::before {
  content: "\f091";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icon-search::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
  }
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ================================ */
/*  Floating central “checkout” tab  */
/* ================================ */
@media (max-width: 768px) {
  /* 1. Make every nav‑item positioning context */
  .bottom-nav .nav-item {
    position: relative;
  }

  /* 2. Pull *only* the “checkout” link up */
  .bottom-nav .nav-item[href="/checkout"] {
    top: -2rem; /* raise it above the bar */
    z-index: 101; /* ensure it floats above */
  }

  /* 3. Turn its icon into a circle */
  .bottom-nav .nav-item[href="/checkout"] .nav-icon {
    display: flex; /* flex to center the “$” */
    align-items: center;
    justify-content: center;
    width: 4rem; /* circle diameter */
    height: 4rem;
    margin: 0 auto; /* horizontally centered */
    background: var(--color-support-red-700);
    color: var(--color-neutral-white);
    border: 4px solid var(--color-neutral-white);
    border-radius: 50%; /* perfect circle */
    font-size: 1.25rem; /* bump up icon size */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  /* 4. Ensure the “checkout” label shows below the circle */
  .bottom-nav .nav-item[href="/checkout"] .nav-label {
    display: block; /* override any hide rules */
    margin-top: 0.25rem; /* a little breathing room */
    text-align: center; /* center under the circle */
  }
}

/* ==== Consulta – novos elementos ==== */
.step {
  margin-bottom: 2rem;
}
.product-list {
  margin-bottom: 2rem;
}
.product-list label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}
#pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
#pagination span {
  color: var(--color-neutral-black);

}

.auth-info {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-neutral-500);
}
/* Pagination styling */
.pagination-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: var(--color-neutral-300);
  pointer-events: none;
}

.pagination-btn.disabled svg {
  fill: rgba(129, 129, 129, 0.3);
}

/* Page number display */
#pageNum {
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
  color: var(--color-neutral-black);
}

/* Page indicator that appears temporarily */
.page-indicator {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-neutral-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-indicator.show {
  opacity: 1;
}

/* Pagination container */
#pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}
/* ——— Consulta: product row styling ——————————————————— */
.product-item {
  display: block;
  margin-bottom: 0.5rem;
}

.product-item__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-brand-primary-700);
  color: var(--color-neutral-white);
  height: 10vh;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.product-item__content:hover {
  background: var(--color-brand-primary-500);
}

.product-item__icon {
  width: fit-content;
  height: 100%;
  margin-right: 0.75rem;
}

.product-item__text {
  flex: 1;
  font-size: 1rem;
}

.product-item__arrow {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ==== Consulta – resultados em estilo “HiperCap” ==== */
.coupon-card {
  display: flex;
  flex-direction: column !important;
  align-items: stretch;
  padding: .75rem .75rem 1.875rem;
  background: var(--color-neutral-white);
  color: var(--color-neutral-black);
  border-radius: var(--radius);
  overflow: hidden;
}

.coupon-img img {
  width: 80px;
  height: 100%;
  object-fit: cover;
}

.coupon-details {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.coupon-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.coupon-head p {
  margin: 0;
}

.title-number p:last-child {
  font-weight: 700;
}

.auth {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}
#resultsSection {
  display: none;
  width: var(--max-content-width);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--gap);
  background: var(--color-neutral-white);
  
  border-radius: var(--radius);
  padding: var(--gap);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: var(--bs-md)) {
  .results-section {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100vw !important;
  }
}
#results {
  width: fit-content;
  height: auto;
  display: flex;
  flex-direction: row !important;
  padding: var(--gap);
  gap: var(--gap);
  margin: 0 auto;
  justify-content: center;
  align-items: start;
}
@media (max-width: 768px) {
  #results {
    flex-direction: column !important;
    align-items: center;
  }
}
/* prize image */
.result-image {
  width: 100%;
  height: auto;
  margin-bottom: var(--gap);
  border-radius: var(--radius);
}

/* dezenas table */
.dezenas-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.dezenas-table th,
.dezenas-table td {
  border: 1px solid var(--color-brand-primary-500);
  padding: 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  width: 20%;
  aspect-ratio: 1;
  cursor: pointer;
}

.dezenas-table td.selected {
  background-color: var(--color-brand-primary-500);
  color: var(--color-neutral-white);
}
.numero-sorte-table {
  width: 100%;
  border-collapse: collapse;
}
.numero-sorte-table td {
  border: 1px solid var(--color-brand-primary-500);
  padding: 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  width: 14.28571428571429%;
  aspect-ratio: 1;
  cursor: pointer;
}
.numero-sorte-table td.selected {
  background-color: var(--color-brand-primary-500);
  color: var(--color-neutral-white);
}
.sorteio-img {
  width: 100%;
  margin: 0.5rem 0;
  display: block;
}
.dezenas-table th {
  background: #f1f1f1;
  text-align: left;
}
/* ==================================== */
/*            STEP 2 OVERRIDES          */
/* ==================================== */

/* 1) Fill the progress bar */
.checkout-grid.step-2 .progress-bar .progress {
  width: 100% !important;
  background: var(--support-green-700); /* or your green */
}

/* 2) Hide step‑1 elements */
.checkout-grid.step-2 .purchase-panel,
.checkout-grid.step-2 .qr-placeholder,
.checkout-grid.step-2 .step-count {
  display: none !important;
}

/* 3) Reveal & style your new PIX card (#qrSection) */
.checkout-grid.step-2 #qrSection {
  display: flex !important;
  flex-direction: column;
  padding: 1.5rem 1rem;
  gap: 1rem;
  border: 1px solid var(--color-neutral-200);
  background: var(--color-neutral-white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 33.33%;

}
@media (max-width: 768px) {
  .checkout-grid.step-2 #qrSection {
    width: 100%;
    max-width: none;
  }
}

#copyCode {
  height: fit-content;
  overflow-wrap: anywhere;
  
 
}

/* if you still have the old <h2> and status lines in #qrSection, hide them */
.checkout-grid.step-2 #qrSection > h2,
.checkout-grid.step-2 #qrSection > p:nth-of-type(4),
.checkout-grid.step-2 #qrSection > p:nth-of-type(5) {
  display: none !important;
}

/* Style the left column (QR + code + copy) */
.checkout-grid.step-2 #qrSection > img#qrImg {
  max-width: 100%;
  margin-bottom: 1rem;
}
.checkout-grid.step-2 #qrSection code#copyCode {
  display: block;
  padding: 0.75rem;
  background: var(--color-neutral-200);
  border-radius: var(--radius);
  word-break: break-all;
  margin-bottom: 1rem;
}
/* Make sure your “Copiar código” button has .copy-btn */
.checkout-grid.step-2 #qrSection .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  --btn-padding-y: 0.75rem;
  padding: var(--btn-padding-y) 1.5rem;
  border: none;
  border-radius: 62.5rem;
  box-shadow: 0 0.25rem #996400;
  background: var(--gradient-1);
  font-weight: bold;
  cursor: pointer;
}

/* Style the right column (“Como pagar?”) */
.checkout-grid.step-2 #qrSection .payment-instructions {
  font-family: var(--font-family-body);
}
.checkout-grid.step-2 #qrSection .payment-instructions h3 {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.checkout-grid.step-2 #qrSection .payment-instructions .steps {
  list-style: none;

}

.step-item { 
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  flex-direction: row;

}
.checkout-grid.step-2 #qrSection .payment-instructions .steps li {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1rem;
}
.checkout-grid.step-2 .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  background: var(--color-support-red-700);
  color: var(--color-neutral-white);
  font-weight: 700;
  font-size: medium;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Dialog overlay and modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: var(--color-neutral-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
  max-width: 320px;
  width: 90%;
  text-align: center;
}

.modal-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.modal-message {
  margin-bottom: 1rem;
  color: var(--color-neutral-black);
  font-size: 1rem;
} 

.modal-buttons button {
  --btn-padding-y: 0.5rem;
  padding: var(--btn-padding-y) 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.modal-buttons .primary {
  background: var(--gradient-1);
  color: var(--color-neutral-black);
  font-weight: bold;
  box-shadow: 0 0.25rem #996400;
  transition: background 0.2s ease;
  font-size: 1rem;
  font-family: var(--font-family-heading) !important;
}

.modal-buttons .secondary {
  background: var(--color-neutral-200);
  color: var(--color-neutral-black);
}
.checkout-grid.step-3 {
  grid-template-columns: 1fr;
  justify-items: center;
}
/* STEP 3: payment success */
.checkout-grid.step-3 .purchase-panel,
.checkout-grid.step-3 .qr-panel,
.checkout-grid.step-3 #qrCountdown {
  display: none !important;
}
.checkout-grid.step-2.step-3 .success-panel {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
  text-align: center;
}
.success-panel {
   display: none;
  flex-direction: column !important;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
  text-align: center;
  color: var(--color-neutral-white);
}
.checkout-grid.step-3 .success-panel img.success-gif {
  width: 160px;
}
.checkout-grid.step-3 .success-panel h2,
.checkout-grid.step-3 .success-panel p {
  color: var(--color-neutral-white);
}

.checkout-grid.step-3 .success-panel .submit-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 62.5rem;
  background: var(--gradient-1);
  color: var(--color-neutral-white);
  font-weight: bold;
  text-decoration: none;
}
.summary-col {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: start;
  justify-content: start;
  background: var(--color-neutral-white);
  border-radius: var(--radius);
}
.summary-col-block {
    display: flex;
    border: 1px solid var(--color-neutral-200);
    border-radius: .5rem;
    gap: .5rem;
    flex-direction: column;
    padding: .5rem;
    position: relative;
}
.summary-col-premio {
  display: flex;
  flex-direction: column;
  align-items: start;
  background: var(--color-neutral-white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
}
.summary-col-premio p {
  font-weight: 600;
  color: var(--color-neutral-black);
  height: 3.9375rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}
/* ==== Consulta – detalhes expandíveis ==== */
.coupon-summary {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: start;
  gap: 0.25rem 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.coupon-summary span:first-child {
  font-weight: 600;
}
.qr-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.qr-btn {
  width: 100%;
  text-align: left;
  font-family: var(--font-family-heading);
  margin-top: 0.5rem;
  cursor: pointer;
  background: linear-gradient(180deg, var(--color-brand-primary-500) 0%, var(--color-brand-primary-700) 100%);
  box-shadow: 0 .25rem #063466;
  padding: .8rem 1rem;
  align-items: center;
  border-radius: 62.5rem;
  border: 0 none;
  display: inline-flex;
  gap: .625rem;
  justify-content: center;
  transition: ease-in-out .1s;
  text-decoration: none;
  margin-bottom: .5rem;
  cursor: pointer;
  color: var(--color-neutral-white);
}
.sorteio-btn {
  position: relative;
  font-family: var(--font-family-heading);    
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(180deg, #ffcc00 0%, #e69600 100%);
  box-shadow: 0 .25rem #996400;
  color: var(--color-neutral-black) !important;
  padding: .8rem 1rem;
  align-items: center;
    border-radius: 62.5rem;
    border: 0 none;
    display: inline-flex;
    gap: .625rem;
    justify-content: center;
    transition: ease-in-out .1s;
    text-decoration: none;
    margin-bottom: .5rem;
    cursor: pointer;
    color: var(--color-neutral-white);
}
.sorteio-btn svg {
  width: .75rem !important;
  height: .75rem !important;
  display: inline-block;
}
.sorteio-btn.open {
  
}
.coupon {
  border: 2px solid #cc8500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 303px;
  border-radius: var(--radius);
}
.sorteio-lista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-neutral-white);
  border-radius: var(--radius);
}
.sorteios {
  position: relative;
  top: -0.5rem;
  margin-bottom: -1.5rem;
  color: var(--color-neutral-black);
  border-radius: var(--radius);
  overflow: hidden;
}
/* ==== Consulta – Dezenas Block ==== */
.dezenas-container {
  width: 100%;
  margin-bottom: 1rem;
  padding: 1rem var(--side-padding);
}

.dezenas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  background-color: var(--color-brand-primary-500);
  padding: 0.5rem var(--side-padding);
  border-radius: 0.5rem 0.5rem 0 0;
  min-height: 2.375rem;

}

.dezenas-chance {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-neutral-white);
}

.dezenas-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.dezenas-info-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-neutral-white);
}

.dezenas-info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-neutral-white);
}

.dezenas-table {
  width: 100%;
  border-collapse: collapse;
  border: 0 solid #1090d0;
}

.dezenas-table td {
  border: 1px solid var(--color-brand-primary-500);
  padding: 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  width: 20%;
  aspect-ratio: 1;
  cursor: pointer;
}

.dezenas-table td.selected {
  background-color: var(--color-brand-primary-500);
  color: var(--color-neutral-white);
}

.dezenas-auth {
  background-color: var(--color-brand-primary-500);
  padding: 0.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  min-height: 2.375rem;
}

.dezenas-auth-text {
  font-size: 0.75rem;
  color: var(--color-neutral-white);
}
.competition-status {
    border-radius: 0 99px 99px 0;
    padding: .125rem .5rem;
    font-weight: 600;
    font-size: 0.75rem;
    margin-left: -.75rem;
    color: var(--color-neutral-white);
    margin-top: .35rem;
}
.status-active {
    background: var(--color-support-yellow-700);
}
.status-ended {
    background: var(--color-neutral-500);
}
.pagination-btn {
  border: 1px solid var(--color-neutral-200);
  border-radius: 4px;
  min-width: 40px;
  min-height: 40px;
  --btn-padding-y: 0.25rem;
  padding: var(--btn-padding-y) 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  
  font-size: 1rem;
  color: var(--color-neutral-700);
  background-color: var(--color-neutral-white);
}
.pagination-btn svg {
  overflow: visible;
  width: 100%;
  max-width: 0.75rem;
  height: auto;
  fill: rgba(129, 129, 129, 0.7);
  z-index: 999;
}

.pagination-btn:disabled {
  cursor: not-allowed;
  color: var(--color-neutral-300);
}

.pagination-btn:disabled svg {
  fill: rgba(129, 129, 129, 0.3);
}
.success-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
}

/* ==================== */
/* Button bounce effect */
/* ==================== */
@keyframes btn-bounce {
  0% { margin-top: 0; }
  40% { margin-top: 0.15rem; }
  70% { margin-top: -0.1rem; }
  100% { margin-top: 0; }
}

button:active,
.submit-btn:active,
.btn-submit:active,
.copy-btn:active,
.pagination-btn:active,
.qty-btn:active,
.support-btn:active,
.modal-buttons button:active,
.quick-add button:active,
.btn-back:active,
.back-btn:active {
  animation: btn-bounce 0.25s;
  padding-top: calc(var(--btn-padding-y, 0.5rem) + 0.15rem);
  padding-bottom: calc(var(--btn-padding-y, 0.5rem) - 0.15rem);
  margin-bottom: -0.15rem;
}

button,
.submit-btn,
.btn-submit,
.copy-btn,
.pagination-btn,
.qty-btn,
.support-btn,
.modal-buttons button,
.quick-add button,
.btn-back,
.back-btn {
  transition: padding 0.15s ease, margin 0.15s ease;
}

/* Indicador de página para a consulta */
.page-indicator {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.page-indicator.show {
  opacity: 1;
}