:root {
  color-scheme: dark;
  --bg-top: #0b1324;
  --bg-bottom: #05070d;
  --panel: rgba(10, 14, 24, 0.88);
  --panel-border: rgba(129, 176, 255, 0.18);
  --text: #f6f8ff;
  --muted: #a4aec9;
  --brand: #2e7cf6;
  --brand-soft: rgba(46, 124, 246, 0.18);
  --success: #2dcf8b;
  --danger: #ff7c7c;
  --warning: #ffc86b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
      radial-gradient(circle at top, rgba(46, 124, 246, 0.22), transparent 36%),
      linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shell {
  width: min(100%, 560px);
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #dfe9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.05;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.pending {
  color: #e7eeff;
  background: rgba(120, 145, 190, 0.18);
}

.status.success {
  color: #d8ffee;
  background: rgba(45, 207, 139, 0.16);
}

.status.error {
  color: #ffe0e0;
  background: rgba(255, 124, 124, 0.15);
}

.status.warning {
  color: #fff0ce;
  background: rgba(255, 200, 107, 0.15);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.footnote {
  margin-top: 14px;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .card {
    padding: 22px;
    border-radius: 24px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
