h2,
h4 {
  text-align: center;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

#redirect-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #333;
  padding: 40px 30px;
  border-radius: 20px;
  font-size: 16px;
  text-align: center;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft JhengHei",
    sans-serif;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
  width: 400px;
}

#redirect-banner .redirect-icon {
  width: 80px;
  height: 80px;
  background: #2a652c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  font-size: 32px;
  color: #fff;
  animation: pulse 2s infinite;
}

#redirect-banner .title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

#redirect-banner .message {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.3s both;
}

#redirect-banner .progress-container {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 25px;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.6s both;
}

#redirect-banner .progress-bar {
  height: 100%;
  background: #2a652c;
  border-radius: 3px;
}

#redirect-banner button {
  background: #2a652c;
  color: #fff;
  border: none;
  padding: 15px 50px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(42, 101, 44, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.9s both;
  position: relative;
  overflow: hidden;
}

#redirect-banner button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

#redirect-banner button:hover::before {
  left: 100%;
}

#redirect-banner button:hover {
  background: #1e4a20;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(42, 101, 44, 0.4);
}

#redirect-banner .count {
  font-weight: 900;
  color: #2a652c;
  font-size: 20px;
  animation: pulse 1s infinite;
}

.p-float-label {
  position: relative;
  display: inline-block;
}

.p-float-label input {
  width: 100%;
  padding: 12px 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.p-float-label label {
  position: absolute;
  left: 10px;
  top: 12px;
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease all;
}

.p-float-label input:focus + label,
.p-float-label input:not(:placeholder-shown) + label {
  top: -8px;
  left: 8px;
  font-size: 8px;
  color: #2a652c;
  background: #fff;
  padding: 0 4px;
}

body,
html {
  margin: 0;
  height: 100%;
  background: #2d3849;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#redirect-banner h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #2a652c;
  font-weight: bold;
}

.p-button {
  width: 48%;
}

.btns {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.copy-btn {
  background: #f0f0f0;
  border: 1px solid #2a652c;
  color: #2a652c;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 15px;
  margin-top: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.copy-btn:hover {
  background: #2a652c;
  color: #fff;
}

.copy-btn.copied {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

.url-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
}
