:root {
  /* =========================
     🎨 BRAND COLORS
  ========================= */
  /* 🔵 Blues (Primary) */
  --color-primary: #0a7bff;
  --color-primary-light: #00c2ff;
  --color-primary-medium: #1e90ff;
  --color-primary-dark: #0b4fd6;

  /* 🟠 Orange (Accent / CTA) */
  --color-accent: #ff7a00;
  --color-accent-light: #ff9a1f;
  --color-accent-strong: #ff5a00;
  --color-accent-soft: #ffb347;

  /* ✨ Highlights */
  --color-white: #ffffff;
  --color-highlight-blue: #e6f7ff;
  --color-highlight-warm: #fff3e0;

  /* 🌑 Neutrals / Background */
  --color-bg-dark: #0d1b2a;
  --color-bg-medium: #1b263b;
  --color-bg-light: #2a2a2a;

  /* =========================
     🌈 GRADIENTS
  ========================= */
  --gradient-primary: linear-gradient(135deg, #0a7bff, #00c2ff, #ff7a00);

  --gradient-blue: linear-gradient(135deg, #0b4fd6, #0a7bff, #00c2ff);

  --gradient-orange: linear-gradient(135deg, #ff5a00, #ff7a00, #ffb347);

  /* =========================
     🧱 UI TOKENS (já prontos pra uso)
  ========================= */
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;

  --color-border: #2a2a2a;

  --color-button-primary: var(--color-primary);
  --color-button-hover: var(--color-primary-medium);

  --color-cta: var(--color-accent);
  --color-cta-hover: var(--color-accent-strong);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  font-family: "Poppins", sans-serif;
}

html {
  font-size: clamp(14px, 0.9vw, 18px);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  width: 100vw;
  background: var(--color-bg-medium);
  color: var(--color-text);
}

img,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  background: var(--color-bg-dark);
  padding: 20px 0;
}

/* =========================
   MENU
========================= */
header nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.2rem, 0.8vw, 0.7rem);
  padding: 0 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

header nav::-webkit-scrollbar {
  display: none;
}

/* =========================
   LOGO
========================= */
header .logo {
  width: clamp(100px, 10vw, 160px);
  margin: 0 20px;
  cursor: pointer;
  display: inline-block;
  transform-origin: center bottom;
}

header .logo:hover {
  animation: jump 1.4s ease-in-out forwards;
}

@keyframes jump {
  /* Estado Inicial */
  0% {
    transform: translateY(0) scale(1, 1);
  }
  /* Agacha para Pular */
  10% {
    transform: translateY(0) scale(1.1, 0.85);
  }
  /* Impulso */
  20% {
    transform: translateY(0px) scale(0.95, 1.05);
  }
  35% {
    transform: translateY(-10px) scale(1, 1.08);
  }
  /* Começa a cair */
  50% {
    transform: translateY(0) scale(1.05, 0.9);
  }

  /* Primeiro quique */
  60% {
    transform: translateY(-10px) scale(0.98, 1.02);
  }

  /* Volta ao chão */
  70% {
    transform: translateY(0) scale(1.03, 0.95);
  }

  /* Segundo quique (menor) */
  80% {
    transform: translateY(-5px);
  }

  /* Finaliza */
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

header nav a {
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  padding: clamp(0.7rem, 1vw, 1rem) clamp(0.8rem, 1.5vw, 1.4rem);
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
}

header nav a:hover {
  color: var(--color-bg-dark);
  background: var(--color-white);
  box-shadow: inset 0 0 50px var(--color-accent-strong);
}

.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container {
  margin-top: 5rem;
}

main .container .logo2 {
  margin-top: 1rem;
  width: clamp(120px, 18vw, 200px);
  animation: jumpSpinLoop 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  will-change: transform;
}

@keyframes jumpSpinLoop {
  /* PARADO (delay entre loops) */
  0% {
    transform: translateY(0) rotate(0deg) scale(1, 1);
  }

  20% {
    transform: translateY(0) rotate(0deg) scale(1, 1);
  }

  /* PREPARAÇÃO */
  25% {
    transform: scale(1.1, 0.85);
  }

  /* SALTO + GIRO */
  35% {
    transform: translateY(-40px) rotate(180deg) scale(0.95, 1.05);
  }

  45% {
    transform: translateY(-60px) rotate(360deg);
  }

  /* QUEDA */
  55% {
    transform: translateY(0) scale(1.05, 0.9);
  }

  /* QUIQUE 1 */
  65% {
    transform: translateY(-40px);
  }

  72% {
    transform: translateY(0) scale(1.03, 0.95);
  }

  /* QUIQUE 2 */
  80% {
    transform: translateY(-15px);
  }

  /* FINAL */
  90% {
    transform: translateY(0) scale(1, 1);
  }

  /* SEGURA antes de reiniciar */
  100% {
    transform: translateY(0) rotate(360deg) scale(1, 1);
  }
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Estilo Básico do Título */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0rem;
}

.welcome-text {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
}

.quarky-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: -15px;
  gap: 0.1rem;
}

.draw {
  margin-top: -10px;
  display: block;
}

/* Cores das Letras */
.orange {
  color: #fb6002;
}
.blue {
  color: #027cfd;
}

.container span {
  text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.5);
}

.container h1 .letter {
  display: inline-block;
  font-size: clamp(2.5rem, 8vw, 5rem);
  animation: jumpText 3s ease-in-out infinite;
  transform-origin: center;
  margin-bottom: 0;
}

