:root {
  --navy: #1a237e;
  --yellow: #EDBC0B;
  --yellow-dim: rgba(237,188,11,0.12);
  --white: #ffffff;
  --light: #f0f4ff;
}

.page-404-bg {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.page-404-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(237,188,11,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,188,11,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-404-circle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
.page-404-circle-1 {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(237,188,11,0.08) 0%, transparent 70%);
}
.page-404-circle-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(237,188,11,0.06) 0%, transparent 70%);
}

.page-404-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 680px;
  width: 100%;
}

.page-404-badge {
  display: inline-block;
  background: var(--yellow-dim);
  border: 1px solid rgba(237,188,11,0.3);
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.page-404-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 22vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
  position: relative;
  letter-spacing: 8px;
}

.page-404-num::after {
  content: '404';
  position: absolute;
  inset: 0;
  color: var(--yellow);
  opacity: 0.06;
  transform: translate(4px, 4px);
}

.page-404-divider {
  width: 60px;
  height: 3px;
  background: var(--yellow);
  margin: 1.5rem auto;
}

.page-404-title {
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 1rem;
}

.page-404-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 2.5rem;
}

.page-404-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-404-btn-primary {
  background: var(--yellow);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
}

.page-404-btn-secondary {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
}

.page-404-logo {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.page-404-dots {
  position: fixed;
  inset: 0;
}

.page-404-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  animation: page-404-floatUp var(--dur) ease-in var(--delay) infinite;
}

@keyframes page-404-floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100vh); }
}