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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #171717;
  line-height: 1.6;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #171717;
}

.status-card {
  width: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.status-card.success {
  background: #f0fdf4;
  border: 2px solid #22c55e;
}

.status-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.status-text strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: #166534;
}

.status-text p {
  color: #15803d;
  font-size: 0.875rem;
}

.info-card {
  width: 100%;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: #525252;
}

code {
  background: #f5f5f5;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #dc2626;
}

pre {
  background: #171717;
  color: #22c55e;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.note {
  font-size: 0.875rem;
  color: #737373;
  font-style: italic;
}

/* Loader styles */
.loader {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e5e5;
  border-top-color: #dc2626;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#status {
  text-align: center;
  margin-bottom: 0.5rem;
}

#message {
  text-align: center;
  color: #737373;
  margin-bottom: 1rem;
}

.error {
  display: none;
  background: #fef2f2;
  border: 2px solid #dc2626;
  color: #991b1b;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  text-align: center;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #dc2626;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  body {
    background: #171717;
    color: #fafafa;
  }

  h2 {
    color: #fafafa;
  }

  .info-card {
    background: #262626;
  }

  li {
    color: #a3a3a3;
  }

  code {
    background: #171717;
    color: #dc2626;
  }

  .note {
    color: #a3a3a3;
  }

  .loader {
    border-color: #404040;
    border-top-color: #dc2626;
  }
}
