:root {
  --bg: #090b0f;
  --panel: #101319;
  --panel-2: #151922;
  --text: #ffffff;
  --muted: #c5c7cc;
  --orange: #ff8a00;
  --orange-2: #ff9f1a;
  --green: #25c45a;
  --red: #ff5a5a;
  --border: rgba(255, 255, 255, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 138, 0, 0.10), transparent 25%),
    radial-gradient(circle at 15% 85%, rgba(255, 138, 0, 0.08), transparent 30%),
    linear-gradient(135deg, #07090d 0%, #0b0e13 45%, #090b0f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, rgba(255, 138, 0, 0.10) 1px, transparent 1px),
    linear-gradient(150deg, rgba(255, 138, 0, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.topbar,
.main-layout,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: 100%;
  padding: 28px 48px 8px;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--orange);
}

.main-layout {
  flex: 1;
  width: min(1500px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 30px 0 50px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 6vw, 110px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-subtitle {
  margin-top: 28px;
  max-width: 520px;
  font-size: 25px;
  line-height: 1.45;
  color: var(--muted);
}

.hero-subtitle strong {
  color: var(--orange);
}

.info-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.info-item {
  text-align: center;
  padding: 12px 8px;
}

.info-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
}

.info-item strong {
  display: block;
  color: white;
  margin-bottom: 5px;
}

.info-item span {
  color: var(--muted);
  font-size: 14px;
}

.consulta-card {
  width: 100%;
  padding: 38px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(18, 21, 27, 0.97),
    rgba(11, 14, 19, 0.97)
  );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.consulta-card h2 {
  margin: 0;
  color: var(--orange);
  font-size: 32px;
}

.title-line {
  width: 62px;
  height: 4px;
  border-radius: 5px;
  margin: 14px 0 30px;
  background: var(--orange);
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  color: #f0f0f0;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-size: 20px;
}

#codigo {
  width: 100%;
  height: 62px;
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 0 18px 0 52px;
  font-size: 18px;
  color: #111;
  background: #f7f7f7;
}

#codigo:focus {
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.35);
}

#btnBuscar {
  width: 100%;
  margin-top: 20px;
  min-height: 58px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff8a00, #ff9800);
  color: white;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

#btnBuscar:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

#btnBuscar:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

#resultado {
  margin-top: 22px;
}

.mensagem {
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mensagem.success {
  color: #66ee8a;
  background: rgba(25, 139, 64, 0.14);
  border: 1px solid rgba(37, 196, 90, 0.65);
}

.mensagem.error {
  color: #ff8787;
  background: rgba(160, 30, 30, 0.14);
  border: 1px solid rgba(255, 90, 90, 0.55);
}

.mensagem.loading {
  justify-content: center;
  color: var(--orange);
  border: 1px solid rgba(255, 138, 0, 0.30);
  background: rgba(255, 138, 0, 0.07);
}

.resultado-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.campo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
}

.campo-icone {
  width: 42px;
  flex: 0 0 42px;
  font-size: 27px;
  text-align: center;
}

.campo-conteudo {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.campo-titulo {
  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 5px;
}

.campo-valor {
  color: white;
  font-size: 16px;
  line-height: 1.35;
  word-break: break-word;
}

.numeros-sorteio {
  line-height: 1.55;
}

.premio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.premio-box {
  width: 100%;
  text-align: center;
  position: relative;
}

.tv-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 30px;
}

.tv-stage::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 138, 0, 0.25);
  filter: blur(28px);
  z-index: 0;
}

.tv-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
  drop-shadow(0 30px 40px rgba(0, 0, 0, 0.70))
  drop-shadow(0 0 24px rgba(255, 138, 0, 0.18));
}

.tv-placeholder {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid #222831;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #12225e, #7c1659 55%, #ff6c00);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 138, 0, 0.14);
}

.tv-placeholder span {
  font-size: clamp(50px, 6vw, 90px);
  font-weight: 900;
}

.premio-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 138, 0, 0.16);
}

.premio-title span {
  color: var(--orange);
}

footer {
  width: 100%;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.92);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #b8bbc2;
  font-size: 14px;
}

footer strong {
  color: var(--orange);
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr 1fr;
  }

  .premio {
    grid-column: 1 / -1;
  }

  .tv-stage {
    max-width: 500px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 22px 22px 0;
  }

  .logo {
    font-size: 24px;
  }

  .main-layout {
    width: min(92%, 600px);
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 25px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

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

  .consulta-card {
    padding: 25px 20px;
  }

  .consulta-card h2 {
    font-size: 27px;
  }

  .premio {
    grid-column: auto;
  }

  footer {
    padding: 22px;
    flex-direction: column;
    text-align: center;
  }

}

