/* ---- 404 page (same theme as store) ---- */
.nf-hero { position: relative; text-align: center; padding: 72px 0 48px; overflow: hidden; }
.nf-hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.nf-code {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 150px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--blue) 0%, #5b8def 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf-title { font-size: clamp(22px, 5vw, 32px); margin: 8px 0 10px; }
.nf-sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto 24px; font-size: 15px; line-height: 1.6; }
.nf-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-full); padding: 6px 6px 6px 16px;
  max-width: 520px; margin: 0 auto 22px;
  box-shadow: 0 6px 20px rgba(8,12,24,.10);
}
.nf-search svg { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.nf-search input { flex: 1; border: 0; background: transparent; font-size: 15px; padding: 10px 0; font-family: inherit; color: var(--ink); min-width: 0; }
.nf-search input:focus { outline: none; }
.nf-search button {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px;
  background: var(--blue); color: #fff; padding: 10px 22px; border-radius: var(--radius-full);
  transition: transform .2s var(--ease-smooth), opacity .2s;
}
.nf-search button:hover { transform: translateY(-1px); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nf-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
.nf-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.nf-cats a {
  font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: var(--radius-full); padding: 7px 14px;
  background: var(--card-bg); transition: border-color .2s, color .2s;
}
.nf-cats a:hover { border-color: var(--blue); color: var(--blue); }
.nf-nojs { text-align: center; color: var(--ink-soft); }
.nf-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nf-trust-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card-bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-md); padding: 16px;
}
.nf-trust-item > span { font-size: 22px; line-height: 1; }
.nf-trust-item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.nf-trust-item p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 900px) {
  .nf-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nf-hero { padding: 48px 0 32px; }
  .nf-actions { flex-direction: column; align-items: stretch; }
  .nf-actions .btn { justify-content: center; }
  .nf-search { padding-left: 12px; }
  .nf-search button { padding: 10px 16px; }
  .nf-trust { grid-template-columns: 1fr; }
}
