* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "BS";
  src: url("BaksoSapi.otf") format("opentype");
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("assets/pc.png") no-repeat center center / cover;
  font-family: "BS", sans-serif;
  color: #000;
  text-align: center;
  padding: 2rem;
  overflow: auto;
  transition: background 0.3s ease;
}

@media (max-width: 768px) {
  body {
    background: url("assets/Mobile2.png") no-repeat center center / cover;
  }
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: white;
  transition: opacity 0.4s ease;
}

#password-container {
  max-width: 360px;
  width: 92%;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #000;
  text-align: center;
  font-family: "BS", sans-serif;
}

#password-container input {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #000;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  font-family: "BS", sans-serif;
}

#submitPasswordButton {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: "BS", sans-serif;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-width: 420px;
}

.hidden {
  display: none !important;
}

.logo {
  width: 140px;
  height: auto;
  margin-bottom: 0.6rem;
}

.wl-title-image {
  width: 240px;
  height: auto;
  margin-bottom: 0.8rem;
}

#wallet-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

.modal-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.btn-image {
  width: 100%;
  height: auto;
  display: block;
}

.modal-btn.visited {
  opacity: 0.6;
  transform: scale(0.995);
}

.label-img {
  width: 200px;
  height: auto;
  display: block;
  margin-top: 0.4rem;
}

.modal-input {
  width: 100%;
  max-width: 320px;
  padding: 1rem;
  border: 3px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  outline: none;
  text-align: center;
  font-family: "BS", sans-serif;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s ease;
}

.modal-input::placeholder {
  color: #777;
}

.modal-input:focus {
  transform: scale(1.02);
  box-shadow: 4px 4px 0 #c4ce5b;
}

.modal-submit {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  max-width: 260px;
  width: 100%;
  margin-top: 1rem;
}

.apply-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.modal-submit:hover .apply-img {
  transform: scale(1.05);
}

#signupResponseMessage {
  font-size: 1rem;
  margin-top: 0.4rem;
  color: #fff;
}

@media (max-width: 600px) {
  .logo {
    width: 110px;
  }

  .wl-title-image {
    width: 180px;
  }

  .label-img {
    width: 150px;
  }

  .modal-input {
    max-width: 85%;
    font-size: 0.9rem;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    padding: 0.9rem;
    margin-left: -20px;
  }

  .btn-image {
    max-width: 90%;
    margin-left: 15px;
  }

  .apply-img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  body {
    background: url("assets/Mobile2.png") no-repeat center center / cover;
    padding: 1.5rem;
  }

  .logo {
    width: 100px;
    margin-bottom: 0.5rem;
  }

  .wl-title-image {
    width: 170px;
    margin-bottom: 0.5rem;
  }

  .modal-content {
    align-items: center;
    text-align: center;
  }

  .modal-btn.follow-btn {
    transform: translateX(-8px);
  }

  .modal-btn.like-btn {
    transform: translateX(-8px);
  }

  .label-img.x-label {
    transform: translateX(100px);
  }

  .modal-input.x-input {
    transform: translateX(100px);
  }

  .label-img.evm-label {
    transform: translateX(12px);
  }

  .modal-input.evm-input {
    transform: translateX(12px);
  }

  .modal-submit {
    transform: translateX(40px);
    margin-top: 0.6rem;
  }

  .modal-btn,
  .modal-input,
  .modal-submit {
    max-width: 85%;
  }

  #signupResponseMessage {
    font-size: 0.9rem;
  }
}
/* ============================= */
/* 📢 POPUP NOTIFICATION (GLOBAL) */
/* ============================= */
.popup-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #000;
  padding: 1.2rem 2rem;
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #000;
  font-size: 1rem;
  font-family: "BS", sans-serif;
  z-index: 9999;
  opacity: 0;
  animation: popupFadeIn 0.3s ease-out forwards;
}

.popup-message.error {
  background: #ff5555;
  color: #fff;
  border-color: #000;
  box-shadow: 6px 6px 0 #000;
}

.popup-message.success {
  background: #c4ce5b;
  color: #000;
  border-color: #000;
  box-shadow: 6px 6px 0 #000;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes popupFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