/* ===== EFEITOS LARANJAS DE FUNDO ===== */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(
      circle at 78% 28%,
      rgba(255, 138, 0, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 8% 82%,
      rgba(255, 138, 0, 0.12),
      transparent 26%
    );
}


/* Linha diagonal decorativa esquerda */
.page::before {
  content: "";
  position: fixed;
  left: -120px;
  bottom: 100px;
  width: 420px;
  height: 220px;

  border-bottom: 3px solid rgba(255, 138, 0, 0.55);
  border-right: 3px solid rgba(255, 138, 0, 0.25);

  transform: skewX(-35deg);
  pointer-events: none;
  z-index: 0;

  filter: drop-shadow(0 0 12px rgba(255, 138, 0, 0.45));
}


/* Linha decorativa direita */
.page::after {
  content: "";
  position: fixed;
  right: -100px;
  top: 80px;

  width: 260px;
  height: 420px;

  border-left: 3px solid rgba(255, 138, 0, 0.5);
  border-bottom: 3px solid rgba(255, 138, 0, 0.2);

  transform: skewY(-35deg);

  pointer-events: none;
  z-index: 0;

  filter: drop-shadow(0 0 14px rgba(255, 138, 0, 0.5));
}


/* ===== GLOW ATRÁS DA TV ===== */

.tv-stage::before {
  content: "";
  position: absolute;

  width: 85%;
  height: 70%;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background:
    radial-gradient(
      circle,
      rgba(255, 138, 0, 0.28) 0%,
      rgba(255, 138, 0, 0.12) 35%,
      transparent 70%
    );

  filter: blur(25px);

  z-index: 0;
}


/* ===== GLOW DO CARD CENTRAL ===== */

.consulta-card {
  position: relative;
  overflow: hidden;
}

.consulta-card::before {
  content: "";
  position: absolute;

  width: 180px;
  height: 180px;

  top: -80px;
  right: -60px;

  background:
    radial-gradient(
      circle,
      rgba(255, 138, 0, 0.18),
      transparent 70%
    );

  pointer-events: none;
}


/* ===== LINHAS TECNOLÓGICAS / HEXAGONAIS SUTIS ===== */

.main-layout::before {
  content: "";
  position: fixed;

  right: 0;
  top: 120px;

  width: 520px;
  height: 520px;

  opacity: 0.08;

  background-image:
    linear-gradient(
      30deg,
      rgba(255, 138, 0, 0.8) 1px,
      transparent 1px
    ),
    linear-gradient(
      150deg,
      rgba(255, 138, 0, 0.8) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 138, 0, 0.6) 1px,
      transparent 1px
    );

  background-size:
    80px 140px,
    80px 140px,
    80px 140px;

  pointer-events: none;
  z-index: 0;
}


/* ===== BRILHO NO BOTÃO ===== */

#btnBuscar {
  position: relative;
  overflow: hidden;

  box-shadow:
    0 0 0 rgba(255, 138, 0, 0),
    0 8px 26px rgba(255, 138, 0, 0.20);
}

#btnBuscar::after {
  content: "";

  position: absolute;

  top: -50%;
  left: -40%;

  width: 35%;
  height: 200%;

  background: rgba(255, 255, 255, 0.18);

  transform: rotate(20deg);

  transition: 0.45s;
}

#btnBuscar:hover::after {
  left: 120%;
}


/* ===== BORDA LARANJA LEVE NOS CARDS ===== */

.info-grid,
.consulta-card {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(255, 138, 0, 0.035);
}

.campo {
  transition: 0.2s ease;
}

.campo:hover {
  border-color: rgba(255, 138, 0, 0.35);

  transform: translateX(3px);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(255, 138, 0, 0.07);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   CORREÇÃO FINAL - EFEITOS DECORATIVOS ATRÁS DO CONTEÚDO
   ========================================================= */

.page {
  position: relative;
  isolation: isolate;
  z-index: 0;
}

/* Linhas/grade decorativas ficam atrás do conteúdo */
.page::before,
.page::after,
.main-layout::before {
  z-index: -1 !important;
  pointer-events: none;
}

/* Conteúdo real sempre acima dos efeitos */
.topbar,
.main-layout,
.hero,
.info-grid,
.info-item,
.consulta-card,
.premio,
.premio-box,
.tv-stage,
footer {
  position: relative;
  z-index: 2;
}

/* Mobile: mantém o desenho, mais suave, sempre ao fundo */
@media (max-width: 760px) {
  .page::before,
  .page::after,
  .main-layout::before {
    display: block !important;
    z-index: -1 !important;
    opacity: 0.30;
    pointer-events: none;
  }

  .topbar,
  .main-layout,
  .hero,
  .info-grid,
  .info-item,
  .consulta-card,
  .premio,
  .premio-box,
  .tv-stage,
  footer {
    position: relative;
    z-index: 2;
  }
}

