.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(15, 23, 42, .06);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 14px 32px rgba(220, 38, 38, .22);
}

.brand-copy strong {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.02em;
}

.brand-copy small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.app-nav a:hover {
  transform: translateY(-1px);
  color: #111827;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .08);
}

.app-nav .nav-primary {
  color: #fff;
  background: #111827;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.app-nav .nav-primary:hover {
  color: #fff;
  background: #991b1b;
}

.app-main {
  padding-top: 28px;
  padding-bottom: 48px;
}

@media (max-width: 860px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .app-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .app-nav a {
    white-space: nowrap;
  }
}