@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  height: 100vh;
  background: radial-gradient(circle at center, #0a0a0a 0%, #000000 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 10s infinite alternate ease-in-out;
}

body::before {
  background: #00f5ff;
  top: -200px;
  left: -200px;
}

body::after {
  background: #00ffb3;
  bottom: -200px;
  right: -200px;
}

@keyframes float {
  from { transform: translateY(0px) translateX(0px); }
  to { transform: translateY(40px) translateX(30px); }
}

.container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  z-index: 10;
}

.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 45px 35px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  text-align: center;
  transform: perspective(1000px) rotateX(0deg);
  transition: transform 0.4s ease;
  animation: fadeInUp 0.8s ease;
}

.card:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-4deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #00f5ff, #00ffb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-group {
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #00f5ff;
  box-shadow: 0 0 0 4px rgba(0,245,255,0.2);
  background: rgba(255,255,255,0.1);
}

button {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

#generateBtn {
  background: linear-gradient(135deg, #00f5ff, #00ffb3);
  color: #000;
}

#generateBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,255,200,0.4);
}

/* Ripple Click Effect */
#generateBtn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

#generateBtn:active::after {
  width: 300px;
  height: 300px;
}

.loader {
  margin: 30px auto;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,255,255,0.2);
  border-top: 5px solid #00f5ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

.result {
  margin-top: 30px;
  animation: fadeInUp 0.5s ease;
}

.token-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 10px;
  word-break: break-all;
}

#copyBtn {
  background: #00f5ff;
  color: black;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
  transition: 0.3s ease;
}

#copyBtn:hover {
  background: #00c3cc;
  transform: scale(1.05);
}

#message {
  margin-top: 20px;
  font-size: 13px;
  min-height: 20px;
  transition: 0.3s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.shadow-entity {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.85) 30%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.2) 70%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.9;
  animation: shadowMove 20s infinite alternate ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.entity-2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.6),
    transparent 80%
  );
  filter: blur(40px);
  animation: shadowMove2 25s infinite alternate ease-in-out;
}

@keyframes shadowMove {
  0%   { transform: translate(-200px, -100px) scale(1); }
  50%  { transform: translate(200px, 150px) scale(1.3); }
  100% { transform: translate(-100px, 200px) scale(1); }
}

@keyframes shadowMove2 {
  0%   { transform: translate(300px, -200px) scale(1); }
  50%  { transform: translate(-250px, 100px) scale(1.4); }
  100% { transform: translate(200px, -150px) scale(1); }
}