@keyframes jumpText {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  20% {
    transform: translateY(0) scale(1.1, 0.5);
  }
  25% {
    transform: translateY(0px) scale(0.95, 1.08);
  }
  35% {
    transform: translateY(-20px) scale(1.03, 1.1);
  }
  50% {
    transform: translateY(-30px) scale(1.03, 0.5);
  }
  60% {
    transform: translateY(-30px) scale(0.98, 0.5);
  }
  70% {
    transform: translateY(0) scale(1.03, 0.95);
  }
  80% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

h1 .letter:nth-child(1) {
  animation-delay: 0s;
}

h1 .letter:nth-child(2) {
  animation-delay: 0.4s;
}
h1 .letter:nth-child(3) {
  animation-delay: 0.8s;
}
h1 .letter:nth-child(4) {
  animation-delay: 1.2s;
}
h1 .letter:nth-child(5) {
  animation-delay: 1.6s;
}
h1 .letter:nth-child(6) {
  animation-delay: 2s;
}

/* --- PONTO DE EXCLAMAÇÃO --- */
.container h1 .exclamation {
  display: inline-block;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: bold;
  transform-origin: bottom center;
  margin-left: 5px;
  animation: super-happy-swing 1s ease-in-out infinite alternate;
}

@keyframes super-happy-swing {
  0% {
    transform: translateY(0) rotate(-15deg) scale(1, 0.8);
  }
  50% {
    transform: translateY(-15px) rotate(0deg) scale(0.7, 1.2);
  }
  100% {
    transform: translateY(0) rotate(15deg) scale(1, 0.8);
  }
}

.draw {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 10px;
  animation: blinkPulseFade 2.5s infinite ease-in-out;
  display: inline-block;
  padding: 20px;
  background-image: linear-gradient(
    to right,
    #fb6002,
    #ff7a00,
    #027cfd,
    #00c2ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

@keyframes blinkPulseFade {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1); /* Pulsar (aumentar) */
  }
  100% {
    transform: scale(1); /* Voltar ao tamanho original */
  }
}

.container p {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.8rem);
  margin: 1rem;
  letter-spacing: 1px;
}

.container ul {
  width: 90%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem;
  padding: 0;
  list-style: none;
}

.container li {
  width: 100%;
}

.container li a {
  color: #1b263b;
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.7rem);
  padding: clamp(1rem, 2vw, 2rem);
  font-weight: 600;
  text-decoration: none;
  background: #e0e1dd;
  border-radius: 10px;
  transition: 0.3s ease-in-out;
}

.container li a:hover {
  background: transparent;
  color: white;
  box-shadow:
    inset 0 0 75px var(--color-primary),
    0 0 15px var(--color-primary-medium);
}

/* ================================== */
/* Container da Propaganda QuarkZetta */
/* ================================== */
.tech-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 220px;
  margin-top: 3rem;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(10, 123, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #0b1220, #101b33, #0d1b2a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.03),
    0 10px 40px rgba(0, 0, 0, 0.25);
}

.tech-container .relative {
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
}

/* Container das logos */
.logos-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4rem;
}

/* Base das Partículas "Vagalumes" */
.data-bit {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  z-index: 15;
  pointer-events: none;
  opacity: 0.5; /* Opacidade leve para não sobressair */
  filter: blur(1px);
}

/* Animação de Movimento */
@keyframes fly-right {
  0% {
    left: 30%;
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5) rotate(45deg);
    opacity: 0.7;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    left: 70%;
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes fly-left {
  0% {
    right: 30%;
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5) rotate(-45deg);
    opacity: 0.7;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    right: 70%;
    opacity: 0;
    transform: scale(0.5);
  }
}

/* Animação Sísmica / Morphing (Deformação da Bolinha) */
@keyframes seismic-glow-pure {
  0%,
  100% {
    border-radius: 50%;
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    border-radius: 30% 70% 70% 30%;
    transform: scale(1.4);
    opacity: 0.7;
  }
}

/* Aplicando as animações com delays para não saírem todas juntas */
.bit-white {
  animation:
    fly-left 10s linear infinite 1s,
    seismic-glow 3s ease-in-out infinite;
  top: 45%;
}
.bit-black {
  animation:
    fly-right 8s linear infinite,
    seismic-glow 4s ease-in-out infinite;
  top: 45%;
}
.bit-yellow {
  animation:
    fly-right 6s linear infinite,
    seismic-glow 3s ease-in-out infinite;
  top: 25%;
}
.bit-green {
  animation:
    fly-right 11s linear infinite 1.5s,
    seismic-glow 4s ease-in-out infinite;
  top: 55%;
}
.bit-blue {
  animation:
    fly-left 9s linear infinite 3s,
    seismic-glow 4s ease-in-out infinite;
  top: 40%;
}
.bit-orange {
  animation:
    fly-right 12s linear infinite 2s,
    seismic-glow 5s ease-in-out infinite;
  top: 55%;
}

/* Animação de Flutuar (Efeito Boiar) */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.btn-shine {
  position: relative;
  overflow: hidden; /* Garante que o brilho não saia dos limites do botão */
}

.btn-shine::after {
  content: "";
  position: absolute;
  font-size: 20px;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: rotate(30deg);
  animation: shine-sweep 4s infinite ease-in-out;
}

@keyframes shine-sweep {
  0% {
    left: -100%;
  }
  20% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* ============================ */
/*   ESTILIZAÇÃO DOS ANÚNCIOS   */
/* ============================ */
.anuncios {
  max-width: 500px;
  margin: auto;
  padding: 20px;
  flex: 1;
}

.ad-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  text-decoration: none;
  color: #0f172a !important;
  max-width: 600px;
  width: 100%;
  transition: transform 0.2s;
  overflow: hidden;
}

