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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: rgba(19, 26, 70, 1);
  min-height: 100vh;
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex: 1;
  width: 80%;
}

.logo {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  margin-top: 24px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  min-height: 80px;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ---------- Manual Redirect Block ---------- */
.manual-redirect {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  max-width: 500px;
}

.manual-redirect h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
}

.manual-redirect p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: #ddd;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
  text-decoration: none;
  display: inline-block;
  min-width: 160px;
  text-align: center;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn.primary {
  background: #0056b3;
  border-color: #0056b3;
}

.btn.primary:hover {
  background: #00408a;
  border-color: #00408a;
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
    margin-top: 0;
    padding-top: 0;
  }

  .logo {
    top: 1rem;
  }

  .logo-img {
    height: 50px;
  }

  .download-buttons,
  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    min-width: 100%;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }
}
