.error-page {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  text-align: center;
  position: relative;
}

@keyframes error-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.error-glyph,
.error-header,
.error-blurb,
.error-actions {
  animation: error-fade-up 700ms ease-out both;
}
.error-header   { animation-delay: 80ms; }
.error-blurb    { animation-delay: 160ms; }
.error-actions  { animation-delay: 240ms; }

.error-glyph {
  font-size: clamp(120px, 18vw, 200px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #7dd3fc 0%, #46aef0 55%, #1f7ec2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(70, 174, 240, 0.25);
  margin-bottom: 8px;
}

.error-header h1 {
  margin: 0;
  color: #f2f2f5;
  font-size: 2rem;
}

.error-blurb {
  max-width: 520px;
  margin: 22px auto 0;
  color: #9aa0b0;
  line-height: 1.65;
  font-size: 0.95rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.error-btn {
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #eaf2fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.error-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(70, 174, 240, 0.4);
  transform: translateY(-1px);
}

.error-btn.primary {
  background: #46aef0;
  border-color: transparent;
  color: #06121f;
}

.error-btn.primary:hover {
  background: #009edd;
}

@media (prefers-reduced-motion: reduce) {
  .error-glyph,
  .error-header,
  .error-blurb,
  .error-actions {
    animation: none;
    opacity: 1;
  }
}