.ad-card:hover {
  transform: translateY(-3px);
}

/* ESTILIZAÇÃO E ANIMAÇÃO DA DEVCLUB */
.ad-affiliate-container-devclub {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background-color: #f9f9f9;
  box-shadow: 1px 1px 6px #6818a5 !important;
  margin: 2.5rem 0;

  animation: swing-banner 2.5s ease-in-out infinite;
}

.ad-card-devclub {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  text-decoration: none;
  color: #0f172a !important;
  max-width: 600px;
  width: 100%;
  transition: transform 0.2s;
  overflow: hidden;
}

.ad-card-devclub:hover {
  transform: translateY(-3px);
}

.ad-image-devclub {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin-left: 3%;
  object-fit: cover;
  box-shadow: 0 0 10px #420f69;
}

.ad-content-devclub {
  padding: 15px;
  flex: 1;
}

.ad-title-devclub {
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  color: #420f69;
  margin-bottom: 5px;
}

.ad-text {
  font-size: 0.9rem;
  color: #0f172ace;
}

.ad-button-devclub {
  background: white;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
  box-shadow:
    inset 0 0 15px #6f31ad,
    0 3px 7px #552585;
  display: inline-block;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  animation: balancar 2.5s ease-in-out infinite;
}

.ad-button-devclub #dev {
  color: #73cf0c;
  margin-right: 1px;
}
.ad-button-devclub #club {
  color: #6e30ad;
}

/* Animação dos Ícones do Botão (invisíveis por padrão) */
.ad-button-devclub::before {
  content: "󠀾󠀾󠀾󠀾< 🖥️ 🧠 📱 >";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ad-button-devclub::after {
  content: "󠀾󠀾󠀾󠀾< 📱 🖥️ 🧠  >";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  right: 50%;
  transform: translateX(50%);
}

/* Animação para lançar corações */
.ad-button-devclub::before {
  animation: fly 2.3s infinite;
}

.ad-button-devclub::after {
  animation: fly 2.3s infinite;
  animation-delay: 0.7s; /* Segundo coração sai depois */
}

/* --- ANIMAÇÕES EM LOOP DOS BOTÕES --- */
@keyframes balancar {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(-7deg);
  }
  20% {
    transform: rotate(7deg);
  }
  30% {
    transform: rotate(-7deg);
  }
  40% {
    transform: rotate(7deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

/* Movimento do Botão (Tremor) */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-3px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(3px);
  }
}

/* Voo do Coração 1 */
@keyframes fly {
  0% {
    transform: translate(-40%, 0) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-15px, -50px) scale(1.3);
    opacity: 0;
  }
}

/* Voo do Coração 2 */
@keyframes fly {
  0% {
    transform: translate(-30%, 0) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(15px, -50px) scale(1.1);
    opacity: 0;
  }
}

