/* =========================================
   GLOBAL STYLES
========================================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;

  /* Fundo gradiente em tons de roxo-azulado escuro (futurista) */
  background: linear-gradient(
    135deg,
    #0b081a,
    #1a1033,
    #2b2150,
    #1a1033,
    #0b081a
  );
  background-size: 600% 600%;
  animation: gradientBG 20s ease-in-out infinite;

  color: #e1dafc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Animação do gradiente de fundo */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =========================================
   CONTAINER (efeito "glass")
========================================= */
.container {
  position: relative;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  background: rgba(26, 16, 51, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 2px solid transparent; /* Torna a borda inicial invisível */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  overflow: hidden;
  
}

/* Cria um contorno fino animado RGB apenas nas bordas */
.container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px; /* Define a espessura da borda */
  background: linear-gradient(90deg, #ff66b2, #4b98ff, #7d5fff, #ff66b2);
  background-size: 300%;
  animation: borderAnimation 2s ease-in-out infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Efeito extra de reflexo interno (opcional) */
.container::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.1),
    transparent 60%
  );
  transform: rotate(25deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* =========================================
   TÍTULOS & TEXTOS
========================================= */
h1 {
  font-size: 2.4em;
  margin-bottom: 16px;
  /* Gradiente de texto roxo-lilás-rosado */
  background: linear-gradient(90deg, #c53ef7, #a75dff, #723dff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent; /* Necessário para ver o gradiente */
  -webkit-text-fill-color: transparent;

  text-shadow: 0 4px 12px rgba(112, 40, 255, 0.4);
  font-weight: 700;
}

p {
  font-size: 1.1em;
  color: #e1dafc;
  margin-bottom: 20px;
}

/* =========================================
   LISTA DE ÍCONES (SE DESEJAR)
========================================= */
.icon-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.icon-list .icon {
  font-size: 1.8em;
  color: #e1dafc;
  transition: transform 0.3s, color 0.3s;
  text-shadow: 0 0 6px rgba(225, 218, 252, 0.6);
}

.icon-list .icon:hover {
  transform: scale(1.2) rotate(10deg);
  color: #a75dff;
}

/* Você pode personalizar cores individuais se quiser */
.icon-gift {
  /* cor específica opcional */
}
.icon-star {
  /* cor específica opcional */
}
.icon-rocket {
  /* cor específica opcional */
}
.icon-heart {
  /* cor específica opcional */
}

/* =========================================
   KEY CONTAINER
========================================= */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 600;
  padding: 10px 18px;

  background: linear-gradient(135deg, #3b2673, #4c2a85);
  border: 1px solid #b18aff;
  border-radius: 12px;
  color: #e1dafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  cursor: default;

  /* Animação suave de brilho no texto */
  animation: colorChange 8s infinite ease-in-out;
}

.shimmer {
  background: linear-gradient(90deg, #3b2673 30%, #4c2a85 45%, #3b2673 60%);
  background-size: 200% 100%;
  animation: shimmerEffect 3.0s infinite linear;
}

@keyframes shimmerEffect {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes colorChange {
  0%, 100% {
    color: #e1dafc;
  }
  50% {
    color: #cebffa;
  }
}

.key:hover {
  background: #2e1e56;
  border-color: #aa83ff;
}

.lock-icon {
  color: #a75dff;
  margin-right: 10px;
}

/* =========================================
   COPY BUTTON
========================================= */
.copy-button {
  margin-top: 24px;
  padding: 12px 30px;
  /* Gradiente roxo-azul */
  background: linear-gradient(135deg, #7f2eff, #3b82f6);
  color: #f4f3ff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(63, 130, 246, 0.4);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Ícone de copiar (Font Awesome) */
.copy-button::before {
  content: '\f0c5'; /* Unicode for copy icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 8px;
}

/* Hover e Active */
.copy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(63, 130, 246, 0.6);
}

.copy-button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 15px rgba(63, 130, 246, 0.4);
}

/* Botão quando copiado (verde) */
.copy-button.copied {
  background: #34c759 !important;
  color: #fff;
  box-shadow: 0 0 20px rgba(52, 199, 89, 0.5);
  transform: scale(1.05);
  animation: none !important;
  transition: all 0.3s ease;
}

.copy-button.copied:hover {
  background: #28a745 !important;
  box-shadow: 0 0 25px rgba(52, 199, 89, 0.6);
  transform: scale(1.08);
}


.copy-button.copied::after {
  content: "";
  position: absolute;
  border-radius: 50px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: copiedPulse 1.5s ease-out forwards;
  background: rgba(52, 199, 89, 0.2);
  z-index: -1;
}

@keyframes copiedPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.copy-button.copied::before {
  content: '\f00c'; /* Ícone de check */
  font-family: 'Font Awesome 5 Free', sans-serif;
  font-weight: 900;
  margin-right: 8px;
}

.copy-button {
  position: relative;
}

/* Mantém o botão verde por 10s e depois volta ao gradiente */
@keyframes stayGreen {
  0% {
    background-color: #34c759;
  }
  100% {
    background: linear-gradient(135deg, #7f2eff, #3b82f6);
    color: #f4f3ff;
  }
}

/* =========================================
   FOOTER
========================================= */
footer {
  margin-top: 24px;
  font-size: 0.9em;
  color: #a398bb;
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

footer p {
  margin: 0;
}


/* =========================================
   SERVER HEADER (desktop)
========================================= */
.server-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px; /* mais curto */
}

.server-icon {
  width: 90px;
  height: 90px;
  border-radius: 20%; /* Ou usa 15% se quiseres mais "tablet" */
  object-fit: cover;
  box-shadow: 0 0 18px rgba(130, 90, 255, 0.6);
  animation: iconPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}


.server-name {
  font-size: 1.5em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
  color: #e1dafc;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
}

.server-desc {
  font-size: 1em;
  text-align: center;
  color: #a39acb;
  margin-bottom: 4px; /* ideal para manter o layout limpo */
  transition: transform 0.3s ease;
}

.server-header + p {
  margin-top: 6px;
}


.server-desc:hover {
  transform: scale(1.05);
  color: #d3ccf2;
}

/* =========================================
   RESPONSIVIDADE DO SERVER HEADER
========================================= */



/* ILUMINAÇÃO E PULSO TECH POR TRÁS DO SERVER ICON */
.server-header {
  position: relative;
}

.server-icon {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  border-radius: 15px;
  object-fit: cover;
  animation: iconPulse 3s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(130, 90, 255, 0.6);
}

/* Glow tech radial com foco dinâmico */
.server-icon::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -25px;
  width: 140px;
  height: 140px;
  border-radius: 15px;
  background: radial-gradient(circle, rgba(130, 90, 255, 0.4), transparent 70%);
  filter: blur(12px);
  z-index: -1;
  animation: pulseAura 4s ease-in-out infinite;
}

/* Auréola giratória digital */
.server-icon::after {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 15px;
  border: 2px dotted rgba(255, 255, 255, 0.07);
  animation: rotateHalo 10s linear infinite;
  z-index: -2;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(167, 93, 255, 0.5);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 28px rgba(167, 93, 255, 0.9);
  }
}

@keyframes pulseAura {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.15);
  }
}

@keyframes rotateHalo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}




.server-icon {
  animation: iconPulse 3s ease-in-out infinite;
}


/* =========================================
   BOTÃO COPY - GRADIENTE DINÂMICO + GLOW
========================================= */
.copy-button {
  margin-top: 24px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #7f2eff, #3b82f6, #a855f7, #3b82f6);
  background-size: 300%;
  animation: glowing 8s linear infinite;
  color: #f4f3ff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(63, 130, 246, 0.4);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.copy-success {
  margin-top: 10px;
  font-size: 1em;
  color: #34c759;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.copy-success.hidden {
  display: none;
}


@keyframes glowing {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 12px rgba(130, 99, 255, 0.6);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 22px rgba(63, 130, 246, 0.9);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 12px rgba(130, 99, 255, 0.6);
  }
}

