* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.circular-progress {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.35s;
  transform-origin: 50% 50%;
}

.progress-ring-circle-animated {
  stroke-dasharray: 326.56;
  stroke-dashoffset: 326.56;
  animation: progress 3s linear forwards;
  stroke-linecap: round;
}

@keyframes progress {
  to {
    stroke-dashoffset: 0;
  }
}

.countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: 700;
  color: #3498db;
  animation: fadeOutCountdown 3s ease-in-out forwards;
}

@keyframes fadeOutCountdown {
  0%,
  90% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

.checkmark-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
}

.checkmark {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 3s forwards;
}

.checkmark-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.5s ease-in-out 3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.arrow {
  position: absolute;
  top: -5px;
  right: -5px;
  opacity: 0;
  animation: fadeInArrow 0.5s ease-in-out 3.5s forwards,
    rotateArrow 2s ease-in-out 3.5s infinite;
}

@keyframes fadeInArrow {
  to {
    opacity: 1;
  }
}

@keyframes rotateArrow {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

.title {
  color: #2c3e50;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 0.5s ease-in-out 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, #d4dce6 0%, #e8eef5 100%);
  border-radius: 20px;
  overflow: visible;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 0.5s ease-in-out 0.7s forwards;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(180deg, #5dade2 0%, #3498db 50%, #2980b9 100%);
  border-radius: 20px;
  width: 0%;
  animation: fillProgress 3s linear forwards;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4),
    0 0 20px rgba(52, 152, 219, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 20px 20px 0 0;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: 0 0 20px 20px;
}

@keyframes fillProgress {
  to {
    width: 100%;
  }
}

.redirect-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  opacity: 0;
  animation: fadeInUp 0.5s ease-in-out 0.9s forwards;
  width: 100%;
  max-width: 400px;
}

.redirect-button:disabled {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: 0 4px 15px rgba(127, 140, 141, 0.2);
}

.redirect-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.redirect-button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) and (min-width: 481px) {
  .card {
    padding: 40px 30px;
  }

  .title {
    font-size: 22px;
  }

  .circular-progress {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
  }

  .progress-ring {
    width: 100px;
    height: 100px;
  }

  .progress-ring-circle,
  .progress-ring-circle-animated {
    r: 44;
    cx: 50;
    cy: 50;
  }

  .countdown {
    font-size: 40px;
  }

  .checkmark-container {
    width: 35px;
    height: 35px;
  }

  .checkmark {
    width: 35px;
    height: 35px;
  }

  .arrow {
    width: 26px;
    height: 26px;
  }

  .redirect-button {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .title {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .circular-progress {
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
  }

  .progress-ring {
    width: 90px;
    height: 90px;
  }

  .progress-ring-circle,
  .progress-ring-circle-animated {
    r: 40;
    cx: 45;
    cy: 45;
  }

  .checkmark-container {
    width: 30px;
    height: 30px;
  }

  .checkmark {
    width: 30px;
    height: 30px;
  }

  .arrow {
    width: 25px;
    height: 25px;
  }

  .redirect-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .progress-bar-container {
    margin-bottom: 25px;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 25px 15px;
  }

  .title {
    font-size: 18px;
  }
}