@keyframes balanço-botao {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes swing-banner {
  0%,
  100% {
    transform: translateX(5px);
  }
  50% {
    transform: translateX(-5px);
  }
}

@keyframes swing-banner2 {
  0%,
  100% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
}
/* FIM DA ESTILIZAÇÃO E ANIMAÇÃO DA DEVCLUB */

/* ESTILIZAÇÃO E ANIMAÇÃO EBOOK VIVER NA ESPANHA */
.ad-affiliate-container-ebookVNE {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  border-radius: 20px;
  background-color: #f9f9f9;
  box-shadow: 1px 1px 6px #b60229;
  animation: swing-banner 2.5s ease-in-out infinite;
}

.ad-card-ebookVNE {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  text-decoration: none;
  color: #0f172a !important;
  max-width: 600px;
  width: 100%;
  transition: transform 0.2s;
  overflow: hidden;
}

.ad-card-ebookVNE:hover {
  transform: translateY(-3px);
}

.ad-image-ebookVNE {
  width: 120px;
  height: auto;
  border-radius: 20px;
  margin-left: 3%;
  object-fit: cover;
}

.ad-content-ebookVNE {
  padding: 15px;
  flex: 1;
}

.ad-title-ebookVNE {
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  color: #b60229;
  margin-bottom: 5px;
}

.ad-button-ebookVNE {
  color: #b60229;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
  box-shadow:
    inset 0 0 15px #b60229,
    0 0px 7px #7e011c;
  display: inline-block;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  animation: balancar 2.5s ease-in-out infinite;
}

/* Animação dos Ícones do Botão (invisíveis por padrão) */
.ad-button-ebookVNE::before {
  content: "󠀾󠀾󠀾󠀾. 🗺️  🛩️ 🧳 .";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ad-button-ebookVNE::after {
  content: "󠀾󠀾󠀾󠀾. 🧳 🗺️ 🛩️ .";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  right: 50%;
  transform: translateX(50%);
}

/* Animação para lançar corações */
.ad-button-ebookVNE::before {
  animation: fly 2.3s infinite;
}

.ad-button-ebookVNE::after {
  animation: fly 2.3s infinite;
  animation-delay: 0.7s; /* Segundo coração sai depois */
}
/* FIM DA ESTILIZAÇÃO E ANIMAÇÃO EBOOK VIVER NA ESPANHA */

/* ESTILIZAÇÃO E ANIMAÇÃO DA RESTAURAÇÃO CAPILAR */
.ad-affiliate-container-RC {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  margin: 2.5rem 0;
  background-color: #f9f9f9;
  box-shadow: 1px 1px 6px #085852;
  animation: swing-banner2 2.5s ease-in-out infinite;
}

.ad-card-RC {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  color: #0f172a !important;
  max-width: 600px;
  width: 100%;
  transition: transform 0.2s;
  overflow: hidden;
}

.ad-card-RC:hover {
  transform: translateY(-3px);
}

.ad-image-RC {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin-left: 3%;
  object-fit: cover;
  box-shadow: 0 0 10px #000;
}

.ad-content-RC {
  padding: 15px;
  flex: 1;
}

.ad-title-RC {
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 5px;
}

.ad-button-RC {
  color: #000;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
  box-shadow:
    inset 0 0 15px #085852,
    0 3px 7px #085852;
  display: inline-block;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  animation: balancar 2.5s ease-in-out infinite;
}

/* Animação dos Ícones do Botão (invisíveis por padrão) */
.ad-button-RC::before {
  content: "󠀾󠀾󠀾󠀾. 👩🏻 👨🏻‍🦱 💆🏻‍♀️ .";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ad-button-RC::after {
  content: "󠀾󠀾󠀾󠀾. 👨🏻‍🦱 💆🏻‍♀️ 👩🏻 .";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  right: 50%;
  transform: translateX(50%);
}

/* Animação para lançar corações */
.ad-button-RC::before {
  animation: fly 2.3s infinite;
}

.ad-button-RC::after {
  animation: fly 2.3s infinite;
  animation-delay: 0.7s; /* Segundo coração sai depois */
}
/* FIM DA ESTILIZAÇÃO E ANIMAÇÃO DA → RESTAURAÇÃO CAPILAR */

/* ESTILIZAÇÃO E ANIMAÇÃO 365 DIAS DE CONEXÃO COM DEUS */
.ad-affiliate-container-365DCD {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  margin-top: 2.5rem;
  background-color: #f9f9f9;
  box-shadow: 1px 1px 6px #0f7dc1;
  animation: swing-banner2 2.5s ease-in-out infinite;
}

.ad-card-365DCD {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  color: #0f172a !important;
  max-width: 600px;
  width: 100%;
  transition: transform 0.2s;
  overflow: hidden;
}

.ad-card-365DCD:hover {
  transform: translateY(-3px);
}

.ad-image-365DCD {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin-left: 3%;
  object-fit: cover;
  box-shadow: 0 0 10px #07588a;
}

.ad-content-365DCD {
  padding: 15px;
  flex: 1;
}

.ad-title-365DCD {
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  color: #0d6da8;
  margin-bottom: 5px;
}

.ad-button-365DCD {
  color: #0d6da8;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
  box-shadow:
    inset 0 0 15px #0f7dc1,
    0 3px 7px #07588a;
  display: inline-block;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  animation: balancar 2.5s ease-in-out infinite;
}

/* Animação dos Ícones do Botão (invisíveis por padrão) */
.ad-button-365DCD::before {
  content: "󠀾󠀾󠀾󠀾. 🕊️ ⛪ 🐑 .";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ad-button-365DCD::after {
  content: "󠀾󠀾󠀾󠀾. 🐑 ⛪ 🕊️ .";
  position: absolute;
  font-size: 15px;
  opacity: 0;
  top: 0;
  right: 50%;
  transform: translateX(50%);
}

/* Animação para lançar corações */
.ad-button-365DCD::before {
  animation: fly 2.3s infinite;
}

.ad-button-365DCD::after {
  animation: fly 2.3s infinite;
  animation-delay: 0.7s; /* Segundo coração sai depois */
}
/* FIM DA → ESTILIZAÇÃO E ANIMAÇÃO 365 DIAS DE CONEXÃO COM DEUS */

/* --- CONFIGURAÇÕES DO FOOTER --- */
.main-footer {
  width: 100%;
  padding-top: 40px;
  margin-top: auto;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
}

.footer-logo-text {
  padding: 16px 0;
  color: #c1c1c133;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5em;
}

.footer-credits {
  color: #c1c1c133;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 2rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

/* --- BOTÕES FLUTUANTES (CONTAINERS) --- */
.fixed-container {
  position: fixed;
  bottom: 32px;
  z-index: 9999;
  animation: float 3s ease-in-out infinite;
}

.fixed-container.left {
  left: clamp(10px, 2vw, 32px);
}
.fixed-container.right {
  right: clamp(10px, 2vw, 32px);
  animation-delay: 0.5s;
}

/* --- BOTÃO GLASSMORPHISM (ESQUERDA) --- */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    #ffffff 100%
  );
  backdrop-filter: blur(10px);
  /* border: 1px solid rgba(255, 255, 255, 0.3); */
  margin-bottom: 5rem;
  border-radius: 50px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  transform: scale(1.05);
}
.btn-glass:active {
  transform: scale(0.95);
}

.logo-circle {
  width: 40px;
  margin: 6px 0;
  height: auto;
  display: block;
  object-fit: contain;
}

.btn-label {
  color: #0a2540;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- BOTÃO WHATSAPP (DIREITA) --- */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 5rem;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 1px 2px 10px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 1px 2px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp img {
  width: 35px;
  height: 35px;
}

/* ============================ */
/*   ESTILIZAÇÃO COLORS PAGE   */
/* ============================ */
.container-colors,
.container-names,
.container-numbers,
.container-teams {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 220px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
}

.div-colors,
.div-names,
.div-numbers {
  font-size: 18px;
  font-weight: 600;
  color: #e0e1dd;
  letter-spacing: 1.5px;
  width: 100%;
  min-height: 220px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(10, 123, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #0b1220, #101b33, #0d1b2a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.03),
    0px 0px 12px #e0e1dd;
}

.div-teams {
  font-size: 18px;
  font-weight: 600;
  color: #e0e1dd;
  letter-spacing: 1.5px;
  width: 100%;
  min-height: 220px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(10, 123, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #0b1220, #101b33, #0d1b2a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.03),
    0px 0px 12px #e0e1dd;
  overflow-y: auto;
}

.div-colors h1,
.div-names h1,
.div-numbers h1,
.div-teams h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  color: #fff;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  padding: 0.5rem 2rem;
  box-shadow:
    inset 0 0 75px #fff,
    0 0 7px #fff;
  text-shadow: 0px 2px 3px #0d1b2a;
  transition: 0.3s ease-in-out;
}

.div-colors p {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: #fff;
}

.sorteio {
  color: #eb5e28;
}

.sort-colors,
.sort-names,
.sort-numbers,
.sort-teams {
  color: #0b4fd6;
}

.div-colors label,
.div-names label,
.div-numbers label,
.div-teams label {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
}

/* Caixa que muda de cor */
#color-box {
  width: 80%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 1.5rem auto;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.7);
  border-radius: 15%;
  transition: background-color 0.2s ease;
}

/* Espaço reservado para o nome da cor */
#color-result {
  width: 80%;
  max-width: 380px;
  min-height: 70px;
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 15px;
  text-transform: uppercase;

  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 800;

  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 75px #fff,
    0 0 7px #fff;
  transition: all 0.3s ease;
}

/* ============================ */
/*   ESTILIZAÇÃO NUMBERS PAGE   */
/* ============================ */
.div-names p,
.div-numbers p,
.div-teams p {
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: #fff;
  margin-bottom: 2rem;
}

.container-numbers label,
.container-names label {
  margin-top: 1.5rem;
}

.container-numbers input,
.container-names input,
.container-teams input {
  border: none;
  outline: none;
  border-radius: 7px;
  height: 2rem;
  width: 25%;
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0.7rem 0;
  padding: 1.7rem;
  background: #1b263b;
  box-shadow: 0px 0px 5px #0b4fd6;
  color: #eb5e28;
  font-weight: 600;
}

.container-teams .participant-name,
.container-teams .team-name,
.container-names .name-input {
  border: none;
  outline: none;
  border-radius: 7px;
  height: 2rem;
  width: 40%;
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0.7rem 0;
  padding: 1.7rem;
  background: #1b263b;
  box-shadow: 0px 0px 5px #0b4fd6;
  color: #eb5e28;
  font-weight: 600;
}

.container-numbers input:hover,
.container-names input:hover,
.container-teams input:hover {
  background: #fff;
  box-shadow: 0px 0px 5px #fff;
}

.btn-sortColor,
.btn-sortName,
.btn-sortTeams {
  width: 100%;
  max-width: 250px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  margin-top: 0.4rem;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 65px #eb5e28;
  color: #0d1b2a;
  transition: 0.3s ease-in-out;
}

.btn-sortNumber {
  width: 100%;
  max-width: 250px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  margin-top: 1.5rem;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 65px #eb5e28;
  color: #0d1b2a;
  transition: 0.3s ease-in-out;
}

.btn-addEquipe {
  width: 100%;
  max-width: 250px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  margin-top: 1rem;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 65px #0b4fd6;
  color: #0d1b2a;
  transition: 0.3s ease-in-out;
}

.add-name-btn {
  width: 100%;
  max-width: 250px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  margin-top: 1.5rem;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 65px #085852;
  color: #0d1b2a;
  transition: 0.3s ease-in-out;
}

.btn-sortEquipe {
  width: 100%;
  max-width: 250px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  margin-top: 0.7rem;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 65px #eb5e28;
  color: #0d1b2a;
  transition: 0.3s ease-in-out;
}

.btn-sortColor:hover,
.btn-sortNumber:hover,
.btn-sortName:hover,
.add-name-btn:hover,
.btn-sortTeams:hover,
.btn-sortEquipe:hover {
  box-shadow: inset 0 0 65px #0b4fd6;
  transform: translateY(-5px);
}

.btn-addEquipe:hover {
  box-shadow: inset 0 0 65px #085852;
  transform: translateY(-5px);
}

/* --- ANIMAÇÕES --- */
@keyframes shine-loop {
  0% {
    left: -60%;
  }
  15% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* ============================= */
/*   ESTILIZAÇÃO NUMBERS NAMES   */
/* ============================= */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000bb;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
}

#name-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.name-item {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  background-color: #ffffff;
  color: #eb5e28;
  width: 130px; /* Define um tamanho fixo para todos os nomes */
  height: 70px; /* Define uma altura fixa para manter alinhamento */
  display: flex;
  align-items: center;
  justify-content: center;
}

