:root {
  --bg1: #0f1724;
  --bg2: #0b2538;
  --accent: #ffff00; /* updated accent color */
  --muted: #98a2b3;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.03);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(
        1200px 600px at 10% 20%,
        rgba(255, 255, 0, 0.06),
        transparent
      ),
      radial-gradient(
        900px 500px at 85% 80%,
        rgba(255, 255, 0, 0.06),
        transparent
      ),
      linear-gradient(180deg, var(--bg1), var(--bg2));
  color: #e6eef6;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 32px;
}

.card {
  width: 100%;
  max-width: 980px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--glass-2);
}

/* Error page card layout */
.card.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Error page brand alignment */
.error-page .brand {
  align-self: flex-center;
  text-align: left;
  justify-content: flex-start;
}
.error-page .brand > div {
  text-align: left;
}
.logo {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 0, 0.12),
    rgba(255, 255, 0, 0.14)
  );
  font-weight: 700;
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 0.6px;
  box-shadow: 0 6px 20px rgba(255, 255, 0, 0.08);
  overflow: hidden;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin: 0;
  text-shadow: 0 0 40px rgba(255, 255, 0, 0.3);
}

h1 {
  margin: 18px 0 8px;
  font-size: 40px;
  line-height: 1.02;
}

/* Error page h1 */
.error-page h1 {
  margin: 0;
}

p.lead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
}

/* Error page lead */
.error-page p.lead {
  max-width: 60ch;
  font-size: 18px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Error page links */
.error-page .links {
  justify-content: center;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  transition: all 0.15s ease;
  backdrop-filter: blur(6px);
}
.link-btn:hover {
  transform: translateY(-4px);
}

/* Error page link-btn */
.error-page .link-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 0, 0.1);
  border: 1px solid rgba(255, 255, 0, 0.2);
  color: var(--accent);
}
.error-page .link-btn:hover {
  background: rgba(255, 255, 0, 0.15);
  box-shadow: 0 6px 20px rgba(255, 255, 0, 0.2);
}

.pill {
  position: relative;
  background: rgba(255, 255, 0, 0.05);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 0, 0.1);
  color: #ffff00;
  cursor: help;
  transition: all 0.2s ease;
}

.pill:hover {
  background: rgba(255, 255, 0, 0.1);
  border-color: rgba(255, 255, 0, 0.2);
  transform: translateY(-2px);
}

.pill-label {
  display: inline-block;
}

.pill .tooltip-content {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 36, 0.95),
    rgba(11, 37, 56, 0.95)
  );
  backdrop-filter: blur(16px);
  color: #e6eef6;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-width: 300px;
  max-width: 420px;
  width: max-content;
  text-align: left;
  display: block;
  white-space: normal;
}

.pill .tooltip-content strong {
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.pill .tooltip-content br {
  line-height: 1.8;
}

.pill .tooltip-content .process-steps {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill .tooltip-content .process-steps li {
  position: relative;
  padding-left: 24px;
  color: rgba(230, 238, 246, 0.85);
  font-size: 12.5px;
  line-height: 1.6;
}

.pill .tooltip-content .process-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
  box-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

.pill .tooltip-content .process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2.5px;
  top: 12px;
  width: 1.5px;
  height: calc(100% + 8px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 0, 0.3),
    rgba(255, 255, 0, 0.1)
  );
}

.pill::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(15, 23, 36, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1001;
}

.pill:hover .tooltip-content,
.pill:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive tooltip adjustments */
@media (max-width: 880px) {
  .pill .tooltip-content {
    min-width: 260px;
    max-width: 360px;
    font-size: 12px;
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .pill .tooltip-content {
    min-width: 220px;
    max-width: 300px;
    font-size: 11px;
    padding: 12px 14px;
  }
}

.meta {
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.012),
    transparent
  );
  border-radius: 12px;
  border: 1px solid var(--glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta h3 {
  margin: 0;
  font-size: 16px;
}
.meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}
.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
  border-color: rgba(255, 255, 0, 0.1);
}
.contact-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.95;
  transition: all 0.15s ease;
}
.contact-item:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

footer {
  grid-column: 1/-1;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Error page footer */
.error-page footer {
  grid-column: auto;
  margin-top: 24px;
  justify-content: center;
  gap: 8px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 0, 0.05);
  border: 1px solid rgba(255, 255, 0, 0.1);
  color: var(--accent);
  font-size: 14px;
  margin-top: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

@media (max-width: 880px) {
  .card {
    grid-template-columns: 1fr;
    max-width: 720px;
    padding: 28px;
  }
  h1 {
    font-size: 32px;
  }
  .error-code {
    font-size: 80px;
  }
}
@media (max-width: 420px) {
  body {
    padding: 18px;
  }
  .card {
    padding: 18px;
  }
  .logo {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }
  h1 {
    font-size: 26px;
  }
  .error-code {
    font-size: 60px;
  }
  .error-page p.lead {
    font-size: 16px;
  }
}

