* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(145deg, #1b1b2f, #162447);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
}

/* Botão Instalar */
#installBtn {
  display: none;
  position: fixed;
  bottom: 15px;
  left: 15px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
}

#installBtn:hover {
  background: #43a047;
}

/* Modal de seleção */
#selecaoPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1e1e2e, #2a2a40);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

#selecaoPopup h1 {
  color: #ffeb3b;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Botões de opção */
.botao-opcao {
  margin: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 250px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.botao-opcao:hover {
  transform: scale(1.05);
}

.java-btn,
.bedrock-btn {
  background-color: #28ad33;
  color: #fff;
  font-weight: bold;
}

/* Conversor e Final */
#conversor,
#finalBox {
  background: #2a2a3a;
  padding: 25px;
  border-radius: 15px;
  display: none;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  animation: slideUp 0.5s ease-out;
  width: 90%;
  max-width: 400px;
  text-align: center;
  margin-top: 20px;
}

/* Último Nick */
.ultimonick-box {
  background: linear-gradient(to right, #2c7744, #11998e);
  color: #ffffff;
  padding: 20px;
  margin-top: 20px;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
}

.ultimonick-box strong {
  font-size: 1.1rem;
  color: #ffff99;
}

.ultimonick-box button {
  margin: 10px 8px 0;
  padding: 10px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.ultimonick-box .copiado {
  background-color: #4caf50;
  color: white;
}

.ultimonick-box .alternar {
  background-color: #ff9800;
  color: white;
}

input {
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
}

button {
  padding: 12px 20px;
  margin-top: 15px;
  font-size: 1rem;
  background-color: #e49a12;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #3be619;
}

#btnLoja {
  display: none;
  margin-top: 15px;
  background: #00c853;
}

#btnLoja:hover {
  background: #00b44f;
}

/* Resultado Final */
#resultadoFinal {
  font-weight: bold;
  margin-top: 20px;
  font-size: 1.2rem;
  background: #444;
  padding: 12px;
  border-radius: 8px;
  user-select: none;
  cursor: pointer;
  transition: 0.3s ease;
}

#resultadoFinal.copiado {
  animation: glow 1s ease-in-out 1;
  background: #4caf50;
}

#detalhesFinal {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #cccccc;
  background: #333;
  padding: 10px;
  border-radius: 8px;
}

/* Cupom Box */
.mensagem-info-box {
  margin-top: 10px;
  padding: 20px;
  background: linear-gradient(145deg, #162447, #1f2a3a);
  border: 2px solid #00bfff00;
  border-radius: 12px;
  color: #ffffff;
  text-align: center;
  max-width: 480px;
  animation: borderGlow 1.5s infinite ease-in-out;
  box-shadow: 0 0 10px #00000060;
}

.texto-copiavel {
  margin-top: 10px;
  padding: 12px;
  background: #333;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.texto-copiavel:hover {
  background: #444;
}

/* Botão de Configuração */
#configBtn {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: #2c3e5000;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99999;
}

/* Modal */
#editorModal {
  display: none; /* padrão: oculto */
  position: fixed;
  z-index: 100000; /* maior que tudo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* fundo escurecido */
  justify-content: center;
  align-items: center;
}

.modal-conteudo {
  background-color: #1e1e2f;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  text-align: left;
}

/* Animações */
@keyframes borderGlow {
  0% { border-color: #00bfffa4; box-shadow: 0 0 6px #00bfff40, 0 0 12px #00bfff40; }
  50% { border-color: #1eceff6e; box-shadow: 0 0 12px #00bfff99, 0 0 24px #00bfff70; }
  100% { border-color: #00bfff59; box-shadow: 0 0 6px #00bfff40, 0 0 12px #00bfff40; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes glow {
  0% { box-shadow: 0 0 0px #4caf50; }
  50% { box-shadow: 0 0 20px #4caf50; }
  100% { box-shadow: 0 0 0px #4caf50; }
}

@media (max-width: 480px) {
  .botao-opcao {
    width: 90%;
    font-size: 1rem;
  }
}
#opcoesSelecao {
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  display: none; /* obrigatório */
}