#countdown-container {
  font-size: 2rem;
  font-weight: bold;
  color: #d9534f;
  margin-top: 20px;
}

#result-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#result-name {
  font-size: 3rem;
  font-weight: bold;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  animation: grow 1s ease-in-out forwards;
}

#new-draw-btn {
  width: 100%;
  padding: 0 2rem;
  height: 3rem;
  margin-top: 4.5rem;
  font-size: 20px;
  font-weight: 700;
  background-color: #fff;
  color: #eb5e28;
  text-shadow: 0px 1px 2px #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  transition: 0.3s ease-in-out;
}

#new-draw-btn:hover {
  background: #0d1b2a;
  color: #fff;
  text-shadow: 1px 1px 2px #a7a7a7;
  box-shadow: 0px 0px 10px #e0e1dd;
  transform: translateY(-5px);
}

@keyframes grow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(2);
  }
}

/* Estilização do Sorteio das Equipes */
#overlay-teams {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000bb;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.container-teams label {
  margin-top: 1rem;
}
.color-picker {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 4.5rem);
  grid-auto-rows: 4.5rem;
}

.color-btn {
  margin-left: auto;
  margin-right: auto;
  height: 3.5rem;
  width: 3.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#name-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

#team-list,
#participant-list {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 15px; /* Respiro interno */
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Se a cor da equipe for #ffffff, o H3 fica escuro */
.team-column.white-team h3 {
  color: #0b1220 !important;
  text-shadow: none;
}

.name-item,
.team-item {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  background-color: #ffffff;
  color: #eb5e28;
  width: 130px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team {
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  color: white;
  margin-top: 10px;
}

.participant-item {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  background-color: #ffffff;
  color: #eb5e28;
  width: 130px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#countdown-container {
  font-size: 2rem;
  font-weight: bold;
  color: #d9534f;
  margin-top: 20px;
}

#result-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#result-name {
  font-size: 3rem;
  font-weight: bold;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  animation: grow 1s ease-in-out forwards;
}

#new-draw-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

@keyframes grow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(2);
  }
}

