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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #ff9900 0%, #146eb4 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.loading-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 500px;
}

.loading-container h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: fade-in 0.5s ease-in;
}

.loading-container p {
  font-size: 1.1rem;
  font-weight: 500;
  animation: fade-in 0.5s ease-in 0.1s both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.redirect-button {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: white;
  color: #ff9900;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fade-in 0.5s ease-in 0.2s both;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  min-height: 44px;
  min-width: 44px;
}

.redirect-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

.redirect-button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.error-container {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.error-container h1 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.error-container p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.fallback-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: white;
  color: #ff9900;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.fallback-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Notification Status Styles */
.notification-status {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  animation: slide-up 0.3s ease-in-out;
}

.notification-status p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.notification-btn {
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  min-height: 44px;
  min-width: 44px;
}

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

.notification-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 600px) {
  body {
    padding: 2rem;
  }

  .loading-container {
    gap: 1.5rem;
  }

  .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }

  .loading-container p {
    font-size: 1rem;
  }

  .error-container {
    padding: 1.5rem;
  }

  .error-container h1 {
    font-size: 1.4rem;
  }

  .notification-status {
    margin-top: 1rem;
  }

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