.server-header + p {
  margin-top: 6px !important;
}

.hidden {
  display: none;
}

@media (max-width: 576px) {
  .server-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(130, 90, 255, 0.4);
  }

  .server-name {
    font-size: 1.1em;
  }

  .server-desc {
    font-size: 0.9em;
  }

  .key {
    font-size: 1em;
    padding: 8px 12px;
  }

  .copy-button {
    /* width: 100%; */
    font-size: 0.95em;
    padding: 10px 22px;
    border-radius: 40px;
    justify-content: center;
  }

  .copy-button::before {
    font-size: 0.9em;
    margin-right: 6px;
  }

  .container {
    max-width: 95%;
    padding: 18px;
  }
}

.container {
  position: relative;
}

.tools {
  display: flex;
  align-items: center;
  padding: 9px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.circle {
  padding: 0 4px;
}

.box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red { background-color: #ff605c; }
.yellow { background-color: #ffbd44; }
.green { background-color: #00ca4e; }

@media (max-width: 576px) {
  /* Centro total no mobile */
  body {
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh;
    padding: 0;
    margin: 0;
  }

  .container {
    max-width: 95%;
    width: 100%;
    padding: 24px 16px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .server-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(130, 90, 255, 0.4);
  }

  .server-name {
    font-size: 1.1em;
    text-align: center;
  }

  .server-desc {
    font-size: 0.9em;
    text-align: center;
  }

  .key {
    font-size: 1em;
    padding: 8px 12px;
    max-width: 100%;
    word-break: break-word;
    text-align: center;
  }

  .copy-button {
    font-size: 0.95em;
    padding: 10px 22px;
    border-radius: 40px;
    justify-content: center;
    width: auto;
  }

  .copy-button::before {
    font-size: 0.9em;
    margin-right: 6px;
  }

  footer {
    position: static;
    margin-top: 20px;
    text-align: center;
  }
}