/* ==============================
   ESTILIZAÇÃO GLOBAL DE MODAIS 
   ============================== */
/* Fundo escuro - Use este ID ou Classe para todos os overlays */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active,
#overlay.active {
  display: flex;
}

/* Caixa do Modal - Estilo QuarkZetta */
.modal-content {
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px; /* Aumentei um pouco para caber as colunas das equipes */
  width: 90%;
  max-height: 85vh; /* Garante que o modal não passe da tela */
  overflow-y: auto; /* Ativa rolagem se houver muitas equipes */
  overflow-x: hidden; /* Evita que o modal dance para os lados */
  position: relative;
  background:
    radial-gradient(circle at top, rgba(10, 123, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #0b1220, #101b33, #0d1b2a);
  box-shadow: 0 0 30px #07588a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
}

/* Item do Participante (Tamanhos iguais) */
.participant-in-team {
  background:
    radial-gradient(circle at top, rgba(10, 123, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #0b1220, #101b33, #0d1b2a);
  color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Força todos a terem o mesmo tamanho baseado na largura da coluna */
  width: 100%;
  aspect-ratio: 3 / 1; /* Mantém a proporção de retângulo independente do conteúdo */
  padding: 5px;

  font-size: clamp(0.6rem, 2.5vw, 1rem);
  line-height: 1.1;
  word-break: break-word;
  overflow: hidden;
}

/* Animação Pulsante para o Centro da Tela */
.sorting-highlight-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: #0b1220;
  padding: 20px 30px;
  border-radius: 15px;
  border: none;
  box-shadow:
    0 0 35px #0a7bff,
    0 0 10px rgba(10, 123, 255, 0.5);
  text-align: center;
  width: 80%;
  max-width: 350px;
  animation: pulseCenter 0.5s infinite alternate;
}

.sorting-highlight-overlay h1 {
  font-size: 1.8rem; /* Tamanho controlado */
  color: #fff;
  margin: 10px 0;
}

@keyframes pulseCenter {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.name-tag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 50px;
  height: auto;
  border-radius: 12px;
  font-weight: bold;
  font-size: clamp(1.1rem, 2.5vw, 1rem);
  color: white;
  text-align: center;
  white-space: normal; /* Permite que o nome quebre linha se for grande */
  word-wrap: break-word; /* Força a quebra de palavras gigantes */
  background:
    radial-gradient(circle at top, rgba(10, 123, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #0b1220, #101b33, #0d1b2a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

/* Estilo para cores bloqueadas na seleção */
.color-btn.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  filter: grayscale(1);
  transform: scale(0.9);
  pointer-events: none;
}

.modal-logo {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding-top: 20px;
  display: block;
  overflow: visible; /* CRUCIAL: permite que a sombra/brilho da animação apareça */
  object-fit: contain;
  animation: jumpSmall 3s ease-in-out infinite;
}

@keyframes jumpSmall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1, 1);
  }

  20% {
    transform: translateY(0) rotate(0deg) scale(1, 1);
  }

  /* PREPARAÇÃO */
  25% {
    transform: scale(1.1, 0.85);
  }

  /* SALTO + GIRO */
  35% {
    transform: translateY(-20px) rotate(180deg) scale(0.95, 1.05);
  }

  45% {
    transform: translateY(-25px) rotate(360deg);
  }

  /* QUEDA */
  55% {
    transform: translateY(0) scale(1.05, 0.9);
  }

  /* QUIQUE 1 */
  65% {
    transform: translateY(-20px);
  }

  72% {
    transform: translateY(0) scale(1.03, 0.95);
  }

  /* QUIQUE 2 */
  80% {
    transform: translateY(-15px);
  }

  /* FINAL */
  90% {
    transform: translateY(0) scale(1, 1);
  }

  /* SEGURA antes de reiniciar */
  100% {
    transform: translateY(0) rotate(360deg) scale(1, 1);
  }
}

/* Estilos para o Modal de Confirmação customizado */
.confirm-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Aproximar Quarky de Sorteios */
.welcome-container h1 {
  margin-bottom: 0;
} /* Ajuste no título principal */
.welcome-container h2 {
  margin-top: -20px; /* Puxa o texto "Sorteios" para cima */
  font-size: 1.5rem;
}

/* Cor quando selecionada (antes de adicionar a equipe) */
.color-btn.selected-now {
  transform: scale(1.15);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
  /* border: 2px solid white; */
  z-index: 5;
}

/* Deixar as cores já usadas opacas (disabled) */
.color-btn.disabled {
  opacity: 0.3;
  filter: grayscale(0.8);
  cursor: not-allowed;
}

/* Estilo do Nome Vencedor no Modal */
.winner-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: #eb5e28;
  margin: 20px 0;
}

/* Lista de nomes adicionados */
.name-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Força 2 colunas */
  gap: 10px;
  margin: 20px 0;
  width: 100%;
}

