.error-container {
  width: 100%; /* équivalent max-w-4xl */
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 5rem;
  background-color: #fff;
}

/* Animated 404 Number */
.error-number-wrapper {
  position: relative;
  margin-bottom: 2rem;
}
.error-number {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(to right, #a78bfa, #746AFF, #f87171);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
  user-select: none;
}
@media (min-width: 768px) {
  .error-number {
    font-size: 12rem;
  }
}
.error-number-shadow {
  position: absolute;
  inset: 0;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(168, 85, 247, 0.2);
  line-height: 1;
  user-select: none;
  animation: pulse 2s infinite;
}
@media (min-width: 768px) {
  .error-number-shadow {
    font-size: 12rem;
  }
}

/* Error Icon */
.error-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}
.error-icon {
  width: 6rem;
  height: 6rem;
  background: linear-gradient(to right, #8b5cf6, #746AFF);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}
.error-icon-inner {
  width: 3rem;
  height: 3rem;
  color: white;
}
.error-icon-ping {
  position: absolute;
  inset: 0;
  width: 6rem;
  height: 6rem;
  background: linear-gradient(to right, #8b5cf6, #746AFF);
  border-radius: 9999px;
  opacity: 0.2;
  animation: ping 2s infinite;
}

/* Error Message */
.error-message {
  margin-bottom: 3rem;
}
.error-message h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .error-message h2 {
    font-size: 3.75rem;
  }
}
.error-subtitle {
  font-size: 22px;
  color: #a8abad;
  font-weight: 500;
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.error-description {
  font-size: 18px;
  color: #9ca3af;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Action Buttons */
.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .error-actions {
    flex-direction: row;
  }
}
.btn-home {
  position: relative;
  gap:10px;
  display: inline-flex;
  padding: 10px 20px;
  background: linear-gradient(to right, #7c3aed, #746AFF);
  color: white;
  border-color: transparent;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s;
}
.btn-inner{
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-home:hover {
  background: linear-gradient(to right, #6d28d9, #746AFF);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}
.btn-home .btn-overlay {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(to right, #7c3aed, #746AFF);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-home:hover .btn-overlay {
  opacity: 0.2;
}
.btn-back {
  padding: 10px 20px;
  color: #9ca3af;
  border-color: transparent;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s;
}
.btn-back:hover {
  color: black;
  transform: scale(1.05);
}

/* Decorative Dots */
.error-dots {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #4b5563;
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  animation: pulse 2s infinite;
}
.dot-purple {
  background: #8b5cf6;
}
.dot-pink {
  background: #746AFF;
  animation-delay: 0.75s;
}
.dot-red {
  background: #746AFF;
  animation-delay: 1.5s;
}

/* Floating Elements */
.float {
  position: absolute;
  border-radius: 9999px;
  animation: float 6s ease-in-out infinite;
}
.float-1 {
  top: 5rem;
  left: 2.5rem;
  width: 5rem;
  height: 5rem;
  background: rgba(139, 92, 246, 0.1);
}
.float-2 {
  top: 10rem;
  right: 5rem;
  width: 4rem;
  height: 4rem;
  background: rgba(236, 72, 153, 0.1);
  animation-delay: 1s;
}
.float-3 {
  bottom: 5rem;
  left: 5rem;
  width: 3rem;
  height: 3rem;
  background: rgba(239, 68, 68, 0.1);
  animation-delay: 2s;
}
.float-4 {
  bottom: 10rem;
  right: 2.5rem;
  width: 6rem;
  height: 6rem;
  background: rgba(139, 92, 246, 0.1);
  animation-delay: 3s;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
