*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #04080f;
  --card: #080f1e;
  --border: rgba(255,255,255,.07);
  --text: #e8f1ff;
  --muted: rgba(232,241,255,.45);
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --danger: #ff6b7a;
  --glow-a: rgba(59,130,246,.18);
  --glow-b: rgba(99,102,241,.14);
  --mono: 'Space Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--glow-a);
  top: -200px;
  left: -200px;
  animation: driftA 14s ease-in-out infinite alternate;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--glow-b);
  bottom: -180px;
  right: -180px;
  animation: driftB 18s ease-in-out infinite alternate;
}

@keyframes driftA {
  to { transform: translate(80px, 60px); }
}

@keyframes driftB {
  to { transform: translate(-60px, -80px); }
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 40px 80px rgba(0,0,0,.5),
    0 0 60px rgba(59,130,246,.06);
  backdrop-filter: blur(16px);
  animation: slideUp .6s cubic-bezier(.16,1,.3,1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.icon-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}

.ring-1 {
  width: 120px;
  height: 120px;
  border-color: rgba(59,130,246,.15);
  animation-duration: 12s;
}

.ring-2 {
  width: 90px;
  height: 90px;
  border-color: rgba(59,130,246,.1);
  animation-duration: 8s;
  animation-direction: reverse;
}

.ring-3 {
  width: 62px;
  height: 62px;
  border-color: rgba(255,107,122,.12);
  animation-duration: 5s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.qr-icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  color: var(--accent2);
  filter: drop-shadow(0 0 10px rgba(96,165,250,.35));
}

.qr-icon svg {
  width: 100%;
  height: 100%;
}

.x-line {
  animation: drawX .5s .4s cubic-bezier(.16,1,.3,1) both;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
}

@keyframes drawX {
  to { stroke-dashoffset: 0; }
}

.label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--danger);
  opacity: .8;
}

.title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.sub {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
}

.status-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,107,122,.07);
  border: 1px solid rgba(255,107,122,.15);
  margin-top: 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255,107,122,.4);
  }
  50% {
    opacity: .7;
    box-shadow: 0 0 0 5px rgba(255,107,122,0);
  }
}

.status-text {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--danger);
  opacity: .9;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  transition: .2s ease;
  margin-top: 8px;
}

.brand-link:hover {
  color: var(--accent2);
  border-color: rgba(96,165,250,.25);
  background: rgba(96,165,250,.05);
}

@media (max-width: 480px) {
  .card {
    padding: 36px 24px 32px;
    border-radius: 24px;
  }

  .title {
    font-size: 1.45rem;
  }
}