/* Botões de Confirmação (Estilo Quarky) */
.confirm-btn {
  flex: 1;
  border: none;
  border-radius: 12px; /* Arredondado padrão do app */
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.confirm-btn:active {
  transform: scale(0.95);
}

.confirm-btn-yes {
  box-shadow: inset 0 0 35px #c1121f;
  color: #0a2540;
  transition: all 0.3s ease-in-out;
}

.confirm-btn-yes:hover {
  box-shadow: inset 0 0 100px #c1121f;
  transform: translateY(-2px);
}

.confirm-btn-no {
  box-shadow: inset 0 0 35px #25d366;
  color: #0a2540;
}

.confirm-btn-no:hover {
  box-shadow: inset 0 0 100px #25d366;
  transform: translateY(-2px);
}

/* Classe para o número sorteado */
.winner-number-highlight {
  background-color: #ffffff !important;
  background-image: none !important; /* Remove gradientes se houver */
  color: #000000 !important;
  font-weight: 900 !important;
  box-shadow:
    0 0 15px #007bff,
    inset 0 0 10px #007bff !important;
  animation: super-happy-swing 1s ease-in-out infinite alternate !important;
  z-index: 10;
  position: relative;
}

/* 4 tipos de animações com movimentos e tempos diferentes */
@keyframes bagunca1 {
  from {
    transform: rotate(-6deg);
  }
  to {
    transform: rotate(6deg);
  }
}
@keyframes bagunca2 {
  from {
    transform: translateY(-5px);
  }
  to {
    transform: translateY(5px);
  }
}
@keyframes bagunca3 {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1.1);
  }
}
@keyframes bagunca4 {
  from {
    transform: rotate(5deg) scale(1);
  }
  to {
    transform: rotate(-5deg) scale(0.9);
  }
}

.anim-v1 {
  animation: bagunca1 0.35s ease-in-out infinite alternate !important;
}
.anim-v2 {
  animation: bagunca2 0.45s ease-in-out infinite alternate !important;
}
.anim-v3 {
  animation: bagunca3 0.55s ease-in-out infinite alternate !important;
}
.anim-v4 {
  animation: bagunca4 0.4s ease-in-out infinite alternate !important;
}

/* =========================================
   ESPECÍFICO: SORTEIO DE EQUIPES
   ========================================= */
/* Grid de Equipes dentro do Modal Result */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  width: 100%;
}

/* Coluna de cada equipe */
.team-column {
  border-radius: 12px;
  padding: 15px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden; /* Garante que nada saia da coluna */
}

/* Título da Equipe */
.team-column h3 {
  color: #ffffff !important;
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(
    1rem,
    4vw,
    1.4rem
  ); /* Diminui se o nome da equipe for gigante */
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grid de Participantes - Responsividade */
.members-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Garante 2 colunas exatamente iguais */
  gap: 10px;
  width: 100%;
  justify-content: center;
  align-items: stretch; /* Garante que todos os itens na mesma linha tenham a mesma altura */
}

/* Classe aplicada via JS para o efeito de brilho da roleta */
.name-tag-item.active-spin {
  border-color: #eb5e28;
  box-shadow: 0 0 15px #eb5e28;
  transform: scale(1.05);
  z-index: 10;
}

/* Estilização do Vencedor no Modal */
.winner-display {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.winner-letter {
  display: inline-block;
  font-size: 3rem;
  font-weight: 900;
  animation: jumpText2 0.6s ease-in-out infinite;
}

/* Cores alternadas como na logo */
.winner-letter.orange {
  color: #eb5e28;
}
.winner-letter.blue {
  color: #0a7bff;
}

@keyframes jumpText2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.btn-close-modal {
  box-shadow: inset 0 0 45px #eb5e28;
  color: #0a2540;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  font-weight: bold;
  margin-top: 15px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.btn-close-modal:hover {
  box-shadow: inset 0 0 45px #0a7bff;
  transform: translateY(-3px) scale(1.05);
}

/* Botão Limpar Lista */
#clear-list-btn {
  background: linear-gradient(135deg, #1a2a44, #0d1b2a);
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-weight: bold;
  transition: 0.3s;
}

#clear-list-btn:hover {
  background: #ff4d4d;
  color: white;
}

#result {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  min-height: 50px;
}

.roulette-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff9d00; /* Laranja Quarky */
  text-shadow: 0 0 10px rgba(255, 157, 0, 0.5);
  animation: pulse 0.1s infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* =======================================================
   MOBILE (PERFEITO PARA TELAS PEQUENAS)
