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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Particle Background */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 40px;
  transition: color 0.3s;
}

.back-btn:hover {
  color: #c4d82e;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c4d82e, #7fb800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Card */
.card {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(196, 216, 46, 0.1);
}

.card h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.card p {
  color: #a0a0a0;
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #d0d0d0;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(20, 30, 40, 0.6);
  border: 1px solid rgba(196, 216, 46, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #c4d82e;
  background: rgba(20, 30, 40, 0.8);
}

.form-group input::placeholder {
  color: #606060;
}

.generate-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #c4d82e, #7fb800);
  border: none;
  border-radius: 12px;
  color: #0a0a0a;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(196, 216, 46, 0.3);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 216, 46, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  text-align: center;
  color: #606060;
  font-size: 13px;
  padding: 20px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(30, 30, 30, 0.95);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 450px;
  width: 90%;
  border: 1px solid rgba(196, 216, 46, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.7) rotateX(45deg);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay.active .modal {
  transform: scale(1) rotateX(0deg);
  opacity: 1;
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #c4d82e, #7fb800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 35px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(196, 216, 46, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(196, 216, 46, 0);
  }
}

.modal-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-header p {
  color: #a0a0a0;
  font-size: 14px;
}

.code-display {
  background: rgba(20, 30, 40, 0.8);
  border: 2px dashed rgba(196, 216, 46, 0.4);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.code-text {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  color: #c4d82e;
  letter-spacing: 3px;
  font-weight: 700;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn {
  background: linear-gradient(135deg, #c4d82e, #7fb800);
  color: #0a0a0a;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 216, 46, 0.4);
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  .logo-section {
    margin-bottom: 30px;
  }

  .logo {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .logo-text {
    font-size: 24px;
  }

  .card {
    padding: 30px 20px;
  }

  .card h1 {
    font-size: 22px;
  }

  .modal {
    padding: 30px 20px;
  }

  .code-text {
    font-size: 16px;
  }
}
