/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a12;
  color: #e0e0e8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(88, 28, 135, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(15, 23, 42, 0.3) 0%, transparent 60%);
}

/* ── Container ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

/* ── Card ───────────────────────────────────────────── */
.card {
  background: rgba(18, 18, 30, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(88, 28, 135, 0.08);
}

/* ── Steps ──────────────────────────────────────────── */
.step { text-align: center; }
.hidden { display: none !important; }

/* ── Typography ─────────────────────────────────────── */
.logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(139, 92, 246, 0.7);
  margin-bottom: 16px;
}

.subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #f0f0f8;
  margin-bottom: 12px;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  color: #9898a8;
  margin-bottom: 24px;
}

.hint {
  font-size: 12px;
  color: #68687a;
  margin-top: 16px;
}

.hint a {
  color: #8b5cf6;
  text-decoration: none;
}

/* ── Divider ────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
  margin: 0 auto 20px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, #8b5cf6, #6d28d9); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.btn-secondary:hover { background: rgba(139, 92, 246, 0.2); }

.btn-ghost {
  background: transparent;
  color: #68687a;
  font-size: 13px;
}
.btn-ghost:hover { color: #9898a8; }

.wallet-icon {
  width: 20px;
  height: 20px;
}

/* ── Wallet display ─────────────────────────────────── */
.wallet-display {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  word-break: break-all;
}

/* ── Message box ────────────────────────────────────── */
.message-box {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #68687a;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  text-align: left;
  word-break: break-all;
}

/* ── Spinner ────────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(139, 92, 246, 0.15);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Status icons ───────────────────────────────────── */
.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.success-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.error-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 32px 20px; }
  .subtitle { font-size: 20px; }
}