======================================================= */
@media (max-width: 480px) {
  .btn-glass {
    gap: 8px;
    padding: 12px 18px;
    border-radius: 40px;

    transform: scale(0.9);
    transform-origin: left bottom;
  }

  .logo-circle {
    width: 35px;
  }

  .btn-label {
    display: block;
    letter-spacing: 0.05em;
  }

  .fixed-container.left {
    left: 8px; /* Cola mais no canto para ganhar espaço */
  }

  .fixed-container.right {
    right: 8px;
  }

  .ad-card,
  .ad-card-MF2,
  .ad-card-RC,
  .ad-card-365DCD,
  .ad-card-ebookVNE {
    flex-direction: column;
    text-align: center;
  }

  .ad-image-MF2,
  .ad-image-365DCD {
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }

  .ad-image-ebookVNE {
    width: 80%;
    height: auto;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }

  .ad-image-devclub,
  .ad-image-RC {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    border-radius: 20px 20px 0 0;
  }
  .ad-image-devclub2 {
    border-radius: 0;
  }

  .container-numbers input {
    width: 35%;
  }

  .container-names .name-input,
  .container-teams .participant-name,
  .container-teams .team-name,
  .container-names .name-input {
    width: 80%;
  }

  #color-box {
    margin: 1rem auto;
  }
  #color-result {
    min-height: 50px;
    padding: 5px 10px;
  }

  .name-tag-item {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }
}

@media (max-width: 360px) {
  #color-box {
    width: 250px;
    height: 230px;
  }

  .div-colors h1,
  .div-names h1,
  .div-numbers h1,
  .div-teams h1 {
    line-height: 2rem;
  }
}

@keyframes magnet-zigzag-logo {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-70px, 0px);
  }

  40% {
    transform: translate(65px, -65px);
  }

  60% {
    transform: translate(190px, 0);
  }

  80% {
    transform: translate(65px, 65px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes magnet-zigzag-nome {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(70px, 0px);
  }

  40% {
    transform: translate(-65px, 65px);
  }

  60% {
    transform: translate(-120px, 0);
  }

  80% {
    transform: translate(-65px, -65px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* =======================================================
   TABLETS
======================================================= */
@media (min-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  header nav {
    justify-content: flex-end;
    padding-right: 20px;
  }

  .container-names .name-input {
    width: 50%;
  }

  .name-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    height: 60px; /* Mais alto */
    font-size: 1.2rem; /* Fonte maior para legibilidade */
    padding: 0 20px;
  }

  .members-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  #team-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  #participant-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  @keyframes magnet-zigzag-logo {
    0% {
      transform: translate(0, 0);
    }

    20% {
      transform: translate(-240px, 0px);
    }

    40% {
      transform: translate(80px, -80px);
    }

    60% {
      transform: translate(420px, 0);
    }

    80% {
      transform: translate(80px, 80px);
    }

    100% {
      transform: translate(0, 0);
    }
  }

  @keyframes magnet-zigzag-nome {
    0% {
      transform: translate(0, 0);
    }

    20% {
      transform: translate(240px, 0px);
    }

    40% {
      transform: translate(-80px, 80px);
    }

    60% {
      transform: translate(-310px, 0);
    }

    80% {
      transform: translate(-80px, -80px);
    }

    100% {
      transform: translate(0, 0);
    }
  }
}

/* =======================================================
   DESKTOP / TELAS GRANDES
======================================================= */
@media (min-width: 1200px) {
  @keyframes magnet-zigzag-logo {
    0% {
      transform: translate(0, 0);
    }

    20% {
      transform: translate(-400px, 0px);
    }

    40% {
      transform: translate(80px, -80px);
    }

    60% {
      transform: translate(580px, 0);
    }

    80% {
      transform: translate(80px, 80px);
    }

    100% {
      transform: translate(0, 0);
    }
  }

  @keyframes magnet-zigzag-nome {
    0% {
      transform: translate(0, 0);
    }

    20% {
      transform: translate(400px, 0px);
    }

    40% {
      transform: translate(-80px, 80px);
    }

    60% {
      transform: translate(-470px, 0);
    }

    80% {
      transform: translate(-80px, -80px);
    }

    100% {
      transform: translate(0, 0);
    }
  }
}

/* 🔥 NOVAS REGRAS: Background tecnológico integrado do projeto Quarky */
.tech-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 220px;
  margin-top: 3rem;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(10, 123, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #0b1220, #101b33, #0d1b2a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.03),
    0 10px 40px rgba(0, 0, 0, 0.25);
}

/* 🔥 Estilização do Canvas interno */
#particlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Deixa o mouse passar para registrar no container pai */
  z-index: 1;
}

.tech-container .relative {
  position: relative; /* Garante que o z-index e posicionamento dos filhos funcionem */
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.quarkzetta-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Pausa as animações das logos quando o mouse estiver sobre o link */
.quarkzetta-link:hover .logoQuark,
.quarkzetta-link:hover .logoQuarkName {
  animation-play-state: paused !important;
}

/* Suas classes existentes ajustadas */
.logoQuark {
  width: clamp(50px, 10vw, 70px);
  animation: magnet-zigzag-logo 20s ease-in-out infinite;
  will-change: transform;
  z-index: 2;
}

.logoQuarkName {
  width: clamp(120px, 30vw, 180px);
  animation: magnet-zigzag-nome 20s ease-in-out infinite;
  will-change: transform;
  z-index: 2;
  /* 🔥 Dica: Mudei para um drop-shadow um pouco mais visível por conta do fundo escuro */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.animate-ping-small {
  animation: ping-slow 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Animação de Alerta */
@keyframes pulse-blue-alert {
  0% {
    filter: brightness(100%) saturate(100%);
  }
  50% {
    /* Aumenta o brilho e a saturação para dar o efeito de "alerta tecnológico" */
    filter: brightness(120%) saturate(150%);
  }
  100% {
    filter: brightness(100%) saturate(100%);
  }
